diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2023-07-21 20:30:41 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-08-16 15:03:38 +0900 |
commit | 4a3777bf6ba78473ace61fbaa663faaa4e7068e3 (patch) | |
tree | a6a9c11e90e433bb6b0376645f483e1a3caf6277 /lib/bundler/definition.rb | |
parent | e92ace6be7e6501bfb7dec43a8d8abdf19ae80f0 (diff) |
[rubygems/rubygems] Extract s.name to a variable
https://github.com/rubygems/rubygems/commit/689c39b42f
Diffstat (limited to 'lib/bundler/definition.rb')
-rw-r--r-- | lib/bundler/definition.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index 241a97fc7d..2fbd56e5d7 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -810,6 +810,7 @@ module Bundler @specs_that_changed_sources = [] specs.each do |s| + name = s.name dep = @dependencies.find {|d| s.satisfies?(d) } lockfile_source = s.source @@ -848,11 +849,11 @@ module Bundler else # If the spec is no longer in the path source, unlock it. This # commonly happens if the version changed in the gemspec - @unlock[:gems] << s.name + @unlock[:gems] << name end end - if dep.nil? && requested_dependencies.find {|d| s.name == d.name } + if dep.nil? && requested_dependencies.find {|d| name == d.name } @unlock[:gems] << s.name else converged << s |