Skip to content

Commit 0a7099a

Browse files
deivid-rodriguezmatzbot
authored andcommitted
[rubygems/rubygems] Extract a source local
ruby/rubygems@c5a9449069
1 parent 8cf1222 commit 0a7099a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/bundler/definition.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -960,11 +960,12 @@ def converge_specs(specs)
960960
s.source = default_source unless sources.get(lockfile_source)
961961
end
962962

963-
next if @sources_to_unlock.include?(s.source.name)
963+
source = s.source
964+
next if @sources_to_unlock.include?(source.name)
964965

965966
# Path sources have special logic
966-
if s.source.instance_of?(Source::Path) || s.source.instance_of?(Source::Gemspec)
967-
new_spec = s.source.specs[s].first
967+
if source.instance_of?(Source::Path) || source.instance_of?(Source::Gemspec)
968+
new_spec = source.specs[s].first
968969
if new_spec
969970
s.dependencies.replace(new_spec.dependencies)
970971
else

0 commit comments

Comments
 (0)