ruby gem sources June 7th, 2007
I recently realized that rubygems doesn't update itself of its own accord. Which is to say:
gem update
Updates installed gems and not the gem system itself. To do that you need:
gem update --system
Which leads me to what was driving me crazy(a recurring theme?), which may be unrelated to updating...
Gem sources. I added the gem repository from rubyonrails.com to try the capistrano 2.0 preview. Cap 2 works fine, but I didn't intend to update rails to newer-than-1.2. I tried removing the rubyonrails gem repository from the list (see: gem help sources), but I was still getting newer versions...
Thankfully the explanation is simple. When I install gems I use sudo. The root user has a different source list from other users.
So if you normally type:
sudo gem install some_gem_name
You will also want to type:
sudo gem sources remove some_gem_repository_url
Easy to overlook, I think I got lucky figuring it out. Hope others have better luck, go go googlebot etc.
Sorry, comments are closed for this article.