diff options
author | Hiroshi SHIBATA <[email protected]> | 2023-03-16 13:08:50 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-03-17 18:50:55 +0900 |
commit | 0b632b9cddef76514635ad460d40b3a8d346602f () | |
tree | 33a2b39d30bb0c3de6600de132c7f6a4cda4e775 /lib/rubygems/specification_policy.rb | |
parent | 567db6064baf572e3510c0322ec536ad84c81d57 (diff) |
[rubygems/rubygems] util/rubocop -A --only Style/ClassCheck
https://.com/rubygems/rubygems/commit/1c3356a872
-rw-r--r-- | lib/rubygems/specification_policy.rb | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -125,7 +125,7 @@ class Gem::SpecificationPolicy metadata.each do |key, value| entry = "metadata['#{key}']" - if !key.kind_of?(String) error "metadata keys must be a String" end @@ -133,7 +133,7 @@ class Gem::SpecificationPolicy error "metadata key is too large (#{key.size} > 128)" end - if !value.kind_of?(String) error "#{entry} value must be a String" end @@ -343,7 +343,7 @@ duplicate dependency on #{dep}, (#{prev.requirement}) use: String end - unless Array === val && val.all? {|x| x.kind_of?(klass) } error "#{field} must be an Array of #{klass}" end end |