metasploit_data_models 1.2.0 → 1.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fd5d8779e7448b33f99a8f71bb40fc8391e95d6
4
- data.tar.gz: 7e995f8350c5b3cf3715db86e113e8dd282a93bb
3
+ metadata.gz: b6ba747bcd0d3492de23db914e7cbdea803f3905
4
+ data.tar.gz: c5dff2b2706bd6227bb3f112d34c35e61bcc22df
5
5
  SHA512:
6
- metadata.gz: 01f85581ce10fdd8b255139f14a8549c98342bab18455e61b21956acf1a15aeed1a33b03534a09cdcad8d6b8676cf88312aa37a8cd5cb2745d6be2fd870b9240
7
- data.tar.gz: 587754136a888b99791cd1bbcd6f1955e449b4f71f641c1c1a7496c2ae10293926b6a09b10a224ca56082af5f09da063a1dec805e8adef091dbfb71a32fc7272
6
+ metadata.gz: 814abb84faf6a04671073b8f8c832925da43cf289ea91b035f2da13f99aa3ac3d78ca9a7b7c7f34edad76fe5c492f1d2624b2403d921061bcef7ec0153b7ca76
7
+ data.tar.gz: ef0362446755bc899f074d38179423e4e977ca56efed00429b6b091eb1a3c4b01fbf53e32987bc404f073001f5086c795596cb0ba7e7c6bf5f71b80c5e674ef6
@@ -56,5 +56,16 @@ class MetasploitDataModels::AutomaticExploitation::MatchResult < ActiveRecord::B
56
56
  # Runs of {#match} that succeeded
57
57
  scope :succeeded, lambda { where(state:"succeeded") }
58
58
 
59
+ # Runs of {#match} by workspace ID
60
+ scope :by_workspace, lambda { |workspace_id|
61
+ joins(
62
+ MetasploitDataModels::AutomaticExploitation::MatchResult.join_association(:match),
63
+ MetasploitDataModels::AutomaticExploitation::Match.join_association(:match_set)
64
+ ).where(
65
+ MetasploitDataModels::AutomaticExploitation::MatchSet[:workspace_id].eq(workspace_id),
66
+ )
67
+ }
68
+
59
69
  Metasploit::Concern.run(self)
60
70
  end
71
+
@@ -10,7 +10,7 @@ module MetasploitDataModels
10
10
  # The minor version number, scoped to the {MAJOR} version number.
11
11
  MINOR = 2
12
12
  # The patch version number, scoped to the {MAJOR} and {MINOR} version numbers.
13
- PATCH = 0
13
+ PATCH = 1
14
14
 
15
15
  #
16
16
  # Module Methods
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.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Huckins
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-05-26 00:00:00.000000000 Z
14
+ date: 2015-05-29 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: metasploit-version
@@ -731,7 +731,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
731
731
  version: '0'
732
732
  requirements: []
733
733
  rubyforge_project:
734
- rubygems_version: 2.4.7
734
+ rubygems_version: 2.4.3
735
735
  signing_key:
736
736
  specification_version: 4
737
737
  summary: Database code for MSF and Metasploit Pro