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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66b7cc8146735ce098192204581e2e6b436130fe3bacaa2a797dea4ce0a48f44
4
- data.tar.gz: f00286af238080977106996b36240dd1d3ae03add29c238ebc210e45fa6b2ea5
3
+ metadata.gz: a214708e80e236506ea96c77c5a84afcd173e01decb10ad36410986f6a0e0df2
4
+ data.tar.gz: 715868e7decb28fc675c6bf1eac07345081e71aa998856e15f704aba00ac9201
5
5
  SHA512:
6
- metadata.gz: 23437aa5856816463e41fd8548dd57ded15d8118ba21b41abc456cb4bb53050d156e8b866119b290437baca59d8af1b31629b31d9d26183b6000673013224e0c
7
- data.tar.gz: c32168d25f7617585609ed6e34bc819e036a8264eac168c631f998f9719217ae1d714b062829d88cd7df7f332120300f9675458f5631a4902c6ae0454dcdd0dc
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 :render_const?, <<-PATTERN
28
- (send nil? :render (const _ _) ...)
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) || render_const?(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.15.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-04-24 00:00:00.000000000 Z
11
+ date: 2020-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop