gem sources --remove http://rubygems.org/ gem sources -a http://ruby.taobao.org/ gem sources -l # 请确保只有 ruby.taobao.org gem install foo
现在略有更改: gem sources --remove https://rubygems.org/ gem sources -a http://ruby.taobao.org/ gem sources -l # 请确保只有 ruby.taobao.org gem install foo