set GEM_HOME via Gem.paths

This commit is contained in:
Michael Fellinger 2020-04-06 15:31:18 +02:00
parent f92600b406
commit b285fa07d5
No known key found for this signature in database
GPG Key ID: F4D029589C005F89

View File

@ -35,7 +35,9 @@ ENV["BUNDLE_GEMFILE"] = #{gemfile.dump}
ENV.delete 'BUNDLE_PATH'
ENV['BUNDLE_FROZEN'] = '1'
$LOAD_PATH.unshift #{bundler_path.dump} + "/lib"
Gem.paths = { 'GEM_HOME' => #{bundle_path.dump} }
$LOAD_PATH.unshift #{File.join(bundler_path, "/lib").dump}
require 'bundler'
Bundler.setup(#{groups.map(&:dump).join(', ')})