metasploit-model 2.0.3 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +5 -5
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +2 -1
  4. data/.travis.yml +8 -3
  5. data/.yardopts +2 -1
  6. data/Gemfile +2 -2
  7. data/app/validators/address_format_validator.rb +26 -0
  8. data/app/validators/ip_format_validator.rb +13 -19
  9. data/app/validators/nil_validator.rb +3 -3
  10. data/app/validators/parameters_validator.rb +18 -10
  11. data/app/validators/password_is_strong_validator.rb +93 -67
  12. data/lib/metasploit/model.rb +1 -0
  13. data/lib/metasploit/model/base.rb +2 -2
  14. data/lib/metasploit/model/engine.rb +2 -2
  15. data/lib/metasploit/model/search/attribute.rb +1 -1
  16. data/lib/metasploit/model/translation.rb +2 -2
  17. data/lib/metasploit/model/version.rb +1 -1
  18. data/metasploit-model.gemspec +9 -9
  19. data/spec/app/models/metasploit/model/association/reflection_spec.rb +2 -2
  20. data/spec/app/models/metasploit/model/search/operator/association_spec.rb +1 -1
  21. data/spec/app/models/metasploit/model/search/operator/attribute_spec.rb +1 -1
  22. data/spec/app/validators/address_format_validator_spec.rb +136 -0
  23. data/spec/app/validators/ip_format_validator_spec.rb +0 -24
  24. data/spec/app/validators/password_is_strong_validator_spec.rb +31 -42
  25. data/spec/dummy/app/models/application_record.rb +3 -0
  26. data/spec/dummy/config/application.rb +1 -5
  27. data/spec/dummy/config/environments/development.rb +0 -10
  28. data/spec/dummy/db/schema.rb +0 -1
  29. data/spec/factories/metasploit/model/association/reflections.rb +1 -1
  30. data/spec/factories/metasploit/model/bases.rb +1 -1
  31. data/spec/factories/metasploit/model/search/operator/associations.rb +1 -1
  32. data/spec/factories/metasploit/model/search/operator/attributes.rb +1 -1
  33. data/spec/factories/metasploit/model/search/operator/bases.rb +1 -1
  34. data/spec/lib/metasploit/model/engine_spec.rb +3 -3
  35. data/spec/lib/metasploit/model/search/attribute_spec.rb +2 -2
  36. metadata +93 -100
  37. metadata.gz.sig +0 -0
  38. data/spec/dummy/config/initializers/assets.rb +0 -8
@@ -1,4 +1,3 @@
1
- # encoding: UTF-8
2
1
  # This file is auto-generated from the current state of the database. Instead
3
2
  # of editing this file, please use the migrations feature of Active Record to
4
3
  # incrementally modify your database, and then regenerate this schema definition.
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  sequence :metasploit_model_association_reflection_class_name do |n|
3
3
  "Metasploit::Model::Association::Reflection::Class#{n}"
4
4
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  trait :metasploit_model_base do
3
3
  to_create do |instance|
4
4
  # validate so before validation derivation occurs to mimic create for ActiveRecord.
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  sequence :metasploit_model_search_operator_association_association do |n|
3
3
  "metasploit_model_search_operator_association_association#{n}".to_sym
4
4
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  sequence :metasploit_model_search_operator_attribute_attribute do |n|
3
3
  "metasploit_model_search_operator_attribute_attribute#{n}".to_sym
4
4
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  sequence :metasploit_model_search_operator_base_name do |n|
3
3
  "metasploit_model_search_operator_base_name#{n}".to_sym
4
4
  end
@@ -106,11 +106,11 @@ RSpec.describe Metasploit::Model::Engine do
106
106
  initializer.run
107
107
  end
108
108
 
109
- context 'with FactoryGirl defined' do
110
- it 'should prepend full path to spec/factories to FactoryGirl.definition_file_paths' do
109
+ context 'with FactoryBot defined' do
110
+ it 'should prepend full path to spec/factories to FactoryBot.definition_file_paths' do
111
111
  definition_file_path = Metasploit::Model::Engine.root.join('spec', 'factories')
112
112
 
113
- expect(FactoryGirl.definition_file_paths).to receive(:unshift).with(definition_file_path)
113
+ expect(FactoryBot.definition_file_paths).to receive(:unshift).with(definition_file_path)
114
114
 
115
115
  run
116
116
  end
@@ -10,12 +10,12 @@ RSpec.describe Metasploit::Model::Search::Attribute do
10
10
  context 'search_attribute' do
11
11
  context 'with attribute' do
12
12
  let(:attribute) do
