metasploit-erd 4.0.4 → 5.0.0

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: ea89cb73f3c304f82922bb25c60bcba04fb60328f77426217dad73c7e12d383b
4
- data.tar.gz: 2b716c73cbdb2d0709fd40b19a6cedc378a4f6602bed8f5cc49e2d5567299120
3
+ metadata.gz: 1f7c65eec175b6d3f11433038377ec2697d0cb10dc56182294b189c8af7f03a5
4
+ data.tar.gz: 960d983c4ea14db538dff44b6ec2b815bbf7b9fef6bf4e1cbb4f09b67fe6f138
5
5
  SHA512:
6
- metadata.gz: 202a63bdad74ce4b362c2c5b2a919d8a35fe3f3072f22a745b68663915ccd91f3178828019863194123b5586af7c35d0630f74fe6b7ffa2b489e10899e5a323f
7
- data.tar.gz: 3bea7bab16fc6fd2fed1c852aa7cbcb2f08c0a8c9b5a112f8456fb7296d8a0811c3489a0ec15fa6a21418aae69c8620121fb8e32a4bca50c0d9812e8c4ddc52a
6
+ metadata.gz: cb209394ed236815e83f13b394214a473340e9e93c6d003329dc328bff2980cf13a7bc0d5d83b82560c9886648121af8b5af52cf0869b9bd38ea5c2854dd46d0
7
+ data.tar.gz: 48db8e20d89b3d348f67e6b9d96b1c8a441706fc886a3e940b7529073216c344540f580492f0639161c9d11271a396f8d5e8bf294c50fdb194a2cd2c2a26c08a
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,7 +1,7 @@
1
1
  module Metasploit
2
2
  module ERD
3
3
  # VERSION is managed by GemRelease
4
- VERSION = '4.0.4'
4
+ VERSION = '5.0.0'
5
5
 
6
6
  # @return [String]
7
7
  #
@@ -19,13 +19,13 @@ Gem::Specification.new do |spec|
19
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
20
  spec.require_paths = ['lib']
21
21
 
22
- spec.required_ruby_version = '>= 2.2.0'
22
+ spec.required_ruby_version = '>= 2.7.0'
23
23
 
24
24
  spec.add_development_dependency 'metasploit-yard'
25
25
  spec.add_development_dependency 'rake'
26
26
  spec.add_development_dependency 'rspec'
27
27
 
28
- spec.add_runtime_dependency 'activerecord', '~> 6.0'
29
- spec.add_runtime_dependency 'activesupport', '~> 6.0'
28
+ spec.add_runtime_dependency 'activerecord', '~> 7.0'
29
+ spec.add_runtime_dependency 'activesupport', '~> 7.0'
30
30
  spec.add_runtime_dependency 'rails-erd'
31
31
  end
@@ -1,6 +1,6 @@
1
1
  RSpec.describe Metasploit::ERD::Cluster do
2
2
  include_context 'ActiveRecord::Base connection'
3
- include_context 'ActiveRecord::Base.descendants cleaner'
3
+ include_context 'ActiveRecord::Base.subclasses cleaner'
4
4
 
5
5
  subject(:cluster) {
6
6
  described_class.new(*roots)
@@ -153,4 +153,4 @@ RSpec.describe Metasploit::ERD::Cluster do
153
153
  it { is_expected.to be_empty }
154
154
  end
155
155
  end
156
- end
156
+ end
@@ -1,5 +1,5 @@
1
1
  RSpec.describe Metasploit::ERD::Entity::Class do
2
- include_context 'ActiveRecord::Base.descendants cleaner'
2
+ include_context 'ActiveRecord::Base.subclasses cleaner'
3
3
 
4
4
  subject(:class_entity) {
5
5
  described_class.new(klass)
@@ -1,5 +1,5 @@
1
1
  RSpec.describe Metasploit::ERD::Entity::Namespace do
2
- include_context 'ActiveRecord::Base.descendants cleaner'
2
+ include_context 'ActiveRecord::Base.subclasses cleaner'
3
3
 
4
4
  subject(:namespace_entity) {
5
5
  described_class.new(namespace_name)
@@ -1,6 +1,6 @@
1
1
  RSpec.describe Metasploit::ERD::Relationship do
2
2
  include_context 'ActiveRecord::Base connection'
3
- include_context 'ActiveRecord::Base.descendants cleaner'
3
+ include_context 'ActiveRecord::Base.subclasses cleaner'
4
4
 
5
5
  subject(:relationship) {
6
6
  described_class.new(association)
@@ -1,17 +1,16 @@
1
- RSpec.shared_context 'ActiveRecord::Base.descendants cleaner' do
1
+ RSpec.shared_context 'ActiveRecord::Base.subclasses cleaner' do
2
2
  before(:example) do
3
- expect(ActiveRecord::Base.direct_descendants).to be_empty
3
+ expect(ActiveRecord::Base.subclasses).to be_empty
4
4
  end
5
5
 
6
6
  after(:example) do
7
- # `ActiveSupport::DescendantsTracker.clear` will not clear ActiveRecord::Base subclasses because
8
- # ActiveSupport::Dependencies is loaded
9
- if ActiveRecord.version >= Gem::Version.new("6.0.0.rc1")
7
+ if ActiveRecord.version >= Gem::Version.new("7.0.0")
8
+ subclasses = ActiveSupport::DescendantsTracker.subclasses(ActiveRecord::Base)
9
+ ActiveSupport::DescendantsTracker.clear(subclasses)
10
+ else
10
11
  cv = ActiveSupport::DescendantsTracker.class_variable_get(:@@direct_descendants)
11
12
  cv.delete(ActiveRecord::Base)
12
13
  ActiveSupport::DescendantsTracker.class_variable_set(:@@direct_descendants, cv)
13
- else
14
- ActiveRecord::Base.direct_descendants.clear
15
14
  end
16
15
  end
17
16
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metasploit-erd
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.4
4
+ version: 5.0.0
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: 2022-09-02 00:00:00.000000000 Z
96
+ date: 2022-11-02 00:00:00.000000000 Z
97
97
  dependencies:
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: metasploit-yard
@@ -143,28 +143,28 @@ dependencies:
143
143
  requirements:
144
144
  - - "~>"
145
145
  - !ruby/object:Gem::Version
146
- version: '6.0'
146
+ version: '7.0'
147
147
  type: :runtime
148
148
  prerelease: false
149
149
  version_requirements: !ruby/object:Gem::Requirement
150
150
  requirements:
151
151
  - - "~>"
152
152
  - !ruby/object:Gem::Version
153
- version: '6.0'
153
+ version: '7.0'
154
154
  - !ruby/object:Gem::Dependency
155
155
  name: activesupport
156
156
  requirement: !ruby/object:Gem::Requirement
157
157
  requirements:
158
158
  - - "~>"
159
159
  - !ruby/object:Gem::Version
160
- version: '6.0'
160
+ version: '7.0'
161
161
  type: :runtime
162
162
  prerelease: false
163
163
  version_requirements: !ruby/object:Gem::Requirement
164
164
  requirements:
165
165
  - - "~>"
166
166
  - !ruby/object:Gem::Version
167
- version: '6.0'
167
+ version: '7.0'
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: rails-erd
170
170
  requirement: !ruby/object:Gem::Requirement
@@ -233,7 +233,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
233
233
  requirements:
234
234
  - - ">="
235
235
  - !ruby/object:Gem::Version
236
- version: 2.2.0
236
+ version: 2.7.0
237
237
  required_rubygems_version: !ruby/object:Gem::Requirement
238
238
  requirements:
239
239
  - - ">="
metadata.gz.sig CHANGED
Binary file