class Ameba::Version

Defined in:

ameba/version.cr

Constant Summary

INSTANCE = begin version = SemanticVersion.parse(VERSION) if !version.build && GIT_SHA version = version.copy_with(build: "git.commit.#{GIT_SHA}") end new(version) end

Cached version object.

Constructors

Instance Method Summary

Constructor Detail

def self.new(version : SemanticVersion) #

Instance Method Detail

def dev? : Bool #

Returns true if the current #version is a development version.


def release? : Bool #

Returns true if the current #version is a release version.


def simple : SemanticVersion #

Returns the #version without build metadata.


def to_s(io : IO) : Nil #

Appends the version string to the given io.


def version : SemanticVersion #

Returns the current version as a SemanticVersion object.