class Releasecop::Comparison
Constants
- PRETTY_FORMAT
Attributes
ahead[RW]
behind[RW]
lines[RW]
Public Class Methods
new(ahead, behind)
click to toggle source
# File lib/releasecop/comparison.rb, line 7 def initialize(ahead, behind) @ahead = ahead @behind = behind end
Public Instance Methods
check()
click to toggle source
# File lib/releasecop/comparison.rb, line 12 def check @lines = log.lines end
unreleased?()
click to toggle source
# File lib/releasecop/comparison.rb, line 16 def unreleased? !lines.empty? end
Private Instance Methods
log()
click to toggle source
# File lib/releasecop/comparison.rb, line 22 def log `git log #{@behind.for_rev_range}..#{@ahead.for_rev_range} --pretty=format:"#{PRETTY_FORMAT}" --date=short --no-merges` end