Class: AwSec::Version

Inherits:
Object
  • Object
show all
Defined in:
lib/version.rb

Constant Summary collapse

PRERELEASE_MODIFIER =

ie. PRERELEASE_MODIFIER = ‘beta1’

nil

Class Method Summary collapse

Class Method Details

.currentObject

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

.majorObject

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

.minorObject

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

.patchObject

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_modifierObject

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