class

Ameba::Version

Inherits Reference < Object

Constants

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

new(version : SemanticVersion)
Source

Instance methods

dev?

Returns true if the current version is a development version.

Source
release?

Returns true if the current version is a release version.

Source
simple

Returns the version without build metadata.

Source
to_s(io : IO) : Nil

Appends the version string to the given io.

Source
version

Returns the current version as a SemanticVersion object.

Source