ruby gem换源
- 查询gem当前的源
houor@mac ~ % gem sources -l
*** CURRENT SOURCES ***
https://rubygems.org/
- 删除默认源
houor@mac ~ % gem sources --remove https://rubygems.org/
https://rubygems.org/ removed from sources
- 添加国内源
houor@mac ~ % gem sources --add https://mirrors.aliyun.com/rubygems/
https://mirrors.aliyun.com/rubygems/ added to sources
如果下载速度不够快的话,大家还可以试试tencent的源:
https://mirrors.cloud.tencent.com/rubygems/