13
- FactoryGirl.generate :metasploit_model_search_operator_attribute_attribute
13
+ FactoryBot.generate :metasploit_model_search_operator_attribute_attribute
14
14
  end
15
15
 
16
16
  context 'with :type' do
17
17
  let(:type) do
18
- FactoryGirl.generate :metasploit_model_search_operator_attribute_type
18
+ FactoryBot.generate :metasploit_model_search_operator_attribute_type
19
19
  end
20
20
 
21
21
  context 'operator' do
metadata CHANGED
@@ -1,109 +1,100 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metasploit-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
- - Luke Imhoff
7
+ - Metasploit Hackers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDXzCCAkegAwIBAgILBAAAAAABIVhTCKIwDQYJKoZIhvcNAQELBQAwTDEgMB4G
14
- A1UECxMXR2xvYmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNp
15
- Z24xEzARBgNVBAMTCkdsb2JhbFNpZ24wHhcNMDkwMzE4MTAwMDAwWhcNMjkwMzE4
16
- MTAwMDAwWjBMMSAwHgYDVQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEG
17
- A1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2lnbjCCASIwDQYJKoZI
18
- hvcNAQEBBQADggEPADCCAQoCggEBAMwldpB5BngiFvXAg7aEyiie/QV2EcWtiHL8
19
- RgJDx7KKnQRfJMsuS+FggkbhUqsMgUdwbN1k0ev1LKMPgj0MK66X17YUhhB5uzsT
20
- gHeMCOFJ0mpiLx9e+pZo34knlTifBtc+ycsmWQ1z3rDI6SYOgxXG71u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-05 00:00:00.000000000 Z
92
97
  dependencies:
93
- - !ruby/object:Gem::Dependency
94
- name: bundler
95
- requirement: !ruby/object:Gem::Requirement
96
- requirements:
97
- - - "~>"
98
- - !ruby/object:Gem::Version
99
- version: '1.3'
100
- type: :development
101
- prerelease: false
102
- version_requirements: !ruby/object:Gem::Requirement
103
- requirements:
104
- - - "~>"
105
- - !ruby/object:Gem::Version
106
- version: '1.3'
107
98
  - !ruby/object:Gem::Dependency
108
99
  name: metasploit-yard
109
100
  requirement: !ruby/object:Gem::Requirement
@@ -166,42 +157,42 @@ dependencies:
166
157
  requirements:
167
158
  - - "~>"
168
159
  - !ruby/object:Gem::Version
169
- version: 4.2.6
160
+ version: 5.2.2
170
161
  type: :runtime
171
162
  prerelease: false
172
163
  version_requirements: !ruby/object:Gem::Requirement
173
164
  requirements:
174
165
  - - "~>"
175
166
  - !ruby/object:Gem::Version
176
- version: 4.2.6
167
+ version: 5.2.2
177
168
  - !ruby/object:Gem::Dependency
178
169
  name: activesupport
179
170
  requirement: !ruby/object:Gem::Requirement
180
171
  requirements:
181
172
  - - "~>"
182
173
  - !ruby/object:Gem::Version
183
- version: 4.2.6
174
+ version: 5.2.2
184
175
  type: :runtime
185
176
  prerelease: false
186
177
  version_requirements: !ruby/object:Gem::Requirement
187
178
  requirements:
188
179
  - - "~>"
189
180
  - !ruby/object:Gem::Version
190
- version: 4.2.6
181
+ version: 5.2.2
191
182
  - !ruby/object:Gem::Dependency
192
183
  name: railties
193
184
  requirement: !ruby/object:Gem::Requirement
194
185
  requirements:
195
186
  - - "~>"
196
187
  - !ruby/object:Gem::Version
197
- version: 4.2.6
188
+ version: 5.2.2
198
189
  type: :runtime
199
190
  prerelease: false
200
191
  version_requirements: !ruby/object:Gem::Requirement
201
192
  requirements:
202
193
  - - "~>"
203
194
  - !ruby/object:Gem::Version
204
- version: 4.2.6
195
+ version: 5.2.2
205
196
  - !ruby/object:Gem::Dependency
206
197
  name: redcarpet
207
198
  requirement: !ruby/object:Gem::Requirement
@@ -219,7 +210,7 @@ dependencies:
219
210
  description: Common code, such as validators and mixins, that are shared between ActiveModels
220
211
  in metasploit-framework and ActiveRecords in metasploit_data_models.
221
212
  email:
222
- - luke_imhoff@rapid7.com
213
+ - msfdev@metasploit.com
223
214
  executables: []
224
215
  extensions: []
225
216
  extra_rdoc_files: []
@@ -272,6 +263,7 @@ files:
272
263
  - app/models/metasploit/model/search/operator/single.rb
