[rubygems/rubygems] util/rubocop -A --only Style/PreferredHashMethods
https://github.com/rubygems/rubygems/commit/ae3bdc0e85
This commit is contained in:
parent
38664ede7e
commit
fef0313ec7
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user