【发布时间】:2011-08-22 12:15:57
【问题描述】:
在运行 Ruby on Rails 程序时,我收到如下警告:
注意: Gem::SourceIndex#each 已被弃用,没有替代品。它会 在 2011 年 11 月 1 日或之后删除。
Gem::SourceIndex#each 调用自 C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/rails/vendor_gem_source_index.rb:123。
注意:Gem::SourceIndex#each 已被弃用,没有替代品。它会 在 2011 年 11 月 1 日或之后删除。
Gem::SourceIndex#each 调用自 C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/rails/vendor_gem_source_index.rb:124。
如何设置这个权利,这意味着什么?
我在具有以下配置的 Windows 环境中工作:
- Ruby 1.8.7 [i386-mingw32]
- Rails 2.3.11
- 宝石 1.8.8
【问题讨论】:
-
你真的使用 SourceIndex#each吗?如果没有 - 什么也不做。否则,请告诉我们您如何以及在何处使用它...
标签: ruby-on-rails gem deprecated