rubocop-github 0.15.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubocop/cop/github/rails_view_render_literal.rb +3 -3
- 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: a214708e80e236506ea96c77c5a84afcd173e01decb10ad36410986f6a0e0df2
|
4
|
+
data.tar.gz: 715868e7decb28fc675c6bf1eac07345081e71aa998856e15f704aba00ac9201
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52a618c65c36c842aaf9826c4a5cbb44b18b95424beb8edbae631f5d735d83c219742e97253726adf9b91613fa79f045aabb042f5e38c91c74531c4688547cb6
|
7
|
+
data.tar.gz: 9cce70da14cbb170421bddb6f4dfa921ebec9dcd6b8684ed3361c5e34bfb7119bc64cb887d74f2e372ad09454f06774e47f8b351a8e0ff98142819f4dd1d7d01
|
@@ -24,8 +24,8 @@ module RuboCop
|
|
24
24
|
(send nil? :render (send _ :new ...) ...)
|
25
25
|
PATTERN
|
26
26
|
|
27
|
-
def_node_matcher :
|
28
|
-
(send nil? :render (
|
27
|
+
def_node_matcher :render_collection?, <<-PATTERN
|
28
|
+
(send nil? :render (send _ :with_collection ...) ...)
|
29
29
|
PATTERN
|
30
30
|
|
31
31
|
def_node_matcher :render_with_options?, <<-PATTERN
|
@@ -50,7 +50,7 @@ module RuboCop
|
|
50
50
|
def on_send(node)
|
51
51
|
return unless render?(node)
|
52
52
|
|
53
|
-
if render_literal?(node) || render_inst?(node) ||
|
53
|
+
if render_literal?(node) || render_inst?(node) || render_collection?(node)
|
54
54
|
elsif option_pairs = render_with_options?(node)
|
55
55
|
if option_pairs.any? { |pair| ignore_key?(pair) }
|
56
56
|
return
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-github
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|