ruby-on-rails - 将 ruby​​gems 版本放入 Gemfile

标签 ruby-on-rails ruby rubygems bundler

当我的一些同事在 rails 2.3.8 中安装 bundle 脚本/服务器后出现以下错误。我通过将 ruby​​gems 的版本设置为 1.5.3 来解决它。但这对我的一些同事来说有点麻烦,我正在考虑将 ruby​​gems 版本放入 Gemfile 中。可能吗?

NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /Users/xxxx/.gem/ruby/1.8/gems/rails-2.3.8/lib/rails/gem_dependency.rb:21.
NOTE: Gem::SourceIndex#refresh! is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#refresh! called from /Users/xxxx/.gem/ruby/1.8/gems/rails-2.3.8/lib/rails/vendor_gem_source_index.rb:34.
NOTE: Gem::SourceIndex#load_gems_in is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#load_gems_in called from /Library/Ruby/Site/1.8/rubygems/source_index.rb:320.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /Library/Ruby/Site/1.8/rubygems/source_index.rb:127.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /Library/Ruby/Site/1.8/rubygems/source_index.rb:127.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /Library/Ruby/Site/1.8/rubygems/source_index.rb:127.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /Library/Ruby/Site/1.8/rubygems/source_index.rb:127.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /Library/Ruby/Site/1.8/rubygems/source_index.rb:127.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /Library/Ruby/Site/1.8/rubygems/source_index.rb:127.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.

最佳答案

不,你不能。但是,gem pristine --all 可能会消除这些警告。

关于ruby-on-rails - 将 ruby​​gems 版本放入 Gemfile,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6741924/

相关文章:

ruby-on-rails - 如何在 Ruby on Rails 中生成 API Key 和 Secret?

ruby - 如何找出 gem 的所有依赖项?

ruby-on-rails - 如何从 OS X 中删除 Ruby

ruby-on-rails - 这个 gem 如何与您的错误处理 Hook ?

css - Michael Hartl/Ruby on rails、bootstrap、示例应用程序、 header css 无法按预期工作/格式化

ruby-on-rails - 如何使用 strong_params 要求嵌套参数

ruby-on-rails - Rails 开发效率 - 顶级 Textmate 快捷方式

ruby-on-rails - 使用 Websockets 部署瘦

Ruby API - 哈希#map

ruby-on-rails - CGI::unescape 给出错误未定义方法 `tr'