Module Versionomy::Format::Semver::ExtraMethods
In: lib/versionomy/format_definitions/semver.rb

Extra methods added to version values that use the semver schema.

Methods

Public Instance methods

Returns true if this version is compatible with the given version, according to the Semantic Versioning specification. For example, 1.1.0 is compatible with 1.0.0 but not vice versa, 1.1.1 and 1.1.0 are compatible with each other, while 1.0.0 and 2.0.0 are mutually incompatible.

Returns true if the version is a prerelease version— that is, if the prerelease_suffix is nonempty.

Returns the release for this version. For example, converts "1.2.0a1" to "1.2.0". Non-prerelease versions return themselves unchanged.

[Validate]