問題解決的最好方法方法
使用google的DNS 8.8.8.8 / 8.8.4.4
另一種解決方式
修改rubygems的source源
$ gem source -r http://rubygems.org/
$ gem source -r http://production.s3.rubygems.org/
增加新source源
$ gem source -a http://production.s3.ru
如果使用Bundler
修改你的 Gemfile 將 http://rubygems.org 改為 http://ruby.taobao.org/
來源:
http://blog.banban.me/blog/2012/03/26/she-zhi-gemyuan-%2Cjie-jue-xia-zai-man-de-wen-ti/