module Ronn
def self.new(filename, attributes={}, &block)
Create a new Ronn::Document for the given ronn file. See
def self.new(filename, attributes={}, &block) Document.new(filename, attributes, &block) end
def self.release?
def self.release? revision != '' && !revision.include?('-') end
def self.revision
commit is not tagged, this is a "
tag name when a tag references the HEAD commit (0.6.25). When the HEAD
The string revision as reported by: git-describe --tags. This is just the
revision: 0.6.25
revision: 0.6.6-5-gdacd74b
def self.revision REV end
def self.version
of the version is incremented by the commit offset, such that version
A semantic version number based on the git revision. The third element
version: 0.6.11
def self.version ver = revision[/^[0-9.-]+/].split(/[.-]/).map { |p| p.to_i } ver[2] += ver.pop while ver.size > 3 ver.join('.') end