зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Refactor ambiguous gems check
https://github.com/rubygems/rubygems/commit/a00c79a4da
This commit is contained in:
Родитель
7e1788e180
Коммит
d5288c8aad
|
@ -157,9 +157,7 @@ module Bundler
|
|||
# by rubygems.org are broken and wrong.
|
||||
if spec.remote
|
||||
# Check for this spec from other sources
|
||||
uris = [spec.remote.anonymized_uri]
|
||||
uris += remotes_for_spec(spec).map(&:anonymized_uri)
|
||||
uris.uniq!
|
||||
uris = [spec.remote, *remotes_for_spec(spec)].map(&:anonymized_uri).uniq
|
||||
Installer.ambiguous_gems << [spec.name, *uris] if uris.length > 1
|
||||
|
||||
path = fetch_gem(spec, options[:previous_spec])
|
||||
|
|
Загрузка…
Ссылка в новой задаче