class
Ameba::Version
- Ameba::Version
- Reference
- Object
Defined in:
ameba/version.crConstant 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
-
#dev? : Bool
Returns
trueif the current#versionis a development version. -
#release? : Bool
Returns
trueif the current#versionis a release version. -
#simple : SemanticVersion
Returns the
#versionwithout build metadata. -
#to_s(io : IO) : Nil
Appends the version string to the given io.
-
#version : SemanticVersion
Returns the current version as a
SemanticVersionobject.