0

Mongo のインストールに合わせて最新バージョンの Plucky をインストールしようとしていますが、bundle update を実行しても Plucky gem が最新バージョンの 0.6.3 に更新されません。私たちの宝石のバージョンは、何らかの理由で 0.5.2 のままです。

と の両方を実行bundle updatebundle update pluckyました。

Gemfile:

gem 'mongo'
gem 'mongo_mapper'
gem 'whois'
gem 'bson_ext'
gem 'bson'
gem 'newrelic_rpm'
gem 'rpm_contrib'

コマンドと出力:

[root@mongo]# bundle list
Gems included by the bundle:
  * actionmailer (3.2.12)
  * actionpack (3.2.12)
  * activemodel (3.2.12)
  * activerecord (3.2.12)
  * activeresource (3.2.12)
  * activesupport (3.2.12)
  * arel (3.0.2)
  * bson (1.9.0)
  * bson_ext (1.9.0)
  * builder (3.0.4)
  * bundler (1.3.1)
  * coffee-rails (3.2.2)
  * coffee-script (2.2.0)
  * coffee-script-source (1.6.2)
  * erubis (2.7.0)
  * execjs (1.4.0)
  * hike (1.2.3)
  * i18n (0.6.4)
  * journey (1.0.4)
  * jquery-rails (3.0.1)
  * json (1.8.0)
  * mail (2.4.4)
  * mime-types (1.23)
  * mongo (1.9.0)
  * mongo_mapper (0.12.0)
  * multi_json (1.7.7)
  * mysql2 (0.3.11)
  * newrelic_rpm (3.6.3.111)
  * plucky (0.5.2)
...


[root@mongo]# bundle update
Fetching gem metadata from http://rubygems.org/...........
Fetching gem metadata from http://rubygems.org/..
Resolving dependencies...
Installing rake (10.1.0)
Using i18n (0.6.4)
Using multi_json (1.7.7)
Using activesupport (3.2.12)
Using builder (3.0.4)
Using activemodel (3.2.12)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.5)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.3)
Using tilt (1.4.1)
Using sprockets (2.2.2)
Using actionpack (3.2.12)
Using mime-types (1.23)
Using polyglot (0.3.3)
Using treetop (1.4.14)
Using mail (2.4.4)
Using actionmailer (3.2.12)
Using arel (3.0.2)
Using tzinfo (0.3.37)
Using activerecord (3.2.12)
Using activeresource (3.2.12)
Using bson (1.9.0)
Using bson_ext (1.9.0)
Using bundler (1.3.1)
Using coffee-script-source (1.6.2)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.3)
Using json (1.8.0)
Using rdoc (3.12.2)
Using thor (0.18.1)
Using railties (3.2.12)
Using coffee-rails (3.2.2)
Using jquery-rails (3.0.1)
Using mongo (1.9.0)
Using plucky (0.5.2)
...
Your bundle is updated! Use `bundle show [gemname]` to see where a bundled gem is installed.
[root@mongo]#
4

2 に答える 2

0

Plucky は gemfile に含まれていないため、依存関係にある必要があります。ほとんどの場合、gem は依存関係のバージョンを指定します。plucky を要求する gem は、おそらく 0.5.2 を要求しています。

于 2013-06-22T02:06:52.270 に答える
0

最初に plucky をインストールする必要があります。

gem install plucky

次に、次の行を Gemfile に追加します。

gem 'plucky', '~> 0.6.3'

一部のあなたの好み'~> 0.6.3'。あなたは一緒に行くことができますgem 'plucky', '0.6.3'

これが機能しない場合は、コメントを追加してください。

于 2013-06-22T02:10:11.797 に答える