Sha256: f6badb463cd8d5f650e6f45a03a2864a711025ecea64ed5ee1615dd9f9096e62

Contents?: true

Size: 721 Bytes

Versions: 1

Compression:

Stored size: 721 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, 0, 2 )
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
build-tool-0.6.0.rc2 lib/build-tool/version.rb