First, I suggest you keep a list of gems just in case:
$ gem list > gems.txt
To make sure you are using SPEC CACHE, what you think:
$ gem env | grep "SPEC CACHE"
- SPEC CACHE DIRECTORY: /home/sawa/.gem/specs
To find out if you have outdated sources:
$ gem sources
If you want to be careful, you can delete sources one at a time, and then add them again. (See code below)
Try the original ones, although this most likely will fail:
$ gem pristine --all
A harsh approach is to remove all gem specifications:
rm -rf /home/sawa/.gem/specs
, gem, , :
rm -rf /home/sawa/.gem
, , . , .
$ gem sources --clear-all
$ gem sources --update
, :
$ gem sources
$ gem sources --remove http://gems.rubyforge.org/
$ gem sources --remove http://gems.github.com
...etc ...
$ gem sources --update
$ gem sources --add http://gems.rubyforge.org/
$ gem sources --update
$ gem sources --add http://gems.github.com
$ gem sources --update
...etc...