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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 734f972ac50cadb23d37c83099d61132ec43e01c4af6872531be3aa5c063b4a8
4
- data.tar.gz: 34cbc519ee6d107e64b9a4e18f9b9e2d84563f987be6747469a3736953f16461
3
+ metadata.gz: c88c2c2d209027c9310d8923b7fa4dd5e6113bb1007b96a80f11e13690204a1e
4
+ data.tar.gz: 0d06d2a810de4e3308a3f8184d285b5e16ab2329f84ddeefe6ac7880356e107b
5
5
  SHA512:
6
- metadata.gz: ec97c2af7fe26753ca39bb8738ca762a5a314ea8649641c0a8f7de90c6b392634806aaa321f04ce0fb531b54d5ca12aeb3cf0e06d6d221d4d0dd0a3b58d0c4d4
7
- data.tar.gz: d6d090cc84609d9bffa881af8ba150674baa7af3ed0debc09056e132bf7de6242f6e03ac744d0edc47a99416a43f7d1a65f434b01e8a6d2c2cc2d657247e5e1b
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-16.04
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
- - uses: actions/setup-ruby@v1
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
@@ -12,8 +12,6 @@ group :development do
12
12
  end
13
13
 
14
14
  group :test do
15
- # blank?
16
- gem 'activesupport', '~> 5.2.2'
17
15
  # code coverage of tests
18
16
  gem 'simplecov', :require => false
19
17
  # in-memory database for ActiveRecord association traversal
@@ -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.parents.any? { |parent|
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
@@ -1,7 +1,7 @@
1
1
  module Metasploit
2
2
  module ERD
3
3
  # VERSION is managed by GemRelease
4
- VERSION = '3.0.2'
4
+ VERSION = '4.0.3'
5
5
 
6
6
  # @return [String]
7
7
  #
@@ -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', '~> 5.2.2'
29
- spec.add_runtime_dependency 'activesupport', '~> 5.2.2'
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
@@ -7,6 +7,6 @@ RSpec.shared_context 'ActiveRecord::Base connection' do
7
7
  end
8
8
 
9
9
  after(:example) do
10
- ActiveRecord::Base.connection.disconnect!
10
+ ActiveRecord::Base.connection.disconnect! rescue nil
11
11
  end
12
- end
12
+ 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::Base.direct_descendants.clear
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: 3.0.2
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-04-28 00:00:00.000000000 Z
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: 5.2.2
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: 5.2.2
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: 5.2.2
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: 5.2.2
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