diff options
-rw-r--r-- | lib/rubygems/commands/outdated_command.rb | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -19,12 +19,15 @@ class Gem::Commands::OutdatedCommand < Gem::Command Gem::Specification.outdated.sort.each do |name| local = Gem::Specification.find_all_by_name(name).max dep = Gem::Dependency.new local.name, ">= #{local.version}" - remotes = Gem::SpecFetcher.fetcher.fetch dep next if remotes.empty? - remote = remotes.last.first - say "#{local.name} (#{local.version} < #{remote.version})" end end end |