mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix warnings in RubyGems
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1777eaa523
commit
ed9690bba5
7 changed files with 24 additions and 17 deletions
|
@ -58,12 +58,12 @@ class Gem::Commands::SpecificationCommand < Gem::Command
|
|||
terminate_interaction 1
|
||||
end
|
||||
|
||||
output = lambda { |spec| say spec.to_yaml; say "\n" }
|
||||
output = lambda { |s| say s.to_yaml; say "\n" }
|
||||
|
||||
if options[:all] then
|
||||
specs.each(&output)
|
||||
else
|
||||
spec = specs.sort_by { |spec| spec.version }.last
|
||||
spec = specs.sort_by { |s| s.version }.last
|
||||
output[spec]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue