0

我们正在尝试安装最新版本的 Plucky 以配合我们的 Mongo 安装,但运行 bundle update 不会将 Plucky gem 更新到最新版本,即 0.6.3。由于某种原因,我们的 gem 版本保持在 0.5.2。

我们同时运行bundle updatebundle update plucky

宝石文件:

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 的宝石可能要求 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 回答