diff options
Diffstat (limited to 'lib/rubygems/commands')
-rw-r--r-- | lib/rubygems/commands/outdated_command.rb | 9 | ||||
-rw-r--r-- | lib/rubygems/commands/setup_command.rb | 2 |
2 files changed, 6 insertions, 5 deletions
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' |