execute (Gem::Commands::OutdatedCommand)

    # File lib/rubygems/commands/outdated_command.rb, line 18
      def execute
        locals = Gem::SourceIndex.from_installed_gems

        locals.outdated.sort.each do |name|
          local = locals.search(/^#{name}$/).last
          remotes = Gem::SourceInfoCache.search_with_source(/^#{name}$/, true)
          remote = remotes.last.first
          say "#{local.name} (#{local.version} < #{remote.version})"
        end
      end