From 6e5f49770c9b9be151e3142a575abe99a69b0d14 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 9 Mar 2011 22:32:29 +0000 Subject: Import rubygems 1.6.2 (release candidate @ 2026fbb5) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rubygems/commands/outdated_command.rb | 9 +++++---- lib/rubygems/commands/setup_command.rb | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'lib/rubygems/commands') diff --git a/lib/rubygems/commands/outdated_command.rb b/lib/rubygems/commands/outdated_command.rb index 0a9a87060e..7b6e1cfe8e 100644 --- a/lib/rubygems/commands/outdated_command.rb +++ b/lib/rubygems/commands/outdated_command.rb @@ -25,12 +25,13 @@ class Gem::Commands::OutdatedCommand < Gem::Command locals = Gem::SourceIndex.from_installed_gems locals.outdated.sort.each do |name| - local = locals.find_name(name).last - - dep = Gem::Dependency.new local.name, ">= #{local.version}" + local = locals.find_name(name).last + dep = Gem::Dependency.new local.name, ">= #{local.version}" remotes = Gem::SpecFetcher.fetcher.fetch dep - remote = remotes.last.first + next if remotes.empty? + + remote = remotes.last.first say "#{local.name} (#{local.version} < #{remote.version})" end end diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb index 9090353e3b..cf844c6674 100644 --- a/lib/rubygems/commands/setup_command.rb +++ b/lib/rubygems/commands/setup_command.rb @@ -335,7 +335,7 @@ abort "#{deprecation_message}" require 'rdoc/rdoc' - args << '--main' << 'README.rdoc' + args << '--main' << 'README.rdoc' << '--quiet' args << '.' args << 'README.rdoc' << 'UPGRADING.rdoc' args << 'LICENSE.txt' << 'GPL.txt' << 'History.txt' -- cgit v1.2.3