Mrcv::Core::Version
Inherits Comparable < Struct < Value < Object
Represents an immutable semantic version adhering to SemVer 2.0.0.
Constants
SEMVER_PATTERN = /\A[vV]?(0|[1-9]\d*)(?:\.(0|[1-9]\d*))?(?:\.(0|[1-9]\d*))?(?:-([0-9A-Za-z.-]+))?(?:\+([0-9A-Za-z.-]+))?\z/
SemVer 2.0.0 regex pattern supporting optional leading 'v'/'V' and 1-3 segment integers
Constructors
Class methods
Instance methods
build
Sourcebump_major
Sourcebump_minor
Sourcebump_patch
Sourcemajor
Sourceminor
Sourcepatch
Sourceprerelease
Sourceprerelease?
Sourcestable?
Source