alup/puppet-rbenv — pull request #34 by th3hunt (2012-09-22 19:49:25+00:00)
Title: Fixes bundler gem install in environments with no pre-existing ruby interpreter

rbenv::compile failed to install bundler gem when used on a new user with no preexisting ruby installed. Tested with vagrant/centos6.3 (MRI & jruby).

So I tracked down the problem to the way the rbenvgem custom type tries to use the ruby's gem command. I think it should use rbenv for that. So, I worked around it by executing an "rbenv shell $ruby" before any gem command.

Seems to work fine :)