rubocop-ast 1.21.0 → 1.23.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: 3042a6ea6c8061c98af6f9266c3c25753d9c6fa44da970def28268322e1a95d4
4
- data.tar.gz: 6ca67765b5da2f93381655e0669eba37cfe9c12a81b8e29e0c3a57ce9fd98c55
3
+ metadata.gz: cfec7f927c495d16f847400f123da08ff90e6a94ff6319a84ce21fb0b261b7a5
4
+ data.tar.gz: c770260ba7f50b0bb233d8e95d43e1d8fa1674a2a11af4548a37f919b5ce9cc8
5
5
  SHA512:
6
- metadata.gz: 5f2eb5ee0b03efc771f32464253980ac8bd4a583db82eb7e59f7b4784ac29cf22e63f118aff1493d215d60e4a9a25843912f72f8d11baea8554d4be1135e76b7
7
- data.tar.gz: 2dfd094259a9585e0376034f21b8073736fa681799b16fd420511bea725878573e1e0aa3a52211dc5f3672e9812c440270727e7e4f06ffacaaa592c742ba37ae
6
+ metadata.gz: efbc6b544362492884000f55fbb1b216c6f4e55bb1087c88e3218bb595f91129afd4c45ecaa3e3d02784d7cd714ad21765c376aaad5e0768917384c366657e48
7
+ data.tar.gz: 7f98a811c53a27eba7211f05b6a368b7f058dd285e6771c7ed2d97230688e88498c6f57b1d7e585ff83b5f0d3f85b928bb67ba4bbbeaa06fa7c0eb5aa7e5d20a
@@ -233,7 +233,7 @@ module RuboCop
233
233
  #
234
234
  # foo + bar
235
235
  #
236
- # @return [Bookean] whether this method is a binary operation
236
+ # @return [Boolean] whether this method is a binary operation
237
237
  def binary_operation?
238
238
  return false unless loc.selector
239
239
 
@@ -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
@@ -119,6 +119,10 @@ module RuboCop
119
119
  def equal_sign?
120
120
  %i[tEQL tOP_ASGN].include?(type)
121
121
  end
122
+
123
+ def new_line?
124
+ type == :tNL
125
+ end
122
126
  end
123
127
  end
124
128
  end
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  module AST
5
5
  module Version
6
- STRING = '1.21.0'
6
+ STRING = '1.23.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.21.0
4
+ version: 1.23.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-08-08 00:00:00.000000000 Z
13
+ date: 2022-10-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: parser