rubygems without sources gem

By jr

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.

One Response to “rubygems without sources gem”

  1. Duke Says:

    Thanks for that – saved me from uninstalling!

Leave a Reply