gem #查看gem源
gem sources
# 删除默认的gem源
gem sources --remove http://rubygems.org/
# 增加taobao作为gem源
gem sources -a http://ruby.taobao.org/
# 查看当前的gem源
gem sources
*** CURRENT SOURCES ***
http://ruby.taobao.org
# 请确保只有 ruby.taobao.org
# 清空源缓存
gem sources -c
# 更新源缓存
gem sources -u