simplycop 1.12.5 → 1.12.7
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
- data/simplycop.gemspec +3 -3
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ef654db66359502eea39934f737bf5af3081aee0bc37d5372ffe627532cf912
|
4
|
+
data.tar.gz: 6053266c2fa6371eecbabf4d7c69105efaa86d5478a4b91c5aefdd9a1b402fde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87406c5757d72b252c3f6f9b9ac6398b5593310aef586f125e01f952fd2a06011f2cc177d2fc08a2be8b85a7bf54e3cd9644932f0c21a24e1169d8ac6480a4d6
|
7
|
+
data.tar.gz: 1b956970420e2ebfec9a6086f6f921848af1ab36833a3fe836777838f682d8b04fcac1a83f15c601b02fe65b437e9fb068ab493732dbfb11cd77a809f6f23eea
|
@@ -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
data/simplycop.gemspec
CHANGED
@@ -17,9 +17,9 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.add_dependency 'rubocop', '~> 1.35
|
21
|
-
spec.add_dependency 'rubocop-rails', '~> 2.15
|
22
|
-
spec.add_dependency 'rubocop-rspec', '~> 2.12
|
20
|
+
spec.add_dependency 'rubocop', '~> 1.35'
|
21
|
+
spec.add_dependency 'rubocop-rails', '~> 2.15'
|
22
|
+
spec.add_dependency 'rubocop-rspec', '~> 2.12'
|
23
23
|
spec.add_development_dependency 'bundler', '>= 2.2.15'
|
24
24
|
spec.add_development_dependency 'rake', '>= 12.3.3'
|
25
25
|
spec.add_development_dependency 'rspec', '~> 3.10'
|
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.7
|
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
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.35
|
19
|
+
version: '1.35'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.35
|
26
|
+
version: '1.35'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.15
|
33
|
+
version: '2.15'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.15
|
40
|
+
version: '2.15'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop-rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.12
|
47
|
+
version: '2.12'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 2.12
|
54
|
+
version: '2.12'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|