Fix gem version to support rubygems < 2.1

MSP-10714
bug/bundler_fix
Brandon Turner 2014-07-15 19:02:39 -05:00
parent 4d3bfcf9d0
commit 044fdb8c55
No known key found for this signature in database
GPG Key ID: 0F82931CA3EE1B07
2 changed files with 2 additions and 1 deletions

View File

@ -8,5 +8,6 @@ module Metasploit
end
VERSION = "#{Version::MAJOR}.#{Version::MINOR}.#{Version::PATCH}-#{Version::PRERELEASE}"
GEM_VERSION = "#{Version::MAJOR}.#{Version::MINOR}.#{Version::PATCH}.#{Version::PRERELEASE.gsub(/[^0-9a-zA-Z]/, '')}"
end
end

View File

@ -7,7 +7,7 @@ require 'metasploit/framework/version'
Gem::Specification.new do |spec|
spec.name = 'metasploit-framework'
spec.version = Metasploit::Framework::VERSION
spec.version = Metasploit::Framework::GEM_VERSION
spec.authors = ['Metasploit Hackers']
spec.email = ['metasploit-hackers@lists.sourceforge.net']
spec.summary = 'metasploit-framework'