summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSchneems <richard.schneeman+foo@gmail.com>2025-12-26 12:21:51 -0600
committergit <svn-admin@ruby-lang.org>2026-01-06 04:38:12 +0000
commit16bdfa1b2a6b4cb40417e7673ad9eaa80664e4f0 (patch)
treee7b33204b15c4623e19594313b096bc7dee20e67 /lib
parent3143543f958d4fa90d0423f84c598286098f1704 (diff)
[ruby/rubygems] Split logic to two lines
https://github.com/ruby/rubygems/commit/5a6eca4cf9
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/runtime.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/runtime.rb b/lib/bundler/runtime.rb
index 5eb827dcb2..f632ce9144 100644
--- a/lib/bundler/runtime.rb
+++ b/lib/bundler/runtime.rb
@@ -174,7 +174,8 @@ module Bundler
spec_cache_paths = []
spec_gemspec_paths = []
spec_extension_paths = []
- Bundler.rubygems.add_default_gems_to(specs).values.each do |spec|
+ specs_to_keep = Bundler.rubygems.add_default_gems_to(specs).values
+ specs_to_keep.each do |spec|
spec_gem_paths << spec.full_gem_path
# need to check here in case gems are nested like for the rails git repo
md = %r{(.+bundler/gems/.+-[a-f0-9]{7,12})}.match(spec.full_gem_path)