simplycop 1.12.5 → 1.12.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simplycop/custom_cops/timecop_without_block.rb +1 -1
- data/lib/simplycop/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79bea609bc6bd0deec528d1cb27ce64f13a31feec2496344541ecd798dc2a532
|
4
|
+
data.tar.gz: b36a12d2edf708f5d29bea127a6c0abdb6b3e20860cf4d67b030bdf3bf235a36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4361ee4c6a665c515e3fdc9b64303fdbb052ce3231bbbe9b5942c56bb3478db09cef2aaff1145ccf1e3a5a0049822384c92eb1da25d7e1f6d4a67ed12f068af1
|
7
|
+
data.tar.gz: 7ec36989af4e426976227dcabe14b050eb0563afebba5f9b59915d6c23c86124240faa26da9f51e085436a282caf5eab66946b0efa84065a0dc62bd3a9eaa76a
|
@@ -30,7 +30,7 @@ module CustomCops
|
|
30
30
|
# this denotes the following structure:
|
31
31
|
# `Timecop.method(arg1, arg2, &block)`, which is also a valid way of passing in a block
|
32
32
|
def last_child_is_a_block(node)
|
33
|
-
node.children.last&.type == :block_pass
|
33
|
+
node.children.last&.type == :block_pass if node.children.last.respond_to?(:type)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
data/lib/simplycop/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplycop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.
|
4
|
+
version: 1.12.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simply Business
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|