ruby-changes:62453
From: bronzdoc <ko1@a...>
Date: Fri, 31 Jul 2020 21:08:23 +0900 (JST)
Subject: [ruby-changes:62453] 6c19b0ec6e (master): [rubygems/rubygems] Reword warning
https://git.ruby-lang.org/ruby.git/commit/?id=6c19b0ec6e From 6c19b0ec6e124be9972e357a0d9080a1c9cbe16e Mon Sep 17 00:00:00 2001 From: bronzdoc <lsagastume1990@g...> Date: Tue, 28 Jul 2020 22:23:59 -0600 Subject: [rubygems/rubygems] Reword warning https://github.com/rubygems/rubygems/commit/cbd4abf8cf diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index d3d6d9c..0bd62c3 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -557,7 +557,7 @@ class Gem::Specification < Gem::BasicSpecification https://github.com/ruby/ruby/blob/trunk/lib/rubygems/specification.rb#L557 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) diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb index cd00f74..b99d12a 100644 --- a/test/rubygems/test_gem_specification.rb +++ b/test/rubygems/test_gem_specification.rb @@ -3052,7 +3052,7 @@ Please report a bug if this causes problems. https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_specification.rb#L3052 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/