[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
|
private
|
||||||
|
|
||||||
def option_is_deprecated?(option)
|
def option_is_deprecated?(option)
|
||||||
@deprecated_options[command].has_key?(option)
|
@deprecated_options[command].key?(option)
|
||||||
end
|
end
|
||||||
|
|
||||||
def add_parser_description # :nodoc:
|
def add_parser_description # :nodoc:
|
||||||
|
@ -137,7 +137,7 @@ extensions will be restored.
|
|||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
|
||||||
if options.has_key? :skip
|
if options.key? :skip
|
||||||
if options[:skip].include? spec.name
|
if options[:skip].include? spec.name
|
||||||
say "Skipped #{spec.full_name}, it was given through options"
|
say "Skipped #{spec.full_name}, it was given through options"
|
||||||
next
|
next
|
||||||
|
@ -2599,7 +2599,7 @@ class Gem::Specification < Gem::BasicSpecification
|
|||||||
dependencies.each do |dep|
|
dependencies.each do |dep|
|
||||||
next unless dep.runtime?
|
next unless dep.runtime?
|
||||||
dep.matching_specs(true).each do |dep_spec|
|
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
|
visited[dep_spec] = true
|
||||||
trail.push(dep_spec)
|
trail.push(dep_spec)
|
||||||
begin
|
begin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user