mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
util/rubocop -A --only Style/SymbolProc
This commit is contained in:
parent
b304cf324a
commit
5211900d37
61 changed files with 239 additions and 295 deletions
|
@ -90,7 +90,7 @@ use with other commands.
|
|||
def display_pipe(specs) # :nodoc:
|
||||
specs.each do |spec|
|
||||
unless spec.dependencies.empty?
|
||||
spec.dependencies.sort_by {|dep| dep.name }.each do |dep|
|
||||
spec.dependencies.sort_by(&:name).each do |dep|
|
||||
say "#{dep.name} --version '#{dep.requirement}'"
|
||||
end
|
||||
end
|
||||
|
@ -152,7 +152,7 @@ use with other commands.
|
|||
response = String.new
|
||||
response << " " * level + "Gem #{spec.full_name}\n"
|
||||
unless spec.dependencies.empty?
|
||||
spec.dependencies.sort_by {|dep| dep.name }.each do |dep|
|
||||
spec.dependencies.sort_by(&:name).each do |dep|
|
||||
response << " " * level + " #{dep}\n"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue