method
execute
v1_9_3_125 -
Show latest stable
- Class:
Gem::Commands::OutdatedCommand
execute()public
No documentation available.
# File 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