Class: AwSec::Version
- Inherits:
-
Object
- Object
- AwSec::Version
- Defined in:
- lib/version.rb
Constant Summary collapse
- PRERELEASE_MODIFIER =
ie. PRERELEASE_MODIFIER = ‘beta1’
nil
Class Method Summary collapse
-
.current ⇒ Object
Returns the current version of the Backup gem ( qualified for the gemspec ).
-
.major ⇒ Object
Returns the major version ( big release based off of multiple minor releases ).
-
.minor ⇒ Object
Returns the minor version ( small release based off of multiple patches ).
-
.patch ⇒ Object
Returns the patch version ( updates, features and (crucial) bug fixes ).
-
.prerelease_modifier ⇒ Object
Returns the prerelease modifier ( not quite ready for public consumption ).
Class Method Details
.current ⇒ Object
Returns the current version of the Backup gem ( qualified for the gemspec )
47 48 49 |
# File 'lib/version.rb', line 47 def self.current prerelease_modifier.nil? ? "#{major}.#{minor}.#{patch}" : "#{major}.#{minor}.#{patch}.#{prerelease_modifier}" end |
.major ⇒ Object
Returns the major version ( big release based off of multiple minor releases )
23 24 25 |
# File 'lib/version.rb', line 23 def self.major MAJOR end |
.minor ⇒ Object
Returns the minor version ( small release based off of multiple patches )
29 30 31 |
# File 'lib/version.rb', line 29 def self.minor MINOR end |
.patch ⇒ Object
Returns the patch version ( updates, features and (crucial) bug fixes )
35 36 37 |
# File 'lib/version.rb', line 35 def self.patch PATCH end |
.prerelease_modifier ⇒ Object
Returns the prerelease modifier ( not quite ready for public consumption )
41 42 43 |
# File 'lib/version.rb', line 41 def self.prerelease_modifier PRERELEASE_MODIFIER end |