gem更换国内源

1
2
3
4
5
6
7
8
9
10
11
12
13
gem sources -l

#移除https://rubygems.org源

gem sources --remove https://rubygems.org/

#增加https://gems.ruby-china.org/源

gem sources -a https://gems.ruby-china.org/

#更新缓存

gem sources -u