summaryrefslogtreecommitdiff
path: root/lib/bundler.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-08-21 17:39:42 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-08-31 19:06:14 +0900
commitc044f818ca47511dceefcdddba64e4f144e8c731 (patch)
tree634ff1c5f747be8150c6f09b689b4b7e0586708e /lib/bundler.rb
parent8c79486e7e5682cc3a7da43050ee578a9c4b0f77 (diff)
[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
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4789
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r--lib/bundler.rb2
1 files changed, 1 insertions, 1 deletions
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