273
264
  - app/models/metasploit/model/search/query.rb
274
265
  - app/models/metasploit/model/visitation/visitor.rb
266
+ - app/validators/address_format_validator.rb
275
267
  - app/validators/ip_format_validator.rb
276
268
  - app/validators/nil_validator.rb
277
269
  - app/validators/parameters_validator.rb
@@ -345,6 +337,7 @@ files:
345
337
  - spec/app/models/metasploit/model/search/operator/single_spec.rb
346
338
  - spec/app/models/metasploit/model/search/query_spec.rb
347
339
  - spec/app/models/metasploit/model/visitation/visitor_spec.rb
340
+ - spec/app/validators/address_format_validator_spec.rb
348
341
  - spec/app/validators/ip_format_validator_spec.rb
349
342
  - spec/app/validators/nil_validator_spec.rb
350
343
  - spec/app/validators/parameters_validator_spec.rb
@@ -355,6 +348,7 @@ files:
355
348
  - spec/dummy/app/controllers/application_controller.rb
356
349
  - spec/dummy/app/helpers/application_helper.rb
357
350
  - spec/dummy/app/mailers/.gitkeep
351
+ - spec/dummy/app/models/application_record.rb
358
352
  - spec/dummy/app/views/layouts/application.html.erb
359
353
  - spec/dummy/bin/bundle
360
354
  - spec/dummy/bin/rails
@@ -368,7 +362,6 @@ files:
368
362
  - spec/dummy/config/environments/development.rb
369
363
  - spec/dummy/config/environments/production.rb
370
364
  - spec/dummy/config/environments/test.rb
371
- - spec/dummy/config/initializers/assets.rb
372
365
  - spec/dummy/config/initializers/backtrace_silencers.rb
373
366
  - spec/dummy/config/initializers/cookies_serializer.rb
374
367
  - spec/dummy/config/initializers/filter_parameter_logging.rb
@@ -443,7 +436,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
443
436
  requirements:
444
437
  - - ">="
445
438
  - !ruby/object:Gem::Version
446
- version: '2.1'
439
+ version: 2.2.0
447
440
  required_rubygems_version: !ruby/object:Gem::Requirement
448
441
  requirements:
449
442
  - - ">="
@@ -451,7 +444,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
451
444
  version: '0'
452
445
  requirements: []
453
446
  rubyforge_project:
454
- rubygems_version: 2.4.8
447
+ rubygems_version: 2.7.10
455
448
  signing_key:
456
449
  specification_version: 4
457
450
  summary: Metasploit Model Mixins and Validators
@@ -484,6 +477,7 @@ test_files:
484
477
  - spec/app/models/metasploit/model/search/operator/single_spec.rb
485
478
  - spec/app/models/metasploit/model/search/query_spec.rb
486
479
  - spec/app/models/metasploit/model/visitation/visitor_spec.rb
480
+ - spec/app/validators/address_format_validator_spec.rb
487
481
  - spec/app/validators/ip_format_validator_spec.rb
488
482
  - spec/app/validators/nil_validator_spec.rb
489
483
  - spec/app/validators/parameters_validator_spec.rb
@@ -494,6 +488,7 @@ test_files:
494
488
  - spec/dummy/app/controllers/application_controller.rb
495
489
  - spec/dummy/app/helpers/application_helper.rb
496
490
  - spec/dummy/app/mailers/.gitkeep
491
+ - spec/dummy/app/models/application_record.rb
497
492
  - spec/dummy/app/views/layouts/application.html.erb
498
493
  - spec/dummy/bin/bundle
499
494
  - spec/dummy/bin/rails
@@ -507,7 +502,6 @@ test_files:
507
502
  - spec/dummy/config/environments/development.rb
508
503
  - spec/dummy/config/environments/production.rb
509
504
  - spec/dummy/config/environments/test.rb
510
- - spec/dummy/config/initializers/assets.rb
511
505
  - spec/dummy/config/initializers/backtrace_silencers.rb
512
506
  - spec/dummy/config/initializers/cookies_serializer.rb
513
507
  - spec/dummy/config/initializers/filter_parameter_logging.rb
@@ -569,4 +563,3 @@ test_files:
569
563
  - spec/support/shared/examples/search_association.rb
570
564
  - spec/support/shared/examples/search_attribute.rb
571
565
  - spec/support/shared/examples/search_with.rb
572
- has_rdoc:
metadata.gz.sig CHANGED
Binary file
@@ -1,8 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Version of your assets, change this if you want to expire all your assets.
4
- Rails.application.config.assets.version = '1.0'
5
-
6
- # Precompile additional assets.
7
- # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
8
- # Rails.application.config.assets.precompile += %w( search.js )