Sha256: f1b02b51f8e869d9614fb5bf538ed4d6e933fd79b671e7a83922eb94dd0c5500
Contents?: true
Size: 1.36 KB
Versions: 2
Compression:
Stored size: 1.36 KB
Contents
module MetasploitDataModels # Holds components of {VERSION} as defined by {http://semver.org/spec/v2.0.0.html semantic versioning v2.0.0}. module Version # The major version number. MAJOR = 0 # The minor version number, scoped to the {MAJOR} version number. MINOR = 22 # The patch number, scoped to the {MINOR} version number. PATCH = 4 # The full version string, including the {MAJOR}, {MINOR}, {PATCH}, and optionally, the `PRERELEASE` in the # {http://semver.org/spec/v2.0.0.html semantic versioning v2.0.0} format. # # @return [String] '{MAJOR}.{MINOR}.{PATCH}' on master. '{MAJOR}.{MINOR}.{PATCH}-PRERELEASE' on any branch # other than master. def self.full version = "#{MAJOR}.#{MINOR}.#{PATCH}" if defined? PRERELEASE version = "#{version}-#{PRERELEASE}" end version end # The full gem version string, including the {MAJOR}, {MINOR}, {PATCH}, and optionally, the {PRERELEASE} in the # {http://guides.rubygems.org/specification-reference/#version RubyGems versioning} format. # # @return [String] '{MAJOR}.{MINOR}.{PATCH}' on master. '{MAJOR}.{MINOR}.{PATCH}.{PRERELEASE}' on any branch # other than master. def self.gem full.gsub('-', '.pre.') end end # @see Version.gem GEM_VERSION = Version.gem # @see Version.full VERSION = Version.full end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
metasploit_data_models-0.22.4 | lib/metasploit_data_models/version.rb |
metasploit_data_models-0.22.4-java | lib/metasploit_data_models/version.rb |