这是一个 http://rubygems.org 的镜像。在中国,如果没有VPN或者proxy的话, Ruby开发者往往很难直接连接到rubygems服务器。希望这个镜像可以为大家提供一个解决的办法。 这个镜像会缓存gemspec15分钟。 This is a mirror for http://rubygems.org that should be accessible for anyone in South China. It is provided as an alternative solution for ruby developers in China who may not be able to access the rubygems servers directly without a VPN or proxy. This mirror will cache the gemspecs for 15 minutes. 在你的gemfile 里面添加下列内容 Add the following line to your Gemfile: source "http://gems.gzruby.org/" 然后修改你的~/.gemrc,例如 And change your ~/.gemrc to something like this: --- :sources: - http://gems.gzruby.org/ gem: --no-rdoc --no-ri 如果你使用Windows系统, 你会在下列文件夹发现此文件: In windows, this file can be found here: C:\Documents and Settings\All Users\Application Data\gemrc (Win XP) C:\ProgramData\gemrc (Win 7) 目前缓存到 7564 个gem 7564 gems cached so far! - 1 ...