metasploit-model 3.1.3 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.github/workflows/verify.yml +83 -0
- data/Gemfile +0 -2
- data/README.md +1 -1
- data/lib/metasploit/model/version.rb +1 -1
- data/spec/dummy/config/{database.yml.travis → database.yml.github_actions} +4 -5
- data/spec/spec_helper.rb +1 -2
- metadata +5 -6
- metadata.gz.sig +0 -0
- data/.coveralls.yml +0 -1
- data/.travis.yml +0 -21
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9735bf99e2c7ca26ac1b2e41075a5d8895f4ea952a0641e1cb3189468086cf66
|
|
4
|
+
data.tar.gz: c4659546c247eb29d7c06a4af9ef765eda2606df5876f4405f6e45430ce143ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7909c402f1aca1f347e6f20a4d8062607c59c871178a1b20aacc45af5e781426363527cf77b200a4a24d252d5bbd0d477c16b8cea0e185edcb765095377c7d9c
|
|
7
|
+
data.tar.gz: a81b3d657573da78157a54bfa78bea6083e6490ea1f164ce7be83332816c95cc49796bc4a715fcec5b08603cd1e221231439795fb1037171e76a840dc54b64cf
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
name: Verify
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- '*'
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- '*'
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
test:
|
|
13
|
+
runs-on: ubuntu-16.04
|
|
14
|
+
timeout-minutes: 40
|
|
15
|
+
|
|
16
|
+
services:
|
|
17
|
+
postgres:
|
|
18
|
+
image: postgres:9.6
|
|
19
|
+
ports: [ "5432:5432" ]
|
|
20
|
+
env:
|
|
21
|
+
POSTGRES_USER: postgres
|
|
22
|
+
POSTGRES_PASSWORD: postgres
|
|
23
|
+
options: >-
|
|
24
|
+
--health-cmd pg_isready
|
|
25
|
+
--health-interval 10s
|
|
26
|
+
--health-timeout 5s
|
|
27
|
+
--health-retries 5
|
|
28
|
+
|
|
29
|
+
strategy:
|
|
30
|
+
fail-fast: true
|
|
31
|
+
matrix:
|
|
32
|
+
ruby:
|
|
33
|
+
- 2.5
|
|
34
|
+
- 2.6
|
|
35
|
+
- 2.7
|
|
36
|
+
|
|
37
|
+
env:
|
|
38
|
+
RAILS_ENV: test
|
|
39
|
+
|
|
40
|
+
name: Ruby ${{ matrix.ruby }}
|
|
41
|
+
steps:
|
|
42
|
+
- name: Install system dependencies
|
|
43
|
+
run: sudo apt-get install graphviz
|
|
44
|
+
|
|
45
|
+
- name: Checkout code
|
|
46
|
+
uses: actions/checkout@v2
|
|
47
|
+
|
|
48
|
+
- uses: actions/setup-ruby@v1
|
|
49
|
+
with:
|
|
50
|
+
ruby-version: ${{ matrix.ruby }}
|
|
51
|
+
|
|
52
|
+
- name: Setup bundler
|
|
53
|
+
run: |
|
|
54
|
+
gem install bundler
|
|
55
|
+
- uses: actions/cache@v2
|
|
56
|
+
with:
|
|
57
|
+
path: vendor/bundle
|
|
58
|
+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
|
59
|
+
restore-keys: |
|
|
60
|
+
${{ runner.os }}-gems-
|
|
61
|
+
- name: Bundle install
|
|
62
|
+
run: |
|
|
63
|
+
bundle config path vendor/bundle
|
|
64
|
+
bundle install --jobs 4 --retry 3
|
|
65
|
+
|
|
66
|
+
- name: Test
|
|
67
|
+
run: |
|
|
68
|
+
gem install bundler
|
|
69
|
+
cp spec/dummy/config/database.yml.github_actions spec/dummy/config/database.yml
|
|
70
|
+
bundle install
|
|
71
|
+
bundle exec rake --version
|
|
72
|
+
bundle exec rake db:test:prepare
|
|
73
|
+
|
|
74
|
+
bundle exec rake spec
|
|
75
|
+
bundle exec rake yard
|
|
76
|
+
|
|
77
|
+
- name: Upload coverage report
|
|
78
|
+
uses: actions/upload-artifact@v2
|
|
79
|
+
with:
|
|
80
|
+
name: coverage-${{ matrix.ruby }}
|
|
81
|
+
path: |
|
|
82
|
+
coverage/
|
|
83
|
+
retention-days: 1
|
data/Gemfile
CHANGED
|
@@ -18,8 +18,6 @@ group :test do
|
|
|
18
18
|
|
|
19
19
|
# Dummy app uses actionpack for ActionController, but not rails since it doesn't use activerecord.
|
|
20
20
|
gem 'actionpack'
|
|
21
|
-
# Uploads simplecov reports to coveralls.io
|
|
22
|
-
gem 'coveralls', require: false
|
|
23
21
|
# Engine tasks are loaded using railtie
|
|
24
22
|
gem 'railties'
|
|
25
23
|
gem 'rspec-rails'
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Metasploit::Model [](https://github.com/rapid7/metasploit-model/actions/workflows/verify.yml)[](https://codeclimate.com/github/rapid7/metasploit-model)[](https://gemnasium.com/rapid7/metasploit-model)[](http://badge.fury.io/rb/metasploit-model)[](http://inch-ci.org/github/rapid7/metasploit-model)[](https://www.pullreview.com/github/rapid7/metasploit-model/reviews/master)
|
|
2
2
|
|
|
3
3
|
## Versioning
|
|
4
4
|
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
# @note This file is only for use in
|
|
1
|
+
# @note This file is only for use in github actions. If you need to make a `spec/dummy/config/database.yml` for running
|
|
2
2
|
# rake, rake spec, or rspec locally, please customize `spec/dummy/config/database.yml.example`.
|
|
3
3
|
#
|
|
4
4
|
# @example Customizing config/database.yml.example
|
|
5
5
|
# cp spec/dummy/config/database.yml.example spec/dummy/config/database.yml
|
|
6
6
|
# # update password fields for each environment's user
|
|
7
7
|
|
|
8
|
-
# Using the postgres user locally without a host and port is the supported configuration from Travis-CI
|
|
9
|
-
#
|
|
10
|
-
# @see http://about.travis-ci.org/docs/user/database-setup/#PostgreSQL
|
|
11
8
|
development: &pgsql
|
|
12
9
|
adapter: postgresql
|
|
13
10
|
database: metasploit_model_development
|
|
11
|
+
host: localhost
|
|
14
12
|
username: postgres
|
|
13
|
+
password: postgres
|
|
15
14
|
pool: 5
|
|
16
15
|
timeout: 5
|
|
17
16
|
|
|
@@ -19,4 +18,4 @@ development: &pgsql
|
|
|
19
18
|
# `rake`. Do not set this db to the same as development or production.
|
|
20
19
|
test:
|
|
21
20
|
<<: *pgsql
|
|
22
|
-
database: metasploit_model_test
|
|
21
|
+
database: metasploit_model_test
|
data/spec/spec_helper.rb
CHANGED
|
@@ -8,9 +8,8 @@ Bundler.setup(:default, :test)
|
|
|
8
8
|
# Require simplecov before loading ..dummy/config/environment.rb because it will cause metasploit_data_models/lib to
|
|
9
9
|
# be loaded, which would result in Coverage not recording hits for any of the files.
|
|
10
10
|
require 'simplecov'
|
|
11
|
-
require 'coveralls'
|
|
12
11
|
|
|
13
|
-
SimpleCov.formatter =
|
|
12
|
+
SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
|
|
14
13
|
|
|
15
14
|
require File.expand_path('../dummy/config/environment.rb', __FILE__)
|
|
16
15
|
require 'rspec/rails'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metasploit-model
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.1.
|
|
4
|
+
version: 3.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Metasploit Hackers
|
|
@@ -93,7 +93,7 @@ cert_chain:
|
|
|
93
93
|
EknWpNgVhohbot1lfVAMmIhdtOVaRVcQQixWPwprDj/ydB8ryDMDosIMcw+fkoXU
|
|
94
94
|
9GJsSaSRRYQ9UUkVL27b64okU8D48m8=
|
|
95
95
|
-----END CERTIFICATE-----
|
|
96
|
-
date:
|
|
96
|
+
date: 2021-04-28 00:00:00.000000000 Z
|
|
97
97
|
dependencies:
|
|
98
98
|
- !ruby/object:Gem::Dependency
|
|
99
99
|
name: metasploit-yard
|
|
@@ -229,11 +229,10 @@ executables: []
|
|
|
229
229
|
extensions: []
|
|
230
230
|
extra_rdoc_files: []
|
|
231
231
|
files:
|
|
232
|
-
- ".
|
|
232
|
+
- ".github/workflows/verify.yml"
|
|
233
233
|
- ".gitignore"
|
|
234
234
|
- ".rspec"
|
|
235
235
|
- ".simplecov"
|
|
236
|
-
- ".travis.yml"
|
|
237
236
|
- ".yardopts"
|
|
238
237
|
- CHANGELOG.md
|
|
239
238
|
- CONTRIBUTING.md
|
|
@@ -371,7 +370,7 @@ files:
|
|
|
371
370
|
- spec/dummy/config/application.rb
|
|
372
371
|
- spec/dummy/config/boot.rb
|
|
373
372
|
- spec/dummy/config/database.yml.example
|
|
374
|
-
- spec/dummy/config/database.yml.
|
|
373
|
+
- spec/dummy/config/database.yml.github_actions
|
|
375
374
|
- spec/dummy/config/environment.rb
|
|
376
375
|
- spec/dummy/config/environments/development.rb
|
|
377
376
|
- spec/dummy/config/environments/production.rb
|
|
@@ -511,7 +510,7 @@ test_files:
|
|
|
511
510
|
- spec/dummy/config/application.rb
|
|
512
511
|
- spec/dummy/config/boot.rb
|
|
513
512
|
- spec/dummy/config/database.yml.example
|
|
514
|
-
- spec/dummy/config/database.yml.
|
|
513
|
+
- spec/dummy/config/database.yml.github_actions
|
|
515
514
|
- spec/dummy/config/environment.rb
|
|
516
515
|
- spec/dummy/config/environments/development.rb
|
|
517
516
|
- spec/dummy/config/environments/production.rb
|
metadata.gz.sig
CHANGED
|
Binary file
|
data/.coveralls.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
service_name: travis-ci
|
data/.travis.yml
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
dist: trusty
|
|
2
|
-
group: stable
|
|
3
|
-
sudo: false
|
|
4
|
-
cache: bundler
|
|
5
|
-
language: ruby
|
|
6
|
-
addons:
|
|
7
|
-
postgresql: '9.6'
|
|
8
|
-
apt:
|
|
9
|
-
packages:
|
|
10
|
-
- graphviz
|
|
11
|
-
rvm:
|
|
12
|
-
- 2.7.2
|
|
13
|
-
before_install:
|
|
14
|
-
- gem install bundler
|
|
15
|
-
- cp spec/dummy/config/database.yml.travis spec/dummy/config/database.yml
|
|
16
|
-
- bundle install
|
|
17
|
-
- bundle exec rake --version
|
|
18
|
-
- bundle exec rake db:test:prepare
|
|
19
|
-
script:
|
|
20
|
-
- bundle exec rake spec
|
|
21
|
-
- bundle exec rake yard
|