Methods
E
N
Included Modules
Class Public methods
new()
# File ../ruby/lib/rubygems/commands/outdated_command.rb, line 11
def initialize
  super 'outdated', 'Display all gems that need updates'

  add_local_remote_options
  add_platform_option
end
Instance Public methods
execute()
# File ../ruby/lib/rubygems/commands/outdated_command.rb, line 18
def execute
  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