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.3.27 lib/rubygems/source/vendor.rb
rubygems-update-3.4.17 lib/rubygems/source/vendor.rb
rubygems-update-3.4.16 lib/rubygems/source/vendor.rb
rubygems-update-3.4.15 lib/rubygems/source/vendor.rb
rubygems-update-3.4.14 lib/rubygems/source/vendor.rb
rubygems-update-3.4.13 lib/rubygems/source/vendor.rb
rubygems-update-3.4.12 lib/rubygems/source/vendor.rb
rubygems-update-3.4.11 lib/rubygems/source/vendor.rb
rubygems-update-3.4.10 lib/rubygems/source/vendor.rb
rubygems-update-3.4.9 lib/rubygems/source/vendor.rb
rubygems-update-3.4.8 lib/rubygems/source/vendor.rb
rubygems-update-3.4.7 lib/rubygems/source/vendor.rb
rubygems-update-3.2.34 lib/rubygems/source/vendor.rb
rubygems-update-3.4.6 lib/rubygems/source/vendor.rb
rubygems-update-3.4.5 lib/rubygems/source/vendor.rb
rubygems-update-3.4.4 lib/rubygems/source/vendor.rb
rubygems-update-3.4.3 lib/rubygems/source/vendor.rb
rubygems-update-3.4.2 lib/rubygems/source/vendor.rb
rubygems-update-3.4.1 lib/rubygems/source/vendor.rb
rubygems-update-3.4.0 lib/rubygems/source/vendor.rb