rubocop-github 0.16.1 → 0.16.2

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: 2b53ecd11b38faabbc6eea214afc14515faa069d354b38d048a054821018499b
4
- data.tar.gz: 500ca24b6717dfe481a3c472e02ef3dcc61bb41c8de7f872ba838a58659548b1
3
+ metadata.gz: 20ebeaa5b28b3bd9c71165db189848826a85b99e02a0a94bdefb0d0fdcd0613b
4
+ data.tar.gz: 380eb924e8f04d7c2b0cbabec3c6812cd02486646b4bdb00b7fcb7f17ac153c7
5
5
  SHA512:
6
- metadata.gz: d1ca6682867334fd2194722129145c669a094657259e76e2a449fbbff018ac541ce0f0f9d5395b9edd9c63eca9f846b4f4f185e39870fcb1cdc3ee335d205557
7
- data.tar.gz: 2acd77310e4b23a59f4cd0c1fbad5d4c4b314e79e3cbd6047e7d11c423adf20944bd4ec2a769b5bf8dc88f8aacc27324f8a56af05989cd467bded66d287be71e
6
+ metadata.gz: 597c2e3594b4bacf764a1fca6d1cbab7336b2634a6d5375305c4aeb479f9c4eb0e21796f1a372dd21013374ae24fd194fba54262c1e84cf5a19bedd97bfadc0d
7
+ data.tar.gz: '008078b1e9e5d737cbe459c64772a854e2c00b863fbd766be4d2e73698e2606ebb32e1fc1e36926b14182d3296785802cdc3f98895c59dfd79b6d27f3b144004'
@@ -20,10 +20,6 @@ module RuboCop
20
20
  (send nil? {:render :render_to_string} ({str sym} $_) $...)
21
21
  PATTERN
22
22
 
23
- def_node_matcher :render_inst?, <<-PATTERN
24
- (send nil? {:render :render_to_string} (send _ :new ...) ...)
25
- PATTERN
26
-
27
23
  def_node_matcher :render_with_options?, <<-PATTERN
28
24
  (send nil? {:render :render_to_string} (hash $...) ...)
29
25
  PATTERN
@@ -32,6 +28,10 @@ module RuboCop
32
28
  (send nil? {:render :render_to_string} (send _ :new ...) ...)
33
29
  PATTERN
34
30
 
31
+ def_node_matcher :render_view_component_instance_with_content?, <<-PATTERN
32
+ (send nil? {:render :render_to_string} (send (send _ :new ...) `:with_content ...))
33
+ PATTERN
34
+
35
35
  def_node_matcher :render_view_component_collection?, <<-PATTERN
36
36
  (send nil? {:render :render_to_string} (send _ :with_collection ...) ...)
37
37
  PATTERN
@@ -45,7 +45,8 @@ module RuboCop
45
45
  end
46
46
 
47
47
  def render_view_component?(node)
48
- render_view_component_instance?(node) ||
48
+ render_view_component_instance_with_content?(node) ||
49
+ render_view_component_instance?(node) ||
49
50
  render_view_component_collection?(node)
50
51
  end
51
52
  end
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.16.1
4
+ version: 0.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-11 00:00:00.000000000 Z
11
+ date: 2021-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "<="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.6.1
19
+ version: 1.13.0
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.6.1
26
+ version: 1.13.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "<="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.7.1
33
+ version: 1.11.0
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: 1.7.1
40
+ version: 1.11.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -131,7 +131,7 @@ homepage: https://github.com/github/rubocop-github
131
131
  licenses:
132
132
  - MIT
133
133
  metadata: {}
134
- post_install_message:
134
+ post_install_message:
135
135
  rdoc_options: []
136
136
  require_paths:
137
137
  - lib
@@ -146,8 +146,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0'
148
148
  requirements: []
149
- rubygems_version: 3.1.4
150
- signing_key:
149
+ rubygems_version: 3.0.3
150
+ signing_key:
151
151
  specification_version: 4
152
152
  summary: RuboCop GitHub
153
153
  test_files: []