Sha256: 0a7c564c057b2034b7d14c1c7f4822e4655212c7740b7a0759df538fa343a6e6

Contents?: true

Size: 468 Bytes

Versions: 5

Compression:

Stored size: 468 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

5 entries across 5 versions & 1 rubygems

Version Path
rubygems-update-3.4.22 lib/rubygems/source/vendor.rb
rubygems-update-3.4.21 lib/rubygems/source/vendor.rb
rubygems-update-3.4.20 lib/rubygems/source/vendor.rb
rubygems-update-3.4.19 lib/rubygems/source/vendor.rb
rubygems-update-3.4.18 lib/rubygems/source/vendor.rb