Class: LockDiff::Gem::Spec::Base

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/lock_diff/gem/spec.rb

Direct Known Subclasses

GitSpec, PathSpec, RubyGemSpec

Instance Method Summary collapse

Constructor Details

#initialize(lazy_specification) ⇒ Base

Returns a new instance of Base.



34
35
36
# File 'lib/lock_diff/gem/spec.rb', line 34

def initialize(lazy_specification)
  @spec = lazy_specification
end

Instance Method Details

#repository_url ⇒ Object



46
# File 'lib/lock_diff/gem/spec.rb', line 46

def repository_url; end

#revision ⇒ Object



38
39
40
# File 'lib/lock_diff/gem/spec.rb', line 38

def revision
  @spec.git_version&.strip
end

#ruby_gem_url ⇒ Object



47
# File 'lib/lock_diff/gem/spec.rb', line 47

def ruby_gem_url; end

#to_package ⇒ Object



42
43
44
# File 'lib/lock_diff/gem/spec.rb', line 42

def to_package
  Package.new(self)
end