Depend on metasloit-framework in optional gemspecs

MSP-11578

Optional gemspecs should depend on the minimal metasploit-framework
because they don't work without metasploit-framework's code.
bug/bundler_fix
Luke Imhoff 2014-11-05 12:33:44 -06:00
parent 9137bd6527
commit 63b4c0beba
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
2 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,7 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency 'metasploit-credential', '~> 0.12.0'
# Database models shared between framework and Pro.
spec.add_runtime_dependency 'metasploit_data_models', '~> 0.21.1'
# depend on metasploit-framewrok as the optional gems are useless with the actual code
spec.add_runtime_dependency 'metasploit-framework', "= #{spec.version}"
# Needed for module caching in Mdm::ModuleDetails
spec.add_runtime_dependency 'pg', '>= 0.11'

View File

@ -26,7 +26,9 @@ Gem::Specification.new do |spec|
# no files, just dependencies
spec.files = []
# depend on metasploit-framewrok as the optional gems are useless with the actual code
spec.add_runtime_dependency 'metasploit-framework', "= #{spec.version}"
# get list of network interfaces, like eth* from OS.
spec.add_runtime_dependency 'network_interface', '~> 0.0.1'
# For sniffer and raw socket modules
spec.add_runtime_dependency 'pcaprub'