summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-05-29 15:47:46 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-05 07:32:42 +0900
commitfc10f35f3d4054fa035603b83bb43de51e9af98b (patch)
tree0449678af52f90b5488e4211c707cc185045bf4a
parent3cfe190099bd4354b39d4276eec97bdef44255a2 (diff)
[rubygems/rubygems] Reuse `error` helper
https://github.com/rubygems/rubygems/commit/3a44b6f846
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3184
-rw-r--r--lib/rubygems/specification_policy.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rubygems/specification_policy.rb b/lib/rubygems/specification_policy.rb
index c9b1da2177..069182b543 100644
--- a/lib/rubygems/specification_policy.rb
+++ b/lib/rubygems/specification_policy.rb
@@ -309,8 +309,7 @@ duplicate dependency on #{dep}, (#{prev.requirement}) use:
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