module Ronn

def self.new(filename, attributes={}, &block)

Ronn::Document.new for usage information.
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?

truthy when this a release (\d.\d.\d) version.
def self.release?
  revision != '' && !revision.include?('-')
end

def self.revision

- 7c short SHA1 for HEAD
- number of commits ahead of
- closest tag name
commit is not tagged, this is a "--" string:
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

0.6.6-5-gdacd74b => 0.6.11
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