зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Reword warning
https://github.com/rubygems/rubygems/commit/cbd4abf8cf
This commit is contained in:
Родитель
00bdac18cf
Коммит
6c19b0ec6e
|
@ -557,7 +557,7 @@ class Gem::Specification < Gem::BasicSpecification
|
|||
|
||||
def add_runtime_dependency(gem, *requirements)
|
||||
if requirements.uniq.size != requirements.size
|
||||
warn "WARNING: duplicate dependency #{requirements}"
|
||||
warn "WARNING: duplicated #{gem} dependency #{requirements}"
|
||||
end
|
||||
|
||||
add_dependency_with_type(gem, :runtime, requirements)
|
||||
|
|
|
@ -3052,7 +3052,7 @@ Please report a bug if this causes problems.
|
|||
end
|
||||
|
||||
def test_duplicate_runtime_dependency
|
||||
expected = "WARNING: duplicate dependency [\"~> 3.0\", \"~> 3.0\"]\n"
|
||||
expected = "WARNING: duplicated b dependency [\"~> 3.0\", \"~> 3.0\"]\n"
|
||||
assert_output nil, expected do
|
||||
@a1.add_runtime_dependency "b", "~> 3.0", "~> 3.0"
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче