Module: Weak::Version
- Defined in:
- lib/weak/version.rb
Overview
Version information about Weak}. We follow semantic versioning.
Constant Summary collapse
- MAJOR =
MAJOR version. It is incremented after incompatible API changes
0
- MINOR =
MINOR version. It is incremented after adding functionality in a backwards-compatible manner
2
- PATCH =
PATCH version. It is incremented when making backwards-compatible bug-fixes.
0
- PRERELEASE =
PRERELEASE suffix. Set to a alphanumeric string on any pre-release versions like beta or RC releases;
nil
on regular releases nil
- STRING =
The Weak version as a
Gem::Version
string. We follow semantic versioning. [MAJOR, MINOR, PATCH, PRERELEASE].compact.join(".").freeze
Class Method Summary collapse
-
.gem_version ⇒ Gem::Version
The Weak version as a
Gem::Version
object. -
.to_s ⇒ String
The Weak version as a
Gem::Version
string.
Class Method Details
.gem_version ⇒ Gem::Version
Returns the Weak version as a Gem::Version
object.
30 31 32 |
# File 'lib/weak/version.rb', line 30 def self.gem_version Gem::Version.new STRING end |
.to_s ⇒ String
Returns the Weak version as a Gem::Version
string.
35 36 37 |
# File 'lib/weak/version.rb', line 35 def self.to_s STRING end |