ruby-win32/lib/ruby/site_ruby/1.8/rubygems/source_index.rb
def outdated
      dep = Gem::Dependency.new '', Gem::Requirement.default

      remotes = Gem::SourceInfoCache.search dep, true

      outdateds = []

      latest_specs.each do |local|
        name = local.name
        remote = remotes.select  { |spec| spec.name == name }.
                         sort_by { |spec| spec.version.to_ints }.
                         last
        outdateds << name if remote and local.version < remote.version
      end

      outdateds
    end
# Returns an Array of Gem::Specifications that are not up to date.
#
Returns an Array of Gem::Specifications that are not up to date.
Returns an Array of Gem :: Specifications that are not up to date .
def outdated
      dep = Gem::Dependency.new '', Gem::Requirement.default
      remotes = Gem::SourceInfoCache.search dep, true
      outdateds = []
      latest_specs.each do |local|
        name = local.name
        remote = remotes.select  { |spec| spec.name == name }.
                         sort_by { |spec| spec.version.to_ints }.
                         last
        outdateds << name if remote and local.version < remote.version
      end
      outdateds
    end
def outdated dep = Gem :: Dependency . new '' , Gem :: Requirement . default remotes = Gem :: SourceInfoCache . search dep , true outdateds = [ ] latest_specs . each do | local | name = local . name remote = remotes . select { | spec | spec . name == name } . sort_by { | spec | spec . version . to_ints } . last outdateds << name if remote and local . version < remote . version end outdateds end
Returns an Array of Gem::Specifications that are not up to date.
Returns an Array of Gem :: Specifications that are not up to date .