[rubygems/rubygems] Reword warning

https://github.com/rubygems/rubygems/commit/cbd4abf8cf
This commit is contained in:
bronzdoc 2020-07-28 22:23:59 -06:00 коммит произвёл Hiroshi SHIBATA
Родитель 00bdac18cf
Коммит 6c19b0ec6e
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -557,7 +557,7 @@ class Gem::Specification < Gem::BasicSpecification
def add_runtime_dependency(gem, *requirements) def add_runtime_dependency(gem, *requirements)
if requirements.uniq.size != requirements.size if requirements.uniq.size != requirements.size
warn "WARNING: duplicate dependency #{requirements}" warn "WARNING: duplicated #{gem} dependency #{requirements}"
end end
add_dependency_with_type(gem, :runtime, requirements) add_dependency_with_type(gem, :runtime, requirements)

Просмотреть файл

@ -3052,7 +3052,7 @@ Please report a bug if this causes problems.
end end
def test_duplicate_runtime_dependency 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 assert_output nil, expected do
@a1.add_runtime_dependency "b", "~> 3.0", "~> 3.0" @a1.add_runtime_dependency "b", "~> 3.0", "~> 3.0"
end end