Google Plus API

Google is rolling out API very soon for developers to take a sneak peak and develop applications. In the meantime developers can sign up at https://services.google.com/fb/forms/plusdevelopers/ to get a early access onto the Google plus API.

Eventually, google plus is playing a invite only for brands and developers too after a successful stunt with social networking users all around the world. Brands can sign up here http://goo.gl/zq95C to be the first to get listed as business on Google+.

ERROR: While executing gem (Gem::RemoteSourceException) HTTP Response 302 fetching

While struggling with old gems and ruby installation on my macosx. I googled a lot for response and find no satisfactory answer.

The problem was simple, macosx 10.5 comes with ruby 1.8.1 and rails 1.2.6 which is now a depreciated version of ROR and not recommended to be used for production.

Now since gems have moved there base, every gem install command was throwing a 302 HTTP error.

$ sudo gem install rails
ERROR:  While executing gem ... (Gem::RemoteSourceException)
    HTTP Response 302 fetching http://gems.rubyforge.org/yaml

Even the most suggested resolution which is a gem update didn’t work.

gaurav-mishras-macbook:rubygems-1.8.5 gaurav$ sudo gem update --system
Updating RubyGems...
ERROR:  While executing gem ... (Gem::RemoteSourceException)
    HTTP Response 302 fetching http://gems.rubyforge.org/yaml

Then luckily a landed to a blog post which mentioned a similar problem and changing the source of the gem repositry worked like charm. Just add –source http://production.s3.rubygems.org

For example

gaurav-mishras-macbook:rubygems-1.8.5 gaurav$ sudo gem update --system --source http://production.s3.rubygems.org
Updating RubyGems...