Sha256: 2e0805a47baf8e47e3b7b3213bb7aea30adcf18de4b856540a58b25028d2f169

Contents?: true

Size: 467 Bytes

Versions: 82

Compression:

Stored size: 467 Bytes

Contents

# frozen_string_literal: true
##
# This represents a vendored source that is similar to an installed gem.

class Gem::Source::Vendor < Gem::Source::Installed
  ##
  # Creates a new Vendor source for a gem that was unpacked at +path+.

  def initialize(path)
    @uri = path
  end

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

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
rubygems-update-3.2.0 lib/rubygems/source/vendor.rb
rubygems-update-3.2.0.rc.2 lib/rubygems/source/vendor.rb