rubocop-ast 1.20.1 → 1.22.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: 9ba8fd9e8c9903ca9522fe001ffe0f1d4b678d6d726240452962d610c5fd5b11
4
- data.tar.gz: ec1bd5ddb6974f82b3bc1ed8abec8b3a63e195c6685fc065dd751d38831b8d15
3
+ metadata.gz: a51634d0d8803ea979f44b5c93bcb86b30ddfa2e3ca74ae204076168e6111bab
4
+ data.tar.gz: 0d49b70878bfc0998fd2e955fbce76ddbea3f30afee876a7c70f8d670658026a
5
5
  SHA512:
6
- metadata.gz: 0fdf074ad777bb2aa6b3e94bcdd78ba9486908b1f21659a5c2818de837ed8b50bcebf581181484a9a4bf636f5b46a0433136549ad788343a5019668e98fb71d3
7
- data.tar.gz: 6a281cddaae5c392f9dc7dcce2449fc0da9a4d3c568628955e73f687a9bd7ca99ca7baa858a2b28ee5d4b1cf4a388fd14ff0e38c06756d3ec2fc6e6379baad8d
6
+ metadata.gz: 421fbe4f9c66f25a42dd137be25907e08c83c1dd508b0e6f4406c95b4a400156a037de64cad832960b908e947577e271c57605a7038eefd5702bddcf9d9c1661
7
+ data.tar.gz: 8821b6c58a4407d1b4124eb50894de927d571239b3ba4a0450dfb92cd47a096a54463bc66b4ae0cc82aeeac97fe62c6fc29b04c867c3799b4593c1309b1381c1
@@ -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
 
@@ -100,6 +100,10 @@ module RuboCop
100
100
  type == :tCOMMA
101
101
  end
102
102
 
103
+ def dot?
104
+ type == :tDOT
105
+ end
106
+
103
107
  def regexp_dots?
104
108
  %i[tDOT2 tDOT3].include?(type)
105
109
  end
@@ -115,6 +119,10 @@ module RuboCop
115
119
  def equal_sign?
116
120
  %i[tEQL tOP_ASGN].include?(type)
117
121
  end
122
+
123
+ def new_line?
124
+ type == :tNL
125
+ end
118
126
  end
119
127
  end
120
128
  end
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  module AST
5
5
  module Version
6
- STRING = '1.20.1'
6
+ STRING = '1.22.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.20.1
4
+ version: 1.22.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-07 00:00:00.000000000 Z
13
+ date: 2022-10-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: parser