summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/specification_command.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-23 06:34:28 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-23 06:34:28 +0000
commited9690bba519982b694d03cdce536a3c5bcaf774 (patch)
treeefd3fbae27fdf79f631abccfe2af6c5e64a6f190 /lib/rubygems/commands/specification_command.rb
parent1777eaa523e48fa8023b0ab23e83f2c3187e62c5 (diff)
Fix warnings in RubyGems
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/commands/specification_command.rb')
-rw-r--r--lib/rubygems/commands/specification_command.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/commands/specification_command.rb b/lib/rubygems/commands/specification_command.rb
index 954b38ac37..1ab2ad9260 100644
--- a/lib/rubygems/commands/specification_command.rb
+++ b/lib/rubygems/commands/specification_command.rb
@@ -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