Sha256: 6e9bd746bc8be6eef56c51cd73d03064160e129e385b4737b5e8e2f76f5b63dd

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, 7 )
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
build-tool-0.6.7 lib/build-tool/version.rb