Sha256: f20a8793f141bd98b8ce45e08c1dd577e04d56aee6cf99dea916b209394941a5

Contents?: true

Size: 369 Bytes

Versions: 14

Compression:

Stored size: 369 Bytes

Contents

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

  def initialize
  end

  ##
  # Installed sources sort before all other sources

  def <=> other
    case other
    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

14 entries across 14 versions & 1 rubygems

Version Path
rubygems-update-2.1.11 lib/rubygems/source/installed.rb
rubygems-update-2.1.10 lib/rubygems/source/installed.rb
rubygems-update-2.1.9 lib/rubygems/source/installed.rb
rubygems-update-2.1.8 lib/rubygems/source/installed.rb
rubygems-update-2.1.7 lib/rubygems/source/installed.rb
rubygems-update-2.1.6 lib/rubygems/source/installed.rb
rubygems-update-2.1.5 lib/rubygems/source/installed.rb
rubygems-update-2.1.4 lib/rubygems/source/installed.rb
rubygems-update-2.1.3 lib/rubygems/source/installed.rb
rubygems-update-2.1.2 lib/rubygems/source/installed.rb
rubygems-update-2.1.1 lib/rubygems/source/installed.rb
rubygems-update-2.1.0 lib/rubygems/source/installed.rb
rubygems-update-2.1.0.rc.2 lib/rubygems/source/installed.rb
rubygems-update-2.1.0.rc.1 lib/rubygems/source/installed.rb