1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Don't try to prune_bundler again

This commit is contained in:
Tim Morgan 2020-02-13 15:12:20 -06:00
parent 3be5f32e07
commit 9dcd2e335d

View file

@ -286,6 +286,7 @@ module Puma
end end
def prune_bundler def prune_bundler
return if ENV.key?('PUMA_BUNDLER_PRUNED')
return unless defined?(Bundler) return unless defined?(Bundler)
require_rubygems_min_version!(Gem::Version.new("2.2"), "prune_bundler") require_rubygems_min_version!(Gem::Version.new("2.2"), "prune_bundler")
unless puma_wild_location unless puma_wild_location
@ -295,7 +296,7 @@ module Puma
deps, dirs = dependencies_and_files_to_require_after_prune deps, dirs = dependencies_and_files_to_require_after_prune
log "* Pruning Bundler environment #{caller.inspect}" log "* Pruning Bundler environment"
home = ENV['GEM_HOME'] home = ENV['GEM_HOME']
Bundler.with_original_env do Bundler.with_original_env do
ENV['GEM_HOME'] = home ENV['GEM_HOME'] = home