The rbenv rehash gem that was being used earlier has been merged into rbenv master now so we don't need to reinstall it. See - https://github.com/rbenv/rbenv/pull/638
Also, Ruby 2.1.5 is what we were installing with rbenv but only 2.1.8 is available on CircleCI. The build seems to be fine with it.
CircleCI configuration.
The rbenv rehash gem that was being used earlier has been merged into rbenv master now so we don't need to reinstall it. See - https://github.com/rbenv/rbenv/pull/638
Also, Ruby 2.1.5 is what we were installing with rbenv but only 2.1.8 is available on CircleCI. The build seems to be fine with it.