Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I install gems from when rubygems.org is down?

Tags:

Currently Rubygems.org is down - the website reports an error, and a few gem install tasks are returning 500 errors.

Is there a mirror / backup source of gem files, or is rubygems.org essentially a single point of failure within the ruby gem installation process ?

like image 215
Phantomwhale Avatar asked Jan 01 '12 13:01

Phantomwhale


People also ask

Where do gems install to?

1 . The commands provided by the gems you installed will end up in ~/. gem/ruby/1.9. 1/bin .

How do I push a gem to RubyGems?

From the main menu, select Tools | Gem | Push Gem. In the Run tool window, specify your RubyGems credentials. Your gem will be published to RubyGems.org.


1 Answers

As per several folks on Twitter, add this to your Gemfile:

source 'https://production.cf.rubygems.org' 

Also, if you're not using Bundler you can just run:

$ gem source -a 'https://production.cf.rubygems.org' 

For the record, the folks on Twitter include:

laizer, iltempo, and jimneath. Major thanks to them for saving my morning :)

like image 188
stevenhaddox Avatar answered Oct 11 '22 15:10

stevenhaddox