rubocop-ast 1.22.0 → 1.24.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: a51634d0d8803ea979f44b5c93bcb86b30ddfa2e3ca74ae204076168e6111bab
4
- data.tar.gz: 0d49b70878bfc0998fd2e955fbce76ddbea3f30afee876a7c70f8d670658026a
3
+ metadata.gz: 78554cccfe256fe1f9c47816aee520d541d7cc9cc1e6da0fedc3aaa881a788c4
4
+ data.tar.gz: fd568b92e24931d617f4ee51153215a8ebd49bc3942cab17df4e64611b89748f
5
5
  SHA512:
6
- metadata.gz: 421fbe4f9c66f25a42dd137be25907e08c83c1dd508b0e6f4406c95b4a400156a037de64cad832960b908e947577e271c57605a7038eefd5702bddcf9d9c1661
7
- data.tar.gz: 8821b6c58a4407d1b4124eb50894de927d571239b3ba4a0450dfb92cd47a096a54463bc66b4ae0cc82aeeac97fe62c6fc29b04c867c3799b4593c1309b1381c1
6
+ metadata.gz: 46fb9ce602917ce32b77592da9ebfa0fc84ba5fd22c236d7afc70cd7a8bbc4b74855cdc54d69592c97cfb03977124dc400b4c4cca5b6c353af835ee69e84c529
7
+ data.tar.gz: 4834a36fc8d5976d0e10007be2777d7f0a395d41dd47a0668c1a03062cfd79ea4b972c70988be90e76624e26ce3757f3f18e34e6e3041eef70f0b0a20f11c2b7
@@ -8,6 +8,10 @@ module RuboCop
8
8
  class StrNode < Node
9
9
  include BasicLiteralNode
10
10
 
11
+ def character_literal?
12
+ loc.respond_to?(:begin) && loc.begin && loc.begin.is?('?')
13
+ end
14
+
11
15
  def heredoc?
12
16
  loc.is_a?(Parser::Source::Map::Heredoc)
13
17
  end
@@ -75,7 +75,8 @@ module RuboCop
75
75
  ### arity == 0
76
76
  no_children = %i[true false nil self cbase zsuper redo retry
77
77
  forward_args forwarded_args match_nil_pattern
78
- forward_arg lambda empty_else kwnilarg
78
+ forward_arg forwarded_restarg forwarded_kwrestarg
79
+ lambda empty_else kwnilarg
79
80
  __FILE__ __LINE__ __ENCODING__]
80
81
 
81
82
  ### arity == 0..1
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  module AST
5
5
  module Version
6
- STRING = '1.22.0'
6
+ STRING = '1.24.0'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-ast
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.0
4
+ version: 1.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bozhidar Batsov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-10-17 00:00:00.000000000 Z
13
+ date: 2022-11-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: parser