summaryrefslogtreecommitdiffstats
path: root/lib/rubygems
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
commite68660b8d9a0caa0a9887e1959f134e89eab63da (patch)
treeefd3fbae27fdf79f631abccfe2af6c5e64a6f190 /lib/rubygems
parent752f68c41f2121e2736a446ac3c284f8e6febf5f (diff)
downloadruby-e68660b8d9a0caa0a9887e1959f134e89eab63da.tar.gz
ruby-e68660b8d9a0caa0a9887e1959f134e89eab63da.tar.xz
ruby-e68660b8d9a0caa0a9887e1959f134e89eab63da.zip
Fix warnings in RubyGems
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems')
-rw-r--r--lib/rubygems/commands/sources_command.rb4
-rw-r--r--lib/rubygems/commands/specification_command.rb4
-rw-r--r--lib/rubygems/specification.rb1
3 files changed, 5 insertions, 4 deletions
diff --git a/lib/rubygems/commands/sources_command.rb b/lib/rubygems/commands/sources_command.rb
index def9c01a3..a0977f90d 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 954b38ac3..1ab2ad926 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
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb
index 35f2ffdff..6338e73a1 100644
--- a/lib/rubygems/specification.rb
+++ b/lib/rubygems/specification.rb
@@ -535,6 +535,7 @@ module Gem
@new_platform = nil
assign_defaults
@loaded = false
+ @loaded_from = nil
@@list << self
yield self if block_given?