cd ~/.rbenv/plugins/ruby-build
git pull
rbenv install 2.2.2
https://github.com/sstephenson/rbenv
rbenv shell 2.2.2
gem install bundler
bundle install
rbenv rehash
rbenv global 2.2.2
rbenv which rake # Make sure we're defaulting to the correct ruby
mkdir -p ~/.rbenv/plugins
cd ~/.rbenv/plugins
git clone https://github.com/ianheggie/rbenv-binstubs.git
cd YOUR_APP
bundle install --binstubs .bundle/bin
rbenv rehash
https://github.com/ianheggie/rbenv-binstubs https://github.com/sstephenson/rbenv/wiki/Understanding-binstubs (This approach didn't work for me)
bundle install
http://www.collectiveidea.com/blog/archives/2015/02/19/optimizing-rails-for-memory-usage-part-2-tuning-the-gc/ http://tmm1.net/ruby21-rgengc/ http://engineering.freeagent.com/2014/05/23/upgrading-to-ruby-2.1/