class N42gitversion::Versioner
Public Instance Methods
fullVersion()
click to toggle source
# File lib/n42gitversion.rb, line 6 def fullVersion "#{shortVersion}.#{buildNumber}" end
shortVersion()
click to toggle source
# File lib/n42gitversion.rb, line 10 def shortVersion `git --git-dir=".git" --work-tree="." describe --tags --abbrev=0 | sed -e 's/^v//'`.strip end
Private Instance Methods
buildNumber()
click to toggle source
# File lib/n42gitversion.rb, line 16 def buildNumber `git --git-dir=".git" --work-tree="." rev-list HEAD | wc -l`.strip end