最新的宝石没有安装

时间:2013-06-22 02:01:42

标签: ruby-on-rails ruby-on-rails-3 rubygems bundle mongomapper

我们正在尝试安装最新版本的Plucky以配合我们的Mongo安装,但运行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]#

2 个答案:

答案 0 :(得分:0)

Plucky不在您的gemfile中,因此它必须是依赖项。几乎总是宝石指定依赖的版本。要求勇敢的宝石可能要求0.5.2

答案 1 :(得分:0)

你应该先安装plucky:

gem install plucky

然后将以下行添加到Gemfile:

gem 'plucky', '~> 0.6.3'

您对'~> 0.6.3'部分的偏好。您可以使用gem 'plucky', '0.6.3'

如果这不起作用,请添加评论。