While running a Ruby on Rails program, I get a warning like this:
NOTE: Gem::SourceIndex#each is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#each called from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/rails/vendor_gem_source_index.rb:123.
NOTE: Gem::SourceIndex#each is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#each called from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/rails/vendor_gem_source_index.rb:124.
How to set this right and what does it mean here?
I work on a Windows environment with the following configuration:
The deprecation warning is coming from Rails itself, as the backtrace notes. The intention of the warning is to warn you of imminent changes (2011-11-01) in Ruby's Gem class that may affect your Rails application.
As a solution for your Rails 2.3.x application, you could either:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With