[rubygems/rubygems] util/rubocop -A --only Style/PreferredHashMethods

https://github.com/rubygems/rubygems/commit/ae3bdc0e85
This commit is contained in:
Hiroshi SHIBATA 2023-03-16 13:45:57 +09:00
parent 38664ede7e
commit fef0313ec7
3 changed files with 3 additions and 3 deletions

View File

@ -477,7 +477,7 @@ class Gem::Command
private
def option_is_deprecated?(option)
@deprecated_options[command].has_key?(option)
@deprecated_options[command].key?(option)
end
def add_parser_description # :nodoc:

View File

@ -137,7 +137,7 @@ extensions will be restored.
next
end
if options.has_key? :skip
if options.key? :skip
if options[:skip].include? spec.name
say "Skipped #{spec.full_name}, it was given through options"
next

View File

@ -2599,7 +2599,7 @@ class Gem::Specification < Gem::BasicSpecification
dependencies.each do |dep|
next unless dep.runtime?
dep.matching_specs(true).each do |dep_spec|
next if visited.has_key?(dep_spec)
next if visited.key?(dep_spec)
visited[dep_spec] = true
trail.push(dep_spec)
begin