metasploit-model 3.1.3 → 3.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5dfe45d8a1e68673abc35d971c84c0008953a48ea3d02ea1474038737f26174f
4
- data.tar.gz: cb013f8c4e3c54e36c5ab14cf4f3a00b3737b3914dd3b8f36ba89745080abae7
3
+ metadata.gz: 9735bf99e2c7ca26ac1b2e41075a5d8895f4ea952a0641e1cb3189468086cf66
4
+ data.tar.gz: c4659546c247eb29d7c06a4af9ef765eda2606df5876f4405f6e45430ce143ff
5
5
  SHA512:
6
- metadata.gz: dd93de36bc27cee9b4f189bf3e3b50d500280eac1ec695340bad22e68ce0862e88c326c69d093945681515cbac44f57c9cef255f40a42daa00f1db2b94733aed
7
- data.tar.gz: 34c2e286192dc1d7c92cd981a0b7e47f7523053a283930b3dafc9a2bf452f0dd5198b08b54f11723d8a03ee5959f93b0e1768494aeefef84aba810fdcde6c07f
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 [![Build Status](https://travis-ci.org/rapid7/metasploit-model.png)](https://travis-ci.org/rapid7/metasploit-model)[![Code Climate](https://codeclimate.com/github/rapid7/metasploit-model.png)](https://codeclimate.com/github/rapid7/metasploit-model)[![Coverage Status](https://coveralls.io/repos/rapid7/metasploit-model/badge.png?branch=feature%2Fexploit)](https://coveralls.io/r/rapid7/metasploit-model)[![Dependency Status](https://gemnasium.com/rapid7/metasploit-model.svg)](https://gemnasium.com/rapid7/metasploit-model)[![Gem Version](https://badge.fury.io/rb/metasploit-model.svg)](http://badge.fury.io/rb/metasploit-model)[![Inline docs](http://inch-ci.org/github/rapid7/metasploit-model.svg?branch=master)](http://inch-ci.org/github/rapid7/metasploit-model)[![PullReview stats](https://www.pullreview.com/github/rapid7/metasploit-model/badges/master.svg)](https://www.pullreview.com/github/rapid7/metasploit-model/reviews/master)
1
+ # Metasploit::Model [![Build Status](https://github.com/rapid7/metasploit-model/actions/workflows/verify.yml/badge.svg)](https://github.com/rapid7/metasploit-model/actions/workflows/verify.yml)[![Code Climate](https://codeclimate.com/github/rapid7/metasploit-model.png)](https://codeclimate.com/github/rapid7/metasploit-model)[![Dependency Status](https://gemnasium.com/rapid7/metasploit-model.svg)](https://gemnasium.com/rapid7/metasploit-model)[![Gem Version](https://badge.fury.io/rb/metasploit-model.svg)](http://badge.fury.io/rb/metasploit-model)[![Inline docs](http://inch-ci.org/github/rapid7/metasploit-model.svg?branch=master)](http://inch-ci.org/github/rapid7/metasploit-model)[![PullReview stats](https://www.pullreview.com/github/rapid7/metasploit-model/badges/master.svg)](https://www.pullreview.com/github/rapid7/metasploit-model/reviews/master)
2
2
 
3
3
  ## Versioning
4
4
 
@@ -1,7 +1,7 @@
1
1
  module Metasploit
2
2
  module Model
3
3
  # VERSION is managed by GemRelease
4
- VERSION = '3.1.3'
4
+ VERSION = '3.1.4'
5
5
 
6
6
  # @return [String]
7
7
  #
@@ -1,17 +1,16 @@
1
- # @note This file is only for use in travis-ci. If you need to make a `spec/dummy/config/database.yml` for running
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 = Coveralls::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.3
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: 2020-11-30 00:00:00.000000000 Z
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
- - ".coveralls.yml"
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.travis
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.travis
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