查看当前使用的源地址
1
gem sources
gem 删除默认源命令
1
gem sources --remove https://rubygems.org/
gem 添加国内源
1
2
3
4
5
gem sources -a https://gems.ruby-china.com/
###
gem sources --add https://mirrors.tuna.tsinghua.edu.cn/rubygems/
检测方法
1
gem sources -l
更新源的缓存
1
gem sources -u