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: 8e59babe7e9ae552aee440a3e5eb5767af585357899d8f4fbac8f54247494b87
4
- data.tar.gz: 4f61d9b471cdda223fbd1fe239656b2a47e5216a2903588ce05f5a4909d5fb21
3
+ metadata.gz: 132e18de3080072cbcdc1517542e21e21ea4b724c1822f1c2d96ab4bae60c2b7
4
+ data.tar.gz: 8dc865cac7cda76ea18171af2f83d9819190d33efaca2ea406c3172f21773c01
5
5
  SHA512:
6
- metadata.gz: 7d14b60b50dacf5f28470b18ea5d03c19507e21063bf54a971b67a5b4d10255e048bcf75052f4645aa049a25ff54dd6f8022255b5c11bdef650c63f84fa4ed1f
7
- data.tar.gz: 3e3389f3ba19ea5a8c08ee1b57c5eb9d8da15b17c1b80d36c21470bd096a6753e9108c7de8d84ebb0f702b797310af241e401a16ea2207dc12d4891135c5efa9
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)
@@ -4,7 +4,7 @@ module RuboCop
4
4
  module Minitest
5
5
  # This module holds the RuboCop Minitest version information.
6
6
  module Version
7
- STRING = '0.34.1'
7
+ STRING = '0.34.2'
8
8
 
9
9
  def self.document_version
10
10
  STRING.match('\d+\.\d+').to_s
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.1
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-16 00:00:00.000000000 Z
13
+ date: 2023-12-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubocop