rubocop-thread_safety 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cdf9af170c6dcfe7ac085b6e68467551d4c14d1eac843fefb97f39645cf556a6
4
- data.tar.gz: e6efe781ead225cbdcf14185a67851a57fa60fe0e31627342a7204eb5f656c3f
3
+ metadata.gz: bed09b8d96b3ed854a15e8de8fd056a1f3d1ded79466ac40045d6c1862c267f0
4
+ data.tar.gz: '006578081bcdcaa70d167c3d5aaa0585d1a2f235b7e792030bcd42f12874bff4'
5
5
  SHA512:
6
- metadata.gz: 18e2788dfc505506dd73e7231008200edca8c5055612442b14e6639ff362af00e4de983fc4be0980e6f3820a365175138cd7d04708ced0bf401db3c00eb429df
7
- data.tar.gz: 94da6513c5ed7f1561f7e88385b3eddb6da8984127ac1da7e16f0a4c6c4c871390af0599b7b8c43c53bfc792af82363fdbe16b848fc7a93c6a10ea6d630e60d4
6
+ metadata.gz: f770a49ceb32cf4f85b7073fb687888a248ca335b0ebf3176bcfaa99d5d33174b0f5e7c1244a38dc1315a316d8d0bcfd356e4709d0cf11b6d47ddfab0cd12740
7
+ data.tar.gz: f227428d53971b1eaa05c3091752b5a665db5838538ad717b68f8372a30174016dc6c20f99aa9e8a98ce9e53075655566ae49d6d0f28545cebe7d013a8962543
data/CHANGELOG.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Change log
2
2
 
3
- ## master
3
+ ## 0.7.3
4
+
5
+ [#93](https://github.com/rubocop/rubocop-thread_safety/pull/93): Fix an error for `ThreadSafety/MutableClassInstanceVariable` cop. ([@viralpraxis](https://github.com/viralpraxis))
4
6
 
5
7
  ## 0.7.2
6
8
 
@@ -227,9 +227,9 @@ module RuboCop
227
227
  # @!method new_lexical_scope?(node)
228
228
  def_node_matcher :new_lexical_scope?, <<~PATTERN
229
229
  {
230
- (block (send (const nil? :Struct) :new ...) _ ({def defs} ...))
231
- (block (send (const nil? :Class) :new ...) _ ({def defs} ...))
232
- (block (send (const nil? :Data) :define ...) _ ({def defs} ...))
230
+ (block (send (const nil? :Struct) :new ...) _ (any_def ...))
231
+ (block (send (const nil? :Class) :new ...) _ (any_def ...))
232
+ (block (send (const nil? :Data) :define ...) _ (any_def ...))
233
233
  (block
234
234
  (send nil?
235
235
  {
@@ -194,7 +194,7 @@ module RuboCop
194
194
 
195
195
  def requires_parentheses?(node)
196
196
  range_type?(node) ||
197
- (node.send_type? && node.loc.dot.nil?)
197
+ (node.send_type? && (node.loc.dot.nil? || (node.arguments.any? && !node.parenthesized_call?)))
198
198
  end
199
199
 
200
200
  def range_type?(node)
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  module ThreadSafety
5
5
  module Version
6
- STRING = '0.7.2'
6
+ STRING = '0.7.3'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-thread_safety
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Gee
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-03-13 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: lint_roller
@@ -43,6 +43,26 @@ dependencies:
43
43
  - - ">="
44
44
  - !ruby/object:Gem::Version
45
45
  version: 1.72.1
46
+ - !ruby/object:Gem::Dependency
47
+ name: rubocop-ast
48
+ requirement: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 1.44.0
53
+ - - "<"
54
+ - !ruby/object:Gem::Version
55
+ version: '2.0'
56
+ type: :runtime
57
+ prerelease: false
58
+ version_requirements: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 1.44.0
63
+ - - "<"
64
+ - !ruby/object:Gem::Version
65
+ version: '2.0'
46
66
  description: |2
47
67
  Thread-safety checks via static analysis.
48
68
  A plugin for the RuboCop code style enforcing & linting tool.
@@ -91,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
111
  - !ruby/object:Gem::Version
92
112
  version: '0'
93
113
  requirements: []
94
- rubygems_version: 3.6.3
114
+ rubygems_version: 3.6.7
95
115
  specification_version: 4
96
116
  summary: Thread-safety checks via static analysis
97
117
  test_files: []