metasploit-credential 4.0.4 → 5.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -72,9 +72,9 @@ RSpec.describe Metasploit::Credential::Core, type: :model do
72
72
  it { is_expected.to have_and_belong_to_many(:tasks).class_name('Mdm::Task') }
73
73
  it { is_expected.to have_many(:logins).class_name('Metasploit::Credential::Login').dependent(:destroy) }
74
74
  it { is_expected.to belong_to(:origin) }
75
- it { is_expected.to belong_to(:private).class_name('Metasploit::Credential::Private') }
76
- it { is_expected.to belong_to(:public).class_name('Metasploit::Credential::Public') }
77
- it { is_expected.to belong_to(:realm).class_name('Metasploit::Credential::Realm') }
75
+ it { is_expected.to belong_to(:private).optional.class_name('Metasploit::Credential::Private') }
76
+ it { is_expected.to belong_to(:public).optional.class_name('Metasploit::Credential::Public') }
77
+ it { is_expected.to belong_to(:realm).optional.class_name('Metasploit::Credential::Realm') }
78
78
  it { is_expected.to belong_to(:workspace).class_name('Mdm::Workspace') }
79
79
  end
80
80
 
@@ -3,7 +3,7 @@ RSpec.describe Metasploit::Credential::Origin::Import, type: :model do
3
3
 
4
4
  context 'associations' do
5
5
  it { is_expected.to have_many(:cores).class_name('Metasploit::Credential::Core').dependent(:destroy) }
6
- it { is_expected.to belong_to(:task).class_name('Mdm::Task') }
6
+ it { is_expected.to belong_to(:task).optional.class_name('Mdm::Task') }
7
7
  end
8
8
 
9
9
  context 'database' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metasploit-credential
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.4
4
+ version: 5.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Metasploit Hackers
@@ -93,7 +93,7 @@ cert_chain:
93
93
  EknWpNgVhohbot1lfVAMmIhdtOVaRVcQQixWPwprDj/ydB8ryDMDosIMcw+fkoXU
94
94
  9GJsSaSRRYQ9UUkVL27b64okU8D48m8=
95
95
  -----END CERTIFICATE-----
96
- date: 2021-04-28 00:00:00.000000000 Z
96
+ date: 2021-06-07 00:00:00.000000000 Z
97
97
  dependencies:
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: metasploit-concern
@@ -115,14 +115,14 @@ dependencies:
115
115
  requirements:
116
116
  - - ">="
117
117
  - !ruby/object:Gem::Version
118
- version: 3.0.0
118
+ version: 5.0.0
119
119
  type: :runtime
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - ">="
124
124
  - !ruby/object:Gem::Version
125
- version: 3.0.0
125
+ version: 5.0.0
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: metasploit-model
128
128
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file