Module | Ronn |
In: |
lib/ronn.rb
lib/ronn/server.rb lib/ronn/roff.rb lib/ronn/template.rb lib/ronn/utils.rb lib/ronn/index.rb lib/ronn/document.rb |
Ronn is a humane text format and toolchain for authoring manpages (and things that appear as manpages from a distance). Use it to build / install standard UNIX roff(7) formatted manpages or to generate beautiful HTML manpages.
REV | = | '0.7.3' | value generated by: rake rev | |
VERSION | = | version |
Create a new Ronn::Document for the given ronn file. See Ronn::Document.new for usage information.
# File lib/ronn.rb, line 14 14: def self.new(filename, attributes={}, &block) 15: Document.new(filename, attributes, &block) 16: end
revision: 0.6.6-5-gdacd74b revision: 0.6.25
The string revision as reported by: git-describe —tags. This is just the tag name when a tag references the HEAD commit (0.6.25). When the HEAD commit is not tagged, this is a "<tag>-<offset>-<sha1>" string:
<tag> - closest tag name <offset> - number of commits ahead of <tag> <sha1> - 7c short SHA1 for HEAD
# File lib/ronn.rb, line 43 43: def self.revision 44: REV 45: end
version: 0.6.11
A semantic version number based on the git revision. The third element of the version is incremented by the commit offset, such that version 0.6.6-5-gdacd74b => 0.6.11
# File lib/ronn.rb, line 28 28: def self.version 29: ver = revision[/^[0-9.-]+/].split(/[.-]/).map { |p| p.to_i } 30: ver[2] += ver.pop while ver.size > 3 31: ver.join('.') 32: end