MacOS搭建Ruby环境
安装rvm
curl -sSL https://get.rvm.io | bash
source ~/.profile
安装ruby
rvm install ruby-2.1.9
配置gem (如果SSL验证有问题,用http代替https)
gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
gem install bundler
bundle config