Install bundler gem

gem install bundler

修改gem源

~/.gemrc

gem sources -l
gem sources --remove https://rubygems.org/
gem sources --remove http://rubygems.org/
gem sources --add https://ruby.taobao.org/

或者

gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/

修改bundler源

`~/.bundle/config

bundle config mirror.https://rubygems.org https://gems.ruby-china.org

See also

References