Module: Metasploit::Credential::Version

Defined in:
lib/metasploit/credential/version.rb

Overview

Holds components of VERSION as defined by semantic versioning v2.0.0.

Constant Summary collapse

MAJOR =

The major version number.

0
MINOR =

The minor version number, scoped to the MAJOR version number.

13
PATCH =

The patch number, scoped to the MINOR version number.

16

Class Method Summary collapse

Class Method Details

.fullString

The full version string, including the MAJOR, MINOR, PATCH, and optionally, the PRERELEASE in the semantic versioning v2.0.0 format.

Returns:



17
18
19
20
21
22
23
24
25
# File 'lib/metasploit/credential/version.rb', line 17

def self.full
  version = "#{MAJOR}.#{MINOR}.#{PATCH}"

  if defined? PRERELEASE
    version = "#{version}-#{PRERELEASE}"
  end

  version
end

.gemString

The full gem version string, including the MAJOR, MINOR, PATCH, and optionally, the PRERELEASE in the RubyGems versioning format.

Returns:



32
33
34
# File 'lib/metasploit/credential/version.rb', line 32

def self.gem
  full.gsub('-', '.pre.')
end