Skip to content

Commit 1ad04eb

Browse files
committed
Merge pull request rapid7#111 from rapid7/bug/MSP-10714-gem-version
Fix gem version to support rubygems < 2.1
2 parents 8b9aa75 + e637237 commit 1ad04eb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/metasploit/framework/version.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ module Version
88
end
99

1010
VERSION = "#{Version::MAJOR}.#{Version::MINOR}.#{Version::PATCH}-#{Version::PRERELEASE}"
11+
GEM_VERSION = VERSION.gsub('-', '.pre.')
1112
end
1213
end

metasploit-framework.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require 'metasploit/framework/version'
77

88
Gem::Specification.new do |spec|
99
spec.name = 'metasploit-framework'
10-
spec.version = Metasploit::Framework::VERSION
10+
spec.version = Metasploit::Framework::GEM_VERSION
1111
spec.authors = ['Metasploit Hackers']
1212
spec.email = ['[email protected]']
1313
spec.summary = 'metasploit-framework'

0 commit comments

Comments
 (0)