Skip to content

Commit f8a215e

Browse files
committed
Adding changes to allow for easier version bumping
1 parent 8e5adfd commit f8a215e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/metasploit/framework/version.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,13 @@ def self.get_hash
3030
end
3131
end
3232

33-
MAJOR = 4
34-
MINOR = 11
35-
PATCH = 5
33+
VERSION = "4.11.5"
34+
MAJOR, MINOR, PATCH = VERSION.split('.').map { |x| x.to_i }
3635
PRERELEASE = 'dev'
3736
HASH = get_hash
3837
end
3938

40-
VERSION = "#{Version::MAJOR}.#{Version::MINOR}.#{Version::PATCH}-#{Version::PRERELEASE}#{Version::HASH}"
41-
GEM_VERSION = "#{Version::MAJOR}.#{Version::MINOR}.#{Version::PATCH}"
39+
VERSION = "#{Version::VERSION}-#{Version::PRERELEASE}#{Version::HASH}"
40+
GEM_VERSION = "#{Version::VERSION}"
4241
end
4342
end

0 commit comments

Comments
 (0)