class LockDiff::Gem::Package
Public Class Methods
new(spec)
click to toggle source
# File lib/lock_diff/gem/package.rb, line 9 def initialize(spec) @spec = spec end
Public Instance Methods
different?(other)
click to toggle source
# File lib/lock_diff/gem/package.rb, line 21 def different?(other) name != other.name || revision != other.revision || version != other.version end
ref()
click to toggle source
# File lib/lock_diff/gem/package.rb, line 13 def ref revision || git_tag end
repository()
click to toggle source
# File lib/lock_diff/gem/package.rb, line 25 def repository @repository ||= Github::RepositoryNameDetector.new(@spec.repository_url).call end
version_str()
click to toggle source
# File lib/lock_diff/gem/package.rb, line 17 def version_str revision || version.to_s end
Private Instance Methods
git_tag()
click to toggle source
# File lib/lock_diff/gem/package.rb, line 31 def git_tag return unless version && repository return @git_tag if defined? @git_tag @git_tag = Github::TagFinder.new( repository: repository, package_name: name, version: version ).call end