Timeout when installing ruby gems
In your Gemfile set your
source 'http://production.s3.rubygems.org'
This may not be an official answer, but it worked for me after three frustrating days trying to access rubygems.org.
Too Late but i resolve this issue disabling the IPv6 connections in my system OS. It forces the OS just use the IPv4 and then it works.