metasploit_data_models 0.15.1-java → 0.15.2-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ class Mdm::Report < ActiveRecord::Base
10
10
  #
11
11
 
12
12
  belongs_to :workspace, :class_name => 'Mdm::Workspace'
13
-
13
+ belongs_to :task, :class_name => 'Mdm::Task'
14
14
  #
15
15
  # Scopes
16
16
  #
@@ -51,6 +51,8 @@ class Mdm::Task < ActiveRecord::Base
51
51
  # @return [Array<Mdm::TaskHost>
52
52
  has_many :services, :through => :task_services, :class_name => 'Mdm::Service'
53
53
 
54
+ has_many :reports, :class_name => 'Mdm::Report'
55
+
54
56
  #
55
57
  # Scopes
56
58
  #
@@ -4,5 +4,5 @@ module MetasploitDataModels
4
4
  # metasploit-framework/data/sql/migrate to db/migrate in this project, not all models have specs that verify the
5
5
  # migrations (with have_db_column and have_db_index) and certain models may not be shared between metasploit-framework
6
6
  # and pro, so models may be removed in the future. Because of the unstable API the version should remain below 1.0.0
7
- VERSION = '0.15.1'
7
+ VERSION = '0.15.2'
8
8
  end
@@ -11,6 +11,7 @@ describe Mdm::Task do
11
11
  it { should have_many(:task_services).class_name('Mdm::TaskService').dependent(:destroy) }
12
12
  it { should have_many(:services).class_name('Mdm::Service').through(:task_services) }
13
13
  it { should belong_to(:workspace).class_name('Mdm::Workspace') }
14
+ it { should have_many(:reports).class_name('Mdm::Report')}
14
15
  end
15
16
 
16
17
  context "running" do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: metasploit_data_models
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.15.1
5
+ version: 0.15.2
6
6
  platform: java
7
7
  authors:
8
8
  - Samuel Huckins
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-05-29 00:00:00.000000000 Z
15
+ date: 2013-06-03 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rake