diff options
| author | Schneems <richard.schneeman+foo@gmail.com> | 2025-12-26 12:21:51 -0600 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2026-01-06 04:38:12 +0000 |
| commit | 16bdfa1b2a6b4cb40417e7673ad9eaa80664e4f0 (patch) | |
| tree | e7b33204b15c4623e19594313b096bc7dee20e67 /lib | |
| parent | 3143543f958d4fa90d0423f84c598286098f1704 (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.rb | 3 |
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) |
