From c044f818ca47511dceefcdddba64e4f144e8c731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Sat, 21 Aug 2021 17:39:42 +0200 Subject: [PATCH] [rubygems/rubygems] Move `Bundler.rubygems.clear_paths` to a better place Since it clears both home and path. https://github.com/rubygems/rubygems/commit/fadf5e03ea --- lib/bundler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bundler.rb b/lib/bundler.rb index 2d5bbafee5..d646cb08ee 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -659,6 +659,7 @@ EOF def configure_gem_home_and_path configure_gem_path configure_gem_home + Bundler.rubygems.clear_paths end def configure_gem_path @@ -672,7 +673,6 @@ EOF def configure_gem_home Bundler::SharedHelpers.set_env "GEM_HOME", bundle_path.to_s - Bundler.rubygems.clear_paths end def tmp_home_path