Sha256: ca99d5b7f3ad65620182cc2ca9a2e68b5fafb7254e8b6e2ad129e4872b063208

Contents?: true

Size: 541 Bytes

Versions: 7

Compression:

Stored size: 541 Bytes

Contents

##
# Represents an installed gem.  This is used for dependency resolution.

class Gem::Source::Installed < Gem::Source

  def initialize # :nodoc:
    @uri = nil
  end

  ##
  # Installed sources sort before all other sources

  def <=> other
    case other
    when Gem::Source::Lock,
         Gem::Source::Vendor then
      -1
    when Gem::Source::Installed then
      0
    when Gem::Source then
      1
    else
      nil
    end
  end

  ##
  # We don't need to download an installed gem

  def download spec, path
    nil
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubygems-update-2.2.5 lib/rubygems/source/installed.rb
rubygems-update-2.2.4 lib/rubygems/source/installed.rb
rubygems-update-2.2.3 lib/rubygems/source/installed.rb
rubygems-update-2.2.2 lib/rubygems/source/installed.rb
rubygems-update-2.2.1 lib/rubygems/source/installed.rb
rubygems-update-2.2.0 lib/rubygems/source/installed.rb
rubygems-update-2.2.0.rc.1 lib/rubygems/source/installed.rb