Sha256: 0c53f27b5ea63ed02c0de432d7bbd86f0dc6453844a4efbadf217a1d97166a04
Contents?: true
Size: 718 Bytes
Versions: 1
Compression:
Stored size: 718 Bytes
Contents
# -*- coding: UTF-8 -*- module BuildTool class Version def initialize( major, minor, patch, rc = nil ) @MAJOR_VERSION = major @MINOR_VERSION = minor @PATCH_LEVEL = patch @RC = rc end def to_s() version = '%d.%d.%d' % [ @MAJOR_VERSION, @MINOR_VERSION, @PATCH_LEVEL ] if not @RC.nil? version += '.rc%d' % @RC end return version end # During a minor release build-tool guarantess recipe compatibility. def recipe_version() return '%s.%s' % [ @MAJOR_VERSION, @MINOR_VERSION ] end end VERSION = Version.new( 0, 6, 2 ) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
build-tool-0.6.2 | lib/build-tool/version.rb |