metasploit_data_models 1.3.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/.gitignore +2 -0
  5. data/Gemfile +7 -16
  6. data/app/models/mdm/workspace.rb +1 -44
  7. data/app/models/metasploit_data_models/search/visitor/where.rb +1 -1
  8. data/db/migrate/20160415153312_remove_not_null_from_web_vuln_p_arams.rb +5 -0
  9. data/lib/metasploit_data_models/version.rb +1 -1
  10. data/metasploit_data_models.gemspec +8 -9
  11. data/spec/app/models/mdm/host_spec.rb +1 -1
  12. data/spec/app/models/mdm/web_vuln_spec.rb +1 -1
  13. data/spec/app/models/mdm/workspace_spec.rb +1 -54
  14. data/spec/app/models/metasploit_data_models/search/visitor/relation_spec.rb +1 -1
  15. data/spec/dummy/bin/bundle +3 -0
  16. data/spec/dummy/bin/rails +4 -0
  17. data/spec/dummy/bin/rake +4 -0
  18. data/spec/dummy/config/boot.rb +3 -9
  19. data/spec/dummy/config/environment.rb +3 -3
  20. data/spec/dummy/config/environments/development.rb +22 -8
  21. data/spec/dummy/config/environments/production.rb +43 -31
  22. data/spec/dummy/config/environments/test.rb +19 -10
  23. data/spec/dummy/config/initializers/assets.rb +8 -0
  24. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  25. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  26. data/spec/dummy/config/initializers/inflections.rb +6 -5
  27. data/spec/dummy/config/initializers/mime_types.rb +0 -1
  28. data/spec/dummy/config/initializers/session_store.rb +1 -6
  29. data/spec/dummy/config/initializers/wrap_parameters.rb +6 -6
  30. data/spec/dummy/config/locales/en.yml +23 -0
  31. data/spec/dummy/db/structure.sql +78 -75
  32. data/spec/spec_helper.rb +0 -5
  33. metadata +42 -52
  34. metadata.gz.sig +0 -0
data/spec/spec_helper.rb CHANGED
@@ -117,11 +117,6 @@ RSpec.configure do |config|
117
117
 
118
118
  config.use_transactional_fixtures = true
119
119
 
120
- config.before(:example) do
121
- # Rex is only available when testing with metasploit-framework or pro, so stub out the methods that require it
122
- allow_any_instance_of(Mdm::Workspace).to receive(:valid_ip_or_range?).and_return(true)
123
- end
124
-
125
120
  # rspec-rails 3 will no longer automatically infer an example group's spec type
126
121
  # from the file location. You can explicitly opt-in to the feature using this
127
122
  # config option.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metasploit_data_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Huckins
@@ -88,50 +88,50 @@ cert_chain:
88
88
  2SpuQH+SWteq3NXkAmFEEqvLJQ4sbptZt8OP8ghL3pVAvZNFmww/YVszSkShSzcg
89
89
  QdihYCSEL2drS2cFd50jBeq71sxUtxbv82DUa2b+
90
90
  -----END CERTIFICATE-----
91
- date: 2016-03-07 00:00:00.000000000 Z
91
+ date: 2016-05-13 00:00:00.000000000 Z
92
92
  dependencies:
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: metasploit-yard
95
95
  requirement: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - "~>"
97
+ - - ">="
98
98
  - !ruby/object:Gem::Version
99
- version: '1.1'
99
+ version: '0'
100
100
  type: :development
101
101
  prerelease: false
102
102
  version_requirements: !ruby/object:Gem::Requirement
103
103
  requirements:
104
- - - "~>"
104
+ - - ">="
105
105
  - !ruby/object:Gem::Version
106
- version: '1.1'
106
+ version: '0'
107
107
  - !ruby/object:Gem::Dependency
108
108
  name: yard-activerecord
109
109
  requirement: !ruby/object:Gem::Requirement
110
110
  requirements:
111
- - - "~>"
111
+ - - ">="
112
112
  - !ruby/object:Gem::Version
113
- version: 0.0.14
113
+ version: '0'
114
114
  type: :development
115
115
  prerelease: false
116
116
  version_requirements: !ruby/object:Gem::Requirement
117
117
  requirements:
118
- - - "~>"
118
+ - - ">="
119
119
  - !ruby/object:Gem::Version
120
- version: 0.0.14
120
+ version: '0'
121
121
  - !ruby/object:Gem::Dependency
122
122
  name: yard-metasploit-erd
123
123
  requirement: !ruby/object:Gem::Requirement
124
124
  requirements:
125
- - - "~>"
125
+ - - ">="
126
126
  - !ruby/object:Gem::Version
127
- version: '1.1'
127
+ version: '0'
128
128
  type: :development
129
129
  prerelease: false
130
130
  version_requirements: !ruby/object:Gem::Requirement
131
131
  requirements:
132
- - - "~>"
132
+ - - ">="
133
133
  - !ruby/object:Gem::Version
134
- version: '1.1'
134
+ version: '0'
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: rake
137
137
  requirement: !ruby/object:Gem::Requirement
@@ -178,90 +178,72 @@ dependencies:
178
178
  name: activerecord
179
179
  requirement: !ruby/object:Gem::Requirement
180
180
  requirements:
181
- - - ">="
182
- - !ruby/object:Gem::Version
183
- version: 4.0.9
184
- - - "<"
181
+ - - "~>"
185
182
  - !ruby/object:Gem::Version
186
- version: 4.1.0
183
+ version: 4.2.6
187
184
  type: :runtime
188
185
  prerelease: false
189
186
  version_requirements: !ruby/object:Gem::Requirement
190
187
  requirements:
191
- - - ">="
192
- - !ruby/object:Gem::Version
193
- version: 4.0.9
194
- - - "<"
188
+ - - "~>"
195
189
  - !ruby/object:Gem::Version
196
- version: 4.1.0
190
+ version: 4.2.6
197
191
  - !ruby/object:Gem::Dependency
198
192
  name: activesupport
199
193
  requirement: !ruby/object:Gem::Requirement
200
194
  requirements:
201
- - - ">="
202
- - !ruby/object:Gem::Version
203
- version: 4.0.9
204
- - - "<"
195
+ - - "~>"
205
196
  - !ruby/object:Gem::Version
206
- version: 4.1.0
197
+ version: 4.2.6
207
198
  type: :runtime
208
199
  prerelease: false
209
200
  version_requirements: !ruby/object:Gem::Requirement
210
201
  requirements:
211
- - - ">="
212
- - !ruby/object:Gem::Version
213
- version: 4.0.9
214
- - - "<"
202
+ - - "~>"
215
203
  - !ruby/object:Gem::Version
216
- version: 4.1.0
204
+ version: 4.2.6
217
205
  - !ruby/object:Gem::Dependency
218
206
  name: metasploit-concern
219
207
  requirement: !ruby/object:Gem::Requirement
220
208
  requirements:
221
- - - "~>"
209
+ - - ">="
222
210
  - !ruby/object:Gem::Version
223
- version: '1.1'
211
+ version: '0'
224
212
  type: :runtime
225
213
  prerelease: false
226
214
  version_requirements: !ruby/object:Gem::Requirement
227
215
  requirements:
228
- - - "~>"
216
+ - - ">="
229
217
  - !ruby/object:Gem::Version
230
- version: '1.1'
218
+ version: '0'
231
219
  - !ruby/object:Gem::Dependency
232
220
  name: metasploit-model
233
221
  requirement: !ruby/object:Gem::Requirement
234
222
  requirements:
235
- - - "~>"
223
+ - - ">="
236
224
  - !ruby/object:Gem::Version
237
- version: '1.1'
225
+ version: '0'
238
226
  type: :runtime
239
227
  prerelease: false
240
228
  version_requirements: !ruby/object:Gem::Requirement
241
229
  requirements:
242
- - - "~>"
230
+ - - ">="
243
231
  - !ruby/object:Gem::Version
244
- version: '1.1'
232
+ version: '0'
245
233
  - !ruby/object:Gem::Dependency
246
234
  name: railties
247
235
  requirement: !ruby/object:Gem::Requirement
248
236
  requirements:
249
- - - ">="
250
- - !ruby/object:Gem::Version
251
- version: 4.0.9
252
- - - "<"
237
+ - - "~>"
253
238
  - !ruby/object:Gem::Version
254
- version: 4.1.0
239
+ version: 4.2.6
255
240
  type: :runtime
256
241
  prerelease: false
257
242
  version_requirements: !ruby/object:Gem::Requirement
258
243
  requirements:
259
- - - ">="
260
- - !ruby/object:Gem::Version
261
- version: 4.0.9
262
- - - "<"
244
+ - - "~>"
263
245
  - !ruby/object:Gem::Version
264
- version: 4.1.0
246
+ version: 4.2.6
265
247
  - !ruby/object:Gem::Dependency
266
248
  name: recog
267
249
  requirement: !ruby/object:Gem::Requirement
@@ -565,6 +547,7 @@ files:
565
547
  - db/migrate/20150326183742_add_missing_ae_indices.rb
566
548
  - db/migrate/20150421211719_rename_automatic_exploitation_index.rb
567
549
  - db/migrate/20150514182921_add_origin_to_mdm_vuln.rb
550
+ - db/migrate/20160415153312_remove_not_null_from_web_vuln_p_arams.rb
568
551
  - lib/mdm.rb
569
552
  - lib/mdm/host/operating_system_normalization.rb
570
553
  - lib/mdm/module.rb
@@ -675,6 +658,9 @@ files:
675
658
  - spec/dummy/app/mailers/.gitkeep
676
659
  - spec/dummy/app/models/.gitkeep
677
660
  - spec/dummy/app/views/layouts/application.html.erb
661
+ - spec/dummy/bin/bundle
662
+ - spec/dummy/bin/rails
663
+ - spec/dummy/bin/rake
678
664
  - spec/dummy/config.ru
679
665
  - spec/dummy/config/application.rb
680
666
  - spec/dummy/config/boot.rb
@@ -685,12 +671,16 @@ files:
685
671
  - spec/dummy/config/environments/production.rb
686
672
  - spec/dummy/config/environments/test.rb
687
673
  - spec/dummy/config/initializers/active_record_migrations.rb
674
+ - spec/dummy/config/initializers/assets.rb
688
675
  - spec/dummy/config/initializers/backtrace_silencers.rb
676
+ - spec/dummy/config/initializers/cookies_serializer.rb
677
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
689
678
  - spec/dummy/config/initializers/inflections.rb
690
679
  - spec/dummy/config/initializers/mime_types.rb
691
680
  - spec/dummy/config/initializers/secret_token.rb
692
681
  - spec/dummy/config/initializers/session_store.rb
693
682
  - spec/dummy/config/initializers/wrap_parameters.rb
683
+ - spec/dummy/config/locales/en.yml
694
684
  - spec/dummy/config/routes.rb
695
685
  - spec/dummy/db/structure.sql
696
686
  - spec/dummy/db/structure.sql.from_rails_3
metadata.gz.sig CHANGED
Binary file