rubocop-vendor 0.9.0 → 0.9.1

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: e0a0ab973af3d0686d5569926ca7f0187c7e2d0f99d07c1d120dc5b5d66fdc27
4
- data.tar.gz: a0ccd57f7940618b66cb39577e1ad253b779b0596fe86fd29aa27306e7ba8a3f
3
+ metadata.gz: d60149702eeab325d9a01d3cc342cb3f3c17cd3b5259035471861d7fc8b82a9f
4
+ data.tar.gz: c4217f8e309e715753c8b8b967407b2a0bbc87eb5f4be16e645cbc8927800a0e
5
5
  SHA512:
6
- metadata.gz: '0897ba86f964e4ce2d3e6b2713b10cda03630136b24f8d4ab2dddd0bceae011917b2af9fc145386cefd77dd310e4c6c61d31ae5bb73b99ba2776d539aaa5c0ee'
7
- data.tar.gz: 9cab6bf36f9ad72bd1ce1c298bf341759439d719b56b842751a1694863cc7e2adb598bad348ab0f6a590564a38cdd9af800e927695d5715198b9aaea53e1f7da
6
+ metadata.gz: 3f9ae4df44bab2e0d5b769c3c5d625ba9f005d07b24fc39991b367db317c1acfe5d1605d6eb33457a2c092a473a882a96b67b47f89334f2ccd88ca51a8e72481
7
+ data.tar.gz: f3a3b42987b7be2a7b6bc1307e1ba78ce09143089e53d43a8bc9ac16d7f285f5c90049d243be90846c0cd67ca345dfd39ffdb385bc223d6cad03ccd5e716cbac
@@ -22,6 +22,7 @@ module RuboCop
22
22
 
23
23
  def on_const(node)
24
24
  return unless uses_dry_struct?(node)
25
+ return unless node.parent.class_type?
25
26
  return if uses_strict_mode?(node.parent)
26
27
 
27
28
  add_offense(node)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Vendor
5
- VERSION = '0.9.0'
5
+ VERSION = '0.9.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-vendor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danilo Cabello
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-03-14 00:00:00.000000000 Z
13
+ date: 2023-03-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubocop