Archive for November, 2007

rubygems without sources gem

November 20, 2007

If you uninstall the sources gem that rubygems relies on you’ll get an awful error if you try to run gem. And since sources-0.0.1 is probably best installed as a gem well… you get the picture.
If you accidentally uninstall the sources gem, create a file named sources.rb and place the following inside:

module Gem
@sources = ["http://gems.rubyforge.org"]
def self.sources
@sources
end
end

I was then able to reinstall the sources gem and be back in business.