skip generating gem file contents if this is not a git checkout

bug/bundler_fix
Brent Cook 2017-05-26 10:07:49 -05:00 committed by Brent Cook
parent ab6b5f381d
commit 0f832fd4d1
1 changed files with 5 additions and 3 deletions

View File

@ -24,9 +24,11 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://www.metasploit.com'
spec.license = 'BSD-3-clause'
if File.directory?(File.join(__FILE__, ".git"))
spec.files = `git ls-files`.split($/).reject { |file|
file =~ /^documentation|^data\/gui|^external/
}
end
spec.bindir = '.'
if ENV['CREATE_BINSTUBS']
spec.executables = [