0.09
No release in over a year
Common code, such as validators and mixins, that are shared between ActiveModels in metasploit-framework and ActiveRecords in metasploit_data_models.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Metasploit::Model Build StatusCode ClimateDependency StatusGem VersionInline docsPullReview stats

Versioning

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.

Installation

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

Running tests

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

Contributing

See CONTRIBUTING.md