diff --git a/lib/plugin_gem.rb b/lib/plugin_gem.rb index c870680dbd7..49882b2cd92 100644 --- a/lib/plugin_gem.rb +++ b/lib/plugin_gem.rb @@ -16,7 +16,10 @@ module PluginGem command = "gem install #{name} -v #{version} -i #{gems_path} --no-document --ignore-dependencies --no-user-install" command += " --source #{opts[:source]}" if opts[:source] puts command - puts `#{command}` + + Bundler.with_unbundled_env do + puts `#{command}` + end end if File.exist? spec_file