ruby-changes:61555
From: David <ko1@a...>
Date: Fri, 5 Jun 2020 07:34:38 +0900 (JST)
Subject: [ruby-changes:61555] fc10f35f3d (master): [rubygems/rubygems] Reuse `error` helper
https://git.ruby-lang.org/ruby.git/commit/?id=fc10f35f3d From fc10f35f3d4054fa035603b83bb43de51e9af98b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Fri, 29 May 2020 15:47:46 +0200 Subject: [rubygems/rubygems] Reuse `error` helper https://github.com/rubygems/rubygems/commit/3a44b6f846 diff --git a/lib/rubygems/specification_policy.rb b/lib/rubygems/specification_policy.rb index c9b1da2..069182b 100644 --- a/lib/rubygems/specification_policy.rb +++ b/lib/rubygems/specification_policy.rb @@ -309,8 +309,7 @@ duplicate dependency on #{dep}, (#{prev.requirement}) use: https://github.com/ruby/ruby/blob/trunk/lib/rubygems/specification_policy.rb#L309 end unless Array === val and val.all? {|x| x.kind_of?(klass)} - raise(Gem::InvalidSpecificationException, - "#{field} must be an Array of #{klass}") + error "#{field} must be an Array of #{klass}" end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/