[Puppet - Bug #17616] Package update via Gem provider fails when running Puppet via bundler

2013-02-17 Thread tickets
Issue #17616 has been updated by Josh Nichols. I ran into this bug again, in a different context. I took a bit more time to dig into it, and found a good place to inject `Bundler.with_clean_env`. I've sent two pull requests, one for 2.7.x and one for 3.0.x. I originally wrote it against mas

[Puppet - Bug #17616] Package update via Gem provider fails when running Puppet via bundler

2012-12-06 Thread tickets
Issue #17616 has been updated by Josh Nichols. I've run into this too. Basically, bundler 'infects' the environment to make sure any rubygems things go through bundler, so if the gem isn't in the Gemfile, `gem install` won't see it. To get around that, Bundler has a `Bundler.with_clean_env` m