зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Remove unnecessary string concatenation
https://github.com/rubygems/rubygems/commit/81ccb3ab89
This commit is contained in:
Родитель
c4bf24ee46
Коммит
deff9e2699
|
@ -1240,8 +1240,7 @@ class Gem::Specification < Gem::BasicSpecification
|
||||||
clear_load_cache
|
clear_load_cache
|
||||||
unresolved = unresolved_deps
|
unresolved = unresolved_deps
|
||||||
unless unresolved.empty?
|
unless unresolved.empty?
|
||||||
w = "W" + "ARN"
|
warn "WARN: Unresolved or ambiguous specs during Gem::Specification.reset:"
|
||||||
warn "#{w}: Unresolved or ambiguous specs during Gem::Specification.reset:"
|
|
||||||
unresolved.values.each do |dep|
|
unresolved.values.each do |dep|
|
||||||
warn " #{dep}"
|
warn " #{dep}"
|
||||||
|
|
||||||
|
@ -1251,7 +1250,7 @@ class Gem::Specification < Gem::BasicSpecification
|
||||||
versions.each {|s| warn " - #{s.version}" }
|
versions.each {|s| warn " - #{s.version}" }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
warn "#{w}: Clearing out unresolved specs. Try 'gem cleanup <gem>'"
|
warn "WARN: Clearing out unresolved specs. Try 'gem cleanup <gem>'"
|
||||||
warn "Please report a bug if this causes problems."
|
warn "Please report a bug if this causes problems."
|
||||||
unresolved.clear
|
unresolved.clear
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче