[rubygems/rubygems] Extract a source
local
https://github.com/rubygems/rubygems/commit/c5a9449069
This commit is contained in:
parent
8cf1222e56
commit
0a7099a0ae
@ -960,11 +960,12 @@ module Bundler
|
||||
s.source = default_source unless sources.get(lockfile_source)
|
||||
end
|
||||
|
||||
next if @sources_to_unlock.include?(s.source.name)
|
||||
source = s.source
|
||||
next if @sources_to_unlock.include?(source.name)
|
||||
|
||||
# Path sources have special logic
|
||||
if s.source.instance_of?(Source::Path) || s.source.instance_of?(Source::Gemspec)
|
||||
new_spec = s.source.specs[s].first
|
||||
if source.instance_of?(Source::Path) || source.instance_of?(Source::Gemspec)
|
||||
new_spec = source.specs[s].first
|
||||
if new_spec
|
||||
s.dependencies.replace(new_spec.dependencies)
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user