rubocop-minitest 0.34.1 → 0.34.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 132e18de3080072cbcdc1517542e21e21ea4b724c1822f1c2d96ab4bae60c2b7
|
4
|
+
data.tar.gz: 8dc865cac7cda76ea18171af2f83d9819190d33efaca2ea406c3172f21773c01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82e4a7bd2dd40b305ac0d53ccd08d12f8badc6970fc39e49e5e82c3e5e69a09045e1df32beea00d07d9ff8dc8384e51049f05b8ba58dee11452eab9ca59890cc
|
7
|
+
data.tar.gz: b5da87263051a5c9f0b9db6c9e39a085088efba258e6762cab107f6d0a3488bf9a2e2d3eaabc50bc5e5ac21f81c421e8b91cf7c317a242a2af2f0b678149829f
|
@@ -99,8 +99,9 @@ module RuboCop
|
|
99
99
|
end
|
100
100
|
end
|
101
101
|
|
102
|
-
# rubocop:disable Metrics/CyclomaticComplexity
|
102
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
103
103
|
def assertion_method?(node)
|
104
|
+
return false unless node
|
104
105
|
return assertion_method?(node.expression) if node.assignment? && node.respond_to?(:expression)
|
105
106
|
return false if !node.send_type? && !node.block_type? && !node.numblock_type?
|
106
107
|
|
@@ -110,7 +111,7 @@ module RuboCop
|
|
110
111
|
method_name.start_with?(prefix) || node.method?(:flunk)
|
111
112
|
end
|
112
113
|
end
|
113
|
-
# rubocop:enable Metrics/CyclomaticComplexity
|
114
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
114
115
|
|
115
116
|
def lifecycle_hook_method?(node)
|
116
117
|
node.def_type? && LIFECYCLE_HOOK_METHODS.include?(node.method_name)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-minitest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.34.
|
4
|
+
version: 0.34.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bozhidar Batsov
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2023-12-
|
13
|
+
date: 2023-12-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rubocop
|