Gem version
MSP-9653 Move version information to standard location for gems.
This commit is contained in:
parent
21fad7163d
commit
3ebe7dfbc8
|
@ -0,0 +1,12 @@
|
|||
module Metasploit
|
||||
module Framework
|
||||
module Version
|
||||
MAJOR = 4
|
||||
MINOR = 9
|
||||
PATCH = 2
|
||||
PRERELEASE = 'dev'
|
||||
end
|
||||
|
||||
VERSION = "#{Version::MAJOR}.#{Version::MINOR}.#{Version::PATCH}-#{Version::PRERELEASE}"
|
||||
end
|
||||
end
|
|
@ -1,4 +1,5 @@
|
|||
# -*- coding: binary -*-
|
||||
require 'metasploit/framework/version'
|
||||
require 'msf/core'
|
||||
require 'msf/util'
|
||||
|
||||
|
@ -16,10 +17,10 @@ class Framework
|
|||
# Versioning information
|
||||
#
|
||||
|
||||
Major = 4
|
||||
Minor = 9
|
||||
Point = 2
|
||||
Release = "-dev"
|
||||
Major = Metasploit::Framework::Version::MAJOR
|
||||
Minor = Metasploit::Framework::Version::MINOR
|
||||
Point = Metasploit::Framework::Version::PATCH
|
||||
Release = "-#{Metasploit::Framework::Version::PRERELEASE}"
|
||||
|
||||
if(Point)
|
||||
Version = "#{Major}.#{Minor}.#{Point}#{Release}"
|
||||
|
|
Loading…
Reference in New Issue