metasploit-credential 5.0.2 → 5.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef31647d0e45201cf659de7a8699600a4aafaed799c1e105ab8c156c2ffa3551
4
- data.tar.gz: 7d916fc601f71dadd6ac162c18de230696fd61a7aaad86c14780d0f7c366e7d5
3
+ metadata.gz: 2c30255adfe87ad5c2e2ff459e86629696de47102735fdc9ba94263d686e6d37
4
+ data.tar.gz: fa2a50d36ab8cf89240765b1bf4ec7d43aa05bdd98ea3a95db49259254798727
5
5
  SHA512:
6
- metadata.gz: ec3f66a7ed819188c6ee83cf5a123c5d5d184af9e5ec8ec206faefc413d3c5a91364fb11b50ae330890f83a6b302d696fbd5cc87b65bda8d1feaa6fd816701a3
7
- data.tar.gz: 65f1fb9e12bea00049d6b3725d9aa548280ef759eea4a9211cda8d2413ee67eb67124903c867d2f97b3c7f26fc20d4235aa69c84c2ca1e8f527e45230ed73e1a
6
+ metadata.gz: c23dd9a56fe58ba521f4aef6e084fde11c636d8574a29eb4a2c5b36caa3dddaff4aab3427c27a9069abf4ad738918c0274fd2a4297722b649a5a7f7fab1785e6
7
+ data.tar.gz: d0fcdb1ad1641688a44ba55e5b6170b534e6881677c482973587facff9460098cfeeb30b48b0262b194f9e90fa572ea673ad93a39462d00cee3442b9ba2d00da
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1,2 @@
1
- -������?��'�{}��sM�C'�ZY����|�U=` ƌ;߭��Xj��x���3[C:��oe��?h�„���vmr#�搎T8���Jp���s !D`'FV��)l΋��Q���4��y���E4��2[���K Χ̃p?o υ��^U�����]��A
1
+ ��{�vʜ�U���8�>=��[�DIn"��ƨ(c^��\��>�7K����t
2
+ f�Z����㛨��m�"�
@@ -52,6 +52,7 @@ class Metasploit::Credential::Core < ApplicationRecord
52
52
  # @return [Metasploit::Credential::Private, nil]
53
53
  belongs_to :private,
54
54
  class_name: 'Metasploit::Credential::Private',
55
+ optional: true,
55
56
  inverse_of: :cores
56
57
 
57
58
  # @!attribute public
@@ -60,6 +61,7 @@ class Metasploit::Credential::Core < ApplicationRecord
60
61
  # @return [Metasploit::Credential::Public, nil]
61
62
  belongs_to :public,
62
63
  class_name: 'Metasploit::Credential::Public',
64
+ optional: true,
63
65
  inverse_of: :cores
64
66
 
65
67
  # @!attribute realm
@@ -69,6 +71,7 @@ class Metasploit::Credential::Core < ApplicationRecord
69
71
  # @return [Metasploit::Credential::Realm, nil]
70
72
  belongs_to :realm,
71
73
  class_name: 'Metasploit::Credential::Realm',
74
+ optional: true,
72
75
  inverse_of: :cores
73
76
 
74
77
  # @!attribute workspace
@@ -205,7 +208,7 @@ class Metasploit::Credential::Core < ApplicationRecord
205
208
  scope :originating_host_id, ->(host_id) {
206
209
  where(
207
210
  Metasploit::Credential::Core[:id].in(
208
- Metasploit::Credential::Core.cores_from_host(host_id)
211
+ self.cores_from_host(host_id)
209
212
  )
210
213
  )
211
214
  }
@@ -19,6 +19,7 @@ class Metasploit::Credential::Origin::Import < ApplicationRecord
19
19
  # @return [Mdm::Task]
20
20
  belongs_to :task,
21
21
  class_name: 'Mdm::Task',
22
+ optional: true,
22
23
  inverse_of: :import_credential_origins
23
24
 
24
25
  #
@@ -3,7 +3,7 @@
3
3
  module Metasploit
4
4
  module Credential
5
5
  # VERSION is managed by GemRelease
6
- VERSION = '5.0.2'
6
+ VERSION = '5.0.3'
7
7
 
8
8
  # @return [String]
9
9
  #
@@ -1,6 +1,6 @@
1
1
  development: &pgsql
2
2
  adapter: postgresql
3
- database: metasploit-credential_development2
3
+ database: metasploit-credential_development0
4
4
  username: msf
5
5
  password: pass123
6
6
  host: localhost
@@ -10,4 +10,4 @@ development: &pgsql
10
10
  min_messages: warning
11
11
  test:
12
12
  <<: *pgsql
13
- database: metasploit-credential_test2
13
+ database: metasploit-credential_test0
@@ -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: 5.0.2
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-05-11 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
metadata.gz.sig CHANGED
Binary file