From ed9690bba519982b694d03cdce536a3c5bcaf774 Mon Sep 17 00:00:00 2001 From: drbrain Date: Sun, 23 Dec 2007 06:34:28 +0000 Subject: Fix warnings in RubyGems git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rubygems/commands/sources_command.rb | 4 ++-- lib/rubygems/commands/specification_command.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/rubygems/commands') diff --git a/lib/rubygems/commands/sources_command.rb b/lib/rubygems/commands/sources_command.rb index def9c01a3f..a0977f90dc 100644 --- a/lib/rubygems/commands/sources_command.rb +++ b/lib/rubygems/commands/sources_command.rb @@ -92,8 +92,8 @@ class Gem::Commands::SourcesCommand < Gem::Command say "*** CURRENT SOURCES ***" say - Gem.sources.each do |source_uri| - say source_uri + Gem.sources.each do |source| + say source end end end 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 -- cgit v1.2.3