Gem version

MSP-9653

Move version information to standard location for gems.
This commit is contained in:
Luke Imhoff 2014-06-02 12:54:46 -05:00
parent 21fad7163d
commit 3ebe7dfbc8
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
2 changed files with 17 additions and 4 deletions

View File

@ -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

View File

@ -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}"