Server in China can't reach rubygems.org so install fails

When on china you need to use:

source https://ruby.taobao.org/

instead of

source https://rubygems.org/

in your Gemfile.

PS.: I’m never been to China but read about this on StackOverflow.