Metasploit::Model
is versioned using semantic versioning 2.0. Each branch should set Metasploit::Model::Version::PRERELEASE
to the branch SUMMARY, while master should have no PRERELEASE
and the PRERELEASE
section of Metasploit::Model::VERSION
does not exist.
Add this line to your application's Gemfile:
gem 'metasploit-model'
And then execute:
$ bundle
This gem's Rails::Engine
is not required automatically. You'll need to also add the following to your config/application.rb
:
require 'metasploit/model/engine'
Or install it yourself as:
$ gem install metasploit-model
Copy the database configuration and modify as appropriate:
cp spec/dummy/config/database.yml.github_actions spec/dummy/config/database.yml
Set up the database:
bundle exec rake db:test:prepare
bundle exec rake db:migrate RAILS_ENV=test
Run the test suite:
bundle exec rspec
See CONTRIBUTING.md