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.



27
28
29
# File 'lib/lock_diff/gem/spec.rb', line 27

def initialize(lazy_specification)
  @spec = lazy_specification
end

Instance Method Details

#github_urlObject



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

def github_url; end

#homepage_urlObject



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

def homepage_url; end

#revisionObject



31
32
33
# File 'lib/lock_diff/gem/spec.rb', line 31

def revision
  @spec.git_version&.strip
end

#to_packageObject



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

def to_package
  Package.new(self)
end