summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMasataka Pocke Kuwabara <kuwabara@pocke.me>2021-10-03 01:30:55 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-10-09 08:04:08 +0900
commitd03d122ba1851156c93ea21a9006a7d921ad073e (patch)
treedbb58bee14392eb71c1341d45af7d90bfcf7b127 /spec
parentad92651d6428d59b7f4dbee7014f4d1127bbdbe8 (diff)
[rubygems/rubygems] Improve performance of Specification#missing_extensions?
https://github.com/rubygems/rubygems/commit/90c1919f94
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/support/hax.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/bundler/support/hax.rb b/spec/bundler/support/hax.rb
index aaf8c74894..0ad5239128 100644
--- a/spec/bundler/support/hax.rb
+++ b/spec/bundler/support/hax.rb
@@ -9,7 +9,10 @@ module Gem
Gem.ruby = ENV["RUBY"]
end
- @default_dir = ENV["BUNDLER_GEM_DEFAULT_DIR"] if ENV["BUNDLER_GEM_DEFAULT_DIR"]
+ if ENV["BUNDLER_GEM_DEFAULT_DIR"]
+ @default_dir = ENV["BUNDLER_GEM_DEFAULT_DIR"]
+ @default_specifications_dir = nil
+ end
if ENV["BUNDLER_SPEC_PLATFORM"]
class Platform