metasploit_data_models 0.15.1 → 0.15.2

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
@@ -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: 0.15.1
4
+ version: 0.15.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-05-28 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
@@ -413,7 +413,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
413
413
  version: '0'
414
414
  segments:
415
415
  - 0
416
- hash: 3069622991064808265
416
+ hash: 3360880238204748610
417
417
  required_rubygems_version: !ruby/object:Gem::Requirement
418
418
  none: false
419
419
  requirements:
@@ -422,10 +422,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
422
422
  version: '0'
423
423
  segments:
424
424
  - 0
425
- hash: 3069622991064808265
425
+ hash: 3360880238204748610
426
426
  requirements: []
427
427
  rubyforge_project:
428
- rubygems_version: 1.8.24
428
+ rubygems_version: 1.8.25
429
429
  signing_key:
430
430
  specification_version: 3
431
431
  summary: Database code for MSF and Metasploit Pro