1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-05 14:57:30 +01:00

Get framework working on rails 4 branch with new gemspecs

This commit is contained in:
Matt Buck 2014-11-12 14:06:51 -06:00
parent 02ec1fb234
commit 66fde33a0c
No known key found for this signature in database
GPG Key ID: 42134E0C9C4E94BB
4 changed files with 26 additions and 15 deletions

View File

@ -3,8 +3,17 @@ source 'https://rubygems.org'
# spec.add_runtime_dependency '<name>', [<version requirements>] # spec.add_runtime_dependency '<name>', [<version requirements>]
gemspec name: 'metasploit-framework' gemspec name: 'metasploit-framework'
# TODO: Rails 4
# move these back into the root gemspec
gem 'metasploit-concern', :github => 'rapid7/metasploit-concern', :branch => 'staging/rails-4.0'
gem 'metasploit-model', :github => 'rapid7/metasploit-model', :branch => 'staging/rails-4.0'
group :db do group :db do
gemspec name: 'metasploit-framework-db' gemspec name: 'metasploit-framework-db'
# TODO: Rails 4
# move these back into the metasploit-framework-db gemspec
gem 'metasploit-credential', :github => 'rapid7/metasploit-credential', :branch => 'staging/rails-4.0'
gem 'metasploit_data_models', :github => 'rapid7/metasploit_data_models', :branch => 'staging/rails-4.0'
end end
group :development do group :development do

View File

@ -57,8 +57,6 @@ PATH
bcrypt bcrypt
jsobfu (~> 0.2.0) jsobfu (~> 0.2.0)
json json
metasploit-concern
metasploit-model
meterpreter_bins (= 0.0.10) meterpreter_bins (= 0.0.10)
msgpack msgpack
nokogiri nokogiri
@ -70,6 +68,14 @@ PATH
rubyzip (~> 1.1) rubyzip (~> 1.1)
sqlite3 sqlite3
tzinfo tzinfo
metasploit-framework-db (4.10.1.pre.dev)
activerecord (>= 4.0.9, < 4.1.0)
metasploit-framework (= 4.10.1.pre.dev)
pg (>= 0.11)
metasploit-framework-pcap (4.10.1.pre.dev)
metasploit-framework (= 4.10.1.pre.dev)
network_interface (~> 0.0.1)
pcaprub
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
@ -159,7 +165,7 @@ GEM
nokogiri (1.6.3.1) nokogiri (1.6.3.1)
mini_portile (= 0.6.0) mini_portile (= 0.6.0)
packetfu (1.1.9) packetfu (1.1.9)
pcaprub (0.11.3) pcaprub (0.12.0)
pg (0.17.1) pg (0.17.1)
pg_array_parser (0.0.9) pg_array_parser (0.0.9)
postgres_ext (2.3.0) postgres_ext (2.3.0)
@ -232,7 +238,7 @@ GEM
actionpack (>= 3.0) actionpack (>= 3.0)
activesupport (>= 3.0) activesupport (>= 3.0)
sprockets (~> 2.8) sprockets (~> 2.8)
sqlite3 (1.3.9) sqlite3 (1.3.10)
thor (0.19.1) thor (0.19.1)
thread_safe (0.3.4) thread_safe (0.3.4)
tilt (1.4.1) tilt (1.4.1)
@ -246,7 +252,6 @@ PLATFORMS
ruby ruby
DEPENDENCIES DEPENDENCIES
activerecord (>= 4.0.9, < 4.1.0)
aruba aruba
cucumber-rails cucumber-rails
factory_girl (>= 4.1.0) factory_girl (>= 4.1.0)
@ -255,14 +260,12 @@ DEPENDENCIES
metasploit-concern! metasploit-concern!
metasploit-credential! metasploit-credential!
metasploit-framework! metasploit-framework!
metasploit-framework-db!
metasploit-framework-pcap!
metasploit-model! metasploit-model!
metasploit_data_models! metasploit_data_models!
network_interface (~> 0.0.1)
pcaprub
pg (>= 0.11)
pry pry
rake (>= 10.0.0) rake (>= 10.0.0)
rb-readline
redcarpet redcarpet
rspec (>= 2.12, < 3.0.0) rspec (>= 2.12, < 3.0.0)
rspec-rails (>= 2.12, < 3.0.0) rspec-rails (>= 2.12, < 3.0.0)

View File

@ -26,14 +26,13 @@ Gem::Specification.new do |spec|
# no files, just dependencies # no files, just dependencies
spec.files = [] spec.files = []
# The Metasploit ecosystem is not ready for Rails 4 as it uses features of Rails 3.X that are removed in Rails 4. rails_version_constraint = ['>= 4.0.9', '< 4.1.0']
rails_version_constraint = '< 4.0.0'
spec.add_runtime_dependency 'activerecord', rails_version_constraint spec.add_runtime_dependency 'activerecord', rails_version_constraint
# Metasploit::Credential database models # Metasploit::Credential database models
spec.add_runtime_dependency 'metasploit-credential', :github => 'rapid7/metasploit-credential', :branch => 'staging/rails-4.0' #spec.add_runtime_dependency 'metasploit-credential'
# Database models shared between framework and Pro. # Database models shared between framework and Pro.
spec.add_runtime_dependency 'metasploit_data_models', :github => 'rapid7/metasploit-credential', :branch => 'staging/rails-4.0' #spec.add_runtime_dependency 'metasploit_data_models'
# depend on metasploit-framewrok as the optional gems are useless with the actual code # depend on metasploit-framewrok as the optional gems are useless with the actual code
spec.add_runtime_dependency 'metasploit-framework', "= #{spec.version}" spec.add_runtime_dependency 'metasploit-framework', "= #{spec.version}"
# Needed for module caching in Mdm::ModuleDetails # Needed for module caching in Mdm::ModuleDetails

View File

@ -59,10 +59,10 @@ Gem::Specification.new do |spec|
# Needed for some admin modules (scrutinizer_add_user.rb) # Needed for some admin modules (scrutinizer_add_user.rb)
spec.add_runtime_dependency 'json' spec.add_runtime_dependency 'json'
# Metasploit::Concern hooks # Metasploit::Concern hooks
spec.add_runtime_dependency 'metasploit-concern', :github => 'rapid7/metasploit-credential', :branch => 'staging/rails-4.0' #spec.add_runtime_dependency 'metasploit-concern'
# Things that would normally be part of the database model, but which # Things that would normally be part of the database model, but which
# are needed when there's no database # are needed when there's no database
spec.add_runtime_dependency 'metasploit-model', :github => 'rapid7/metasploit-credential', :branch => 'staging/rails-4.0' #spec.add_runtime_dependency 'metasploit-model'
# Needed for Meterpreter on Windows, soon others. # Needed for Meterpreter on Windows, soon others.
spec.add_runtime_dependency 'meterpreter_bins', '0.0.10' spec.add_runtime_dependency 'meterpreter_bins', '0.0.10'
# Needed by msfgui and other rpc components # Needed by msfgui and other rpc components