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.20 lib/rubygems/source/vendor.rb
rubygems-update-3.2.19 lib/rubygems/source/vendor.rb
rubygems-update-3.2.18 lib/rubygems/source/vendor.rb
rubygems-update-3.2.17 lib/rubygems/source/vendor.rb
rubygems-update-3.2.16 lib/rubygems/source/vendor.rb
rubygems-update-3.2.15 lib/rubygems/source/vendor.rb
rubygems-update-3.2.14 lib/rubygems/source/vendor.rb
rubygems-update-3.2.13 lib/rubygems/source/vendor.rb
rubygems-update-3.2.12 lib/rubygems/source/vendor.rb
rubygems-update-3.2.11 lib/rubygems/source/vendor.rb
rubygems-update-3.2.10 lib/rubygems/source/vendor.rb
rubygems-update-3.2.9 lib/rubygems/source/vendor.rb
rubygems-update-3.2.8 lib/rubygems/source/vendor.rb
rubygems-update-3.2.7 lib/rubygems/source/vendor.rb
rubygems-update-3.2.6 lib/rubygems/source/vendor.rb
rubygems-update-3.2.5 lib/rubygems/source/vendor.rb
rubygems-update-3.2.4 lib/rubygems/source/vendor.rb
rubygems-update-3.2.3 lib/rubygems/source/vendor.rb
rubygems-update-3.2.2 lib/rubygems/source/vendor.rb
rubygems-update-3.2.1 lib/rubygems/source/vendor.rb