8349a274ea
Because we do not always update the version number, multiple releases have shown version string, which is not useful for helping debug issues, or for knowing what features are enabled. This adds the git hash or reads from a file a copy of the git hash (useful for doing packaged builds without git) so that it is clear the origin of a particular metasploit-framework version.
20 lines
688 B
Ruby
20 lines
688 B
Ruby
require 'metasploit/framework/version'
|
|
|
|
module Metasploit
|
|
module Framework
|
|
# @note This is a lie. The core libraries are not semantically versioned. This is currently just linked to the
|
|
# Metasploit::Framework::Version, which is also not semantically versioned.
|
|
module Core
|
|
module Version
|
|
MAJOR = Metasploit::Framework::Version::MAJOR
|
|
MINOR = Metasploit::Framework::Version::MINOR
|
|
PATCH = Metasploit::Framework::Version::PATCH
|
|
PRERELEASE = Metasploit::Framework::Version::PRERELEASE
|
|
end
|
|
|
|
VERSION = Metasploit::Framework::VERSION
|
|
GEM_VERSION = Gem::Version.new(Metasploit::Framework::GEM_VERSION)
|
|
end
|
|
end
|
|
end
|