metasploit-erd 3.0.2 → 4.0.3
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 +5 -16
- data/Gemfile +0 -2
- data/lib/metasploit/erd/entity/namespace.rb +2 -2
- data/lib/metasploit/erd/version.rb +1 -1
- data/metasploit-erd.gemspec +2 -2
- data/spec/metasploit/erd/relationship_spec.rb +1 -6
- data/spec/support/shared/contexts/active_record_base_connection.rb +2 -2
- data/spec/support/shared/contexts/active_record_base_descendants_cleaner.rb +8 -2
- data.tar.gz.sig +0 -0
- metadata +6 -6
- 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: c88c2c2d209027c9310d8923b7fa4dd5e6113bb1007b96a80f11e13690204a1e
|
4
|
+
data.tar.gz: 0d06d2a810de4e3308a3f8184d285b5e16ab2329f84ddeefe6ac7880356e107b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 066a2c5c4fef78ffb1ff64353a2a48af8d2f0334221bf2aceca923727d8bbfc9d0919481175116583354b5d8ab895345f83633d2c87fdb0a0691aff5b640c562
|
7
|
+
data.tar.gz: 02e446dae86c6f53b1c8c0f52e6af5aeff531ad109312e24ca593e72afc23f26fdd9854faea75beb98111783837e34e5e70b19218ce0158ec704cd9f8a7b4389
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -10,7 +10,7 @@ on:
|
|
10
10
|
|
11
11
|
jobs:
|
12
12
|
test:
|
13
|
-
runs-on: ubuntu-
|
13
|
+
runs-on: ubuntu-18.04
|
14
14
|
timeout-minutes: 40
|
15
15
|
|
16
16
|
strategy:
|
@@ -20,6 +20,7 @@ jobs:
|
|
20
20
|
- 2.5
|
21
21
|
- 2.6
|
22
22
|
- 2.7
|
23
|
+
- 3.0
|
23
24
|
|
24
25
|
env:
|
25
26
|
RAILS_ENV: test
|
@@ -32,23 +33,11 @@ jobs:
|
|
32
33
|
- name: Checkout code
|
33
34
|
uses: actions/checkout@v2
|
34
35
|
|
35
|
-
-
|
36
|
+
- name: Setup Ruby
|
37
|
+
uses: ruby/setup-ruby@v1
|
36
38
|
with:
|
37
39
|
ruby-version: ${{ matrix.ruby }}
|
38
|
-
|
39
|
-
- name: Setup bundler
|
40
|
-
run: |
|
41
|
-
gem install bundler
|
42
|
-
- uses: actions/cache@v2
|
43
|
-
with:
|
44
|
-
path: vendor/bundle
|
45
|
-
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
46
|
-
restore-keys: |
|
47
|
-
${{ runner.os }}-gems-
|
48
|
-
- name: Bundle install
|
49
|
-
run: |
|
50
|
-
bundle config path vendor/bundle
|
51
|
-
bundle install --jobs 4 --retry 3
|
40
|
+
bundler-cache: true
|
52
41
|
|
53
42
|
- name: Test
|
54
43
|
run: |
|
data/Gemfile
CHANGED
@@ -31,7 +31,7 @@ class Metasploit::ERD::Entity::Namespace
|
|
31
31
|
# @return [Array<Class<ActiveRecord::Base>
|
32
32
|
def classes
|
33
33
|
ActiveRecord::Base.descendants.select { |klass|
|
34
|
-
klass.
|
34
|
+
klass.module_parents.any? { |parent|
|
35
35
|
parent.name == namespace_name
|
36
36
|
}
|
37
37
|
}
|
@@ -63,4 +63,4 @@ class Metasploit::ERD::Entity::Namespace
|
|
63
63
|
|
64
64
|
super(super_options)
|
65
65
|
end
|
66
|
-
end
|
66
|
+
end
|
data/metasploit-erd.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
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', '~> 6.0'
|
29
|
+
spec.add_runtime_dependency 'activesupport', '~> 6.0'
|
30
30
|
spec.add_runtime_dependency 'rails-erd'
|
31
31
|
end
|
@@ -124,13 +124,10 @@ RSpec.describe Metasploit::ERD::Relationship do
|
|
124
124
|
|
125
125
|
ActiveRecord::Migration.create_table :owners do |t|
|
126
126
|
t.references :thing
|
127
|
-
|
128
|
-
t.timestamp
|
129
127
|
end
|
130
128
|
|
131
129
|
things.each do |thing|
|
132
130
|
ActiveRecord::Migration.create_table thing.table_name do |t|
|
133
|
-
t.timestamp
|
134
131
|
end
|
135
132
|
end
|
136
133
|
end
|
@@ -210,8 +207,6 @@ RSpec.describe Metasploit::ERD::Relationship do
|
|
210
207
|
group_names.each do |group_name|
|
211
208
|
t.references group_name.underscore.to_sym
|
212
209
|
end
|
213
|
-
|
214
|
-
t.timestamp
|
215
210
|
end
|
216
211
|
|
217
212
|
polymorphics_by_group_name.each do |group_name, polymorphics|
|
@@ -241,4 +236,4 @@ RSpec.describe Metasploit::ERD::Relationship do
|
|
241
236
|
end
|
242
237
|
end
|
243
238
|
end
|
244
|
-
end
|
239
|
+
end
|
@@ -6,6 +6,12 @@ RSpec.shared_context 'ActiveRecord::Base.descendants cleaner' do
|
|
6
6
|
after(:example) do
|
7
7
|
# `ActiveSupport::DescendantsTracker.clear` will not clear ActiveRecord::Base subclasses because
|
8
8
|
# ActiveSupport::Dependencies is loaded
|
9
|
-
ActiveRecord::
|
9
|
+
if ActiveRecord.version >= Gem::Version.new("6.0.0.rc1")
|
10
|
+
cv = ActiveSupport::DescendantsTracker.class_variable_get(:@@direct_descendants)
|
11
|
+
cv.delete(ActiveRecord::Base)
|
12
|
+
ActiveSupport::DescendantsTracker.class_variable_set(:@@direct_descendants, cv)
|
13
|
+
else
|
14
|
+
ActiveRecord::Base.direct_descendants.clear
|
15
|
+
end
|
10
16
|
end
|
11
|
-
end
|
17
|
+
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: 4.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-
|
96
|
+
date: 2021-09-16 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: '6.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: '6.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: '6.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: '6.0'
|
168
168
|
- !ruby/object:Gem::Dependency
|
169
169
|
name: rails-erd
|
170
170
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|