metasploit-erd 4.0.3 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.github/workflows/verify.yml +9 -4
- data/lib/metasploit/erd/version.rb +1 -1
- data/metasploit-erd.gemspec +3 -3
- data/spec/metasploit/erd/cluster_spec.rb +2 -2
- data/spec/metasploit/erd/entity/class_spec.rb +1 -1
- data/spec/metasploit/erd/entity/namespace_spec.rb +1 -1
- data/spec/metasploit/erd/relationship_spec.rb +1 -1
- data/spec/support/shared/contexts/active_record_base_descendants_cleaner.rb +6 -7
- data.tar.gz.sig +0 -0
- metadata +7 -7
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f7c65eec175b6d3f11433038377ec2697d0cb10dc56182294b189c8af7f03a5
|
4
|
+
data.tar.gz: 960d983c4ea14db538dff44b6ec2b815bbf7b9fef6bf4e1cbb4f09b67fe6f138
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb209394ed236815e83f13b394214a473340e9e93c6d003329dc328bff2980cf13a7bc0d5d83b82560c9886648121af8b5af52cf0869b9bd38ea5c2854dd46d0
|
7
|
+
data.tar.gz: 48db8e20d89b3d348f67e6b9d96b1c8a441706fc886a3e940b7529073216c344540f580492f0639161c9d11271a396f8d5e8bf294c50fdb194a2cd2c2a26c08a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -10,22 +10,27 @@ on:
|
|
10
10
|
|
11
11
|
jobs:
|
12
12
|
test:
|
13
|
-
runs-on:
|
13
|
+
runs-on: ${{ matrix.os }}
|
14
14
|
timeout-minutes: 40
|
15
15
|
|
16
16
|
strategy:
|
17
17
|
fail-fast: true
|
18
18
|
matrix:
|
19
19
|
ruby:
|
20
|
-
- 2.5
|
21
|
-
- 2.6
|
22
20
|
- 2.7
|
23
21
|
- 3.0
|
22
|
+
- 3.1
|
23
|
+
os:
|
24
|
+
- ubuntu-20.04
|
25
|
+
- ubuntu-latest
|
26
|
+
exclude:
|
27
|
+
- { os: ubuntu-latest, ruby: 2.7 }
|
28
|
+
- { os: ubuntu-latest, ruby: 3.0 }
|
24
29
|
|
25
30
|
env:
|
26
31
|
RAILS_ENV: test
|
27
32
|
|
28
|
-
name: Ruby ${{ matrix.ruby }}
|
33
|
+
name: ${{ matrix.os }} - Ruby ${{ matrix.ruby }}
|
29
34
|
steps:
|
30
35
|
- name: Install system dependencies
|
31
36
|
run: sudo apt-get install graphviz
|
data/metasploit-erd.gemspec
CHANGED
@@ -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.
|
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', '~>
|
29
|
-
spec.add_runtime_dependency 'activesupport', '~>
|
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.
|
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,6 +1,6 @@
|
|
1
1
|
RSpec.describe Metasploit::ERD::Relationship do
|
2
2
|
include_context 'ActiveRecord::Base connection'
|
3
|
-
include_context 'ActiveRecord::Base.
|
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.
|
1
|
+
RSpec.shared_context 'ActiveRecord::Base.subclasses cleaner' do
|
2
2
|
before(:example) do
|
3
|
-
expect(ActiveRecord::Base.
|
3
|
+
expect(ActiveRecord::Base.subclasses).to be_empty
|
4
4
|
end
|
5
5
|
|
6
6
|
after(:example) do
|
7
|
-
|
8
|
-
|
9
|
-
|
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
|
+
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:
|
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: '
|
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: '
|
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: '
|
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: '
|
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.
|
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
|