Merge pull request #14061 from zimbatm/bundler-env-fix

bundlerEnv: fix wrapping of programs
This commit is contained in:
zimbatm 2016-03-19 22:03:12 +00:00
commit 06e4186f4e

View File

@ -32,10 +32,8 @@ paths.each do |path|
ENV["BUNDLE_GEMFILE"] = "#{gemfile}"
ENV["BUNDLE_PATH"] = "#{bundle_path}"
gem_path = ENV["GEM_PATH"]
ENV["GEM_PATH"] = "\#{gem_path}\#{":" unless gem_path.nil? || gem_path.empty?}#{bundler_gem_path}"
Gem.use_paths("#{bundler_gem_path}", ENV["GEM_PATH"])
require 'rubygems'
require 'bundler/setup'
load Gem.bin_path(#{name.inspect}, #{exe.inspect})