截止当前(2021-3-23),gem淘宝源不可用,目前可用 https://gems.ruby-china.com/
1 查看当前源
gem sources
2 换源
gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
3 刷新源
# 清空源缓存
gem sources -c
# 更新源缓存
gem sources -u
4 验证
gem sources -l
2024-01-20 10:28:52
截止当前(2021-3-23),gem淘宝源不可用,目前可用 https://gems.ruby-china.com/
gem sources
gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
# 清空源缓存
gem sources -c
# 更新源缓存
gem sources -u
gem sources -l