This question already has an answer here:
Got this message today after running bundle update
:
$ bundle update
NOTE: Gem::SourceIndex#all_gems is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::SourceIndex#all_gems called from /Users/meltemi/.rvm/gems/ruby-1.9.2-p180@ppr3/gems/bundler-1.0.13/lib/bundler/rubygems_integration.rb:256
.
Anyone know what it means and how to address it?
Note: This is a Rails 3.0.7 environment
It was called from the Bundler gem. Try updating bundler to see if it helps
I updated bundler ('gem update bundler') from 1.0.12 to 1.0.15. Now all is well.
Bundler 1.0.13 (version released May 4, 2011) running with rubygems 1.7.2 issues this annoying deprecation warning:
A fix was committed on 5/11/2011 in the Bundler repo to correct an issue submitted 5/6/2011.
Pending release of Bundler 1.1, you can try this solution:
I hope this helps. Took some digging to find it.
The Pry gem uses the rubygems API directly and can't be fixed by just running
gem pristine --all
unfortunately.I forked the Pry gem and added fixes using non-deprecated API calls. Pending a merge to master, here is the fork: https://github.com/dvdplm/pry
I deleted and reinstalled ruby 1.9.2 via RVM and then uninstalled all gems:
Put the result in a file called
gems
(cut out the error messages). Then do:After that I was able to run the pristine command suggested by others:
That's when the errors disappeared.
Qoute:
Source: ruby-forum.com