Gem.source_index is deprecated, use Specification. Should I re-install Gem or Rails? Gem.source_index is deprecated, use Specification. Should I re-install Gem or Rails? ruby ruby

Gem.source_index is deprecated, use Specification. Should I re-install Gem or Rails?


This worked for me: downgrade rubygems:

gem update --system 1.6.2

found this advice at: Gem.source_index is deprecated, use Specification #34


Try this:

sudo gem update bundler

This will update bundler to most recent version (currently 1.0.15). This will not generate the warning or at least in my case this was the cause of the warning.


The best way to solve this is:

$ gem pristine --all --no-extensions

This will rebuild all gems (excluding those with native extensions) and update their gemspecs. If you don't have any gems with native extensions or you didn't use any custom compile flags on those gems you can also omit the --no-extensions flag. Otherwise you'll have to build them seperately.