rubocop-minitest 0.32.0 → 0.32.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08c9b3f5ddb92c5f5b813bc30191e4a217e84625fd306708d119fa8214a386d9'
|
4
|
+
data.tar.gz: 864f4e6170234aea432a9b8d14e7fb940c35aa0acb4297871382f75768e686bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6d46818eda0dfcfb3307e5f5d648ce695fcc9054bda0c59ea61a4f894434a57185facdd8a6d44810515a249487c4007ae9424bcc188686fa2e2e0838792ed65
|
7
|
+
data.tar.gz: e64bd49fc78e749da4b3e6422387e8bfe8c5ab7c56d9f64376d3b860adfeb2c6a5c1822ead7bbc282527908e7511e90a72a962f77c9cc9adbd31bb6454e8ed2c
|
@@ -20,7 +20,8 @@ module RuboCop
|
|
20
20
|
RESTRICT_ON_SEND = %i[assert].freeze
|
21
21
|
|
22
22
|
def on_send(node)
|
23
|
-
|
23
|
+
first_argument = node.first_argument
|
24
|
+
return unless first_argument.respond_to?(:operator_method?) && first_argument.operator_method?
|
24
25
|
|
25
26
|
new_arguments = build_new_arguments(node)
|
26
27
|
|
@@ -20,7 +20,8 @@ module RuboCop
|
|
20
20
|
RESTRICT_ON_SEND = %i[refute].freeze
|
21
21
|
|
22
22
|
def on_send(node)
|
23
|
-
|
23
|
+
first_argument = node.first_argument
|
24
|
+
return unless first_argument.respond_to?(:operator_method?) && first_argument.operator_method?
|
24
25
|
|
25
26
|
new_arguments = build_new_arguments(node)
|
26
27
|
|
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.32.
|
4
|
+
version: 0.32.1
|
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-09-
|
13
|
+
date: 2023-09-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rubocop
|