Skip to content

Commit 66aa713

Browse files
deivid-rodriguezhsbt
authored andcommitted
[rubygems/rubygems] Materialize specs just once in installer
`Definition#specs` does the same thing but memoizes the result. ruby/rubygems@b62bf9fe41
1 parent c4a2f72 commit 66aa713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bundler/installer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def installation_parallelization
213213
def load_plugins
214214
Gem.load_plugins
215215

216-
requested_path_gems = @definition.requested_specs.select {|s| s.source.is_a?(Source::Path) }
216+
requested_path_gems = @definition.specs.select {|s| s.source.is_a?(Source::Path) }
217217
path_plugin_files = requested_path_gems.flat_map do |spec|
218218
spec.matches_for_glob("rubygems_plugin#{Bundler.rubygems.suffix_pattern}")
219219
rescue TypeError

0 commit comments

Comments
 (0)