Sha256: 54f4b5913215f5ebfd9982c7439452e72c45e50d65094d88bad6e872cdef2e15

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 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 = 1
    # The minor version number, scoped to the {MAJOR} version number.
    MINOR = 0
    # The patch number, scoped to the {MAJOR} and {MINOR} version numbers.
    PATCH = 0
    # The prerelease version, scoped to the {MAJOR}, {MINOR}, and {PATCH} version numbers.
    PRERELEASE = 'rails-4.0b'

    # 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

  end

  # @see Version.full
  VERSION = Version.full
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
metasploit_data_models-1.0.0.pre.rails.pre.4.0b lib/metasploit_data_models/version.rb