rubocop-ast 1.18.0 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecc44200cb01d2a920c3f0dc730904dce038f0ce7ad48b18c1188f5f39395bf6
4
- data.tar.gz: 65cf679ce211a1772606eef3ecf27c29732f8bd757b332d0324323f1b1898fb6
3
+ metadata.gz: e2940fc0009d2a8c22394b0dfdff3d48e28dcb9b696b5eaabcac8efefcc4e479
4
+ data.tar.gz: 3a42602c36dfffbe35474ab9431dbf2437e22d5b4c3b485fce79c1e12868ff2c
5
5
  SHA512:
6
- metadata.gz: b9da19828233f088bb4de259c1448d33a4c021daceca170c809eb7c413496bf0791476e032b0632eedff463adc6a16916c6c37c5c7deb3957e0bb0ebbcaf6bbe
7
- data.tar.gz: 1cbf941b340dcc64fa3d727aaff4c5dbba9a47561b02b01ed12ac96f1b8ef53fa9f6b7f3b361e622368d4215c373b3af2bee0b012b9078b2460726a2306b3bd3
6
+ metadata.gz: 19d3856b627d85f6636619c7517220f3882e3aecd5f7daaefd9c7ef98d773dd535e86b3754f29d33364926c2d8ce4daf6ad936542c0a185a30a7996aea18de07
7
+ data.tar.gz: 2aab89172bbca7244c06ca1950dc5c2cb5868e3454d507c6ae1c2ecf545d3a0ce77b0bedaaa69f39823a1fc066914d4fb731f4e911aa706eeff0f8aa1d790ec1
@@ -20,8 +20,8 @@ module RuboCop
20
20
  end
21
21
 
22
22
  if var == :forbidden_unification
23
- raise Invalid, "Wildcard #{name} was first seen in a subset of a" \
24
- " union and can't be used outside that union"
23
+ raise Invalid, "Wildcard #{name} was first seen in a subset of a " \
24
+ "union and can't be used outside that union"
25
25
  end
26
26
  var
27
27
  end
@@ -100,6 +100,10 @@ module RuboCop
100
100
  type == :tCOMMA
101
101
  end
102
102
 
103
+ def regexp_dot?
104
+ %i[tDOT2 tDOT3].include?(type)
105
+ end
106
+
103
107
  def rescue_modifier?
104
108
  type == :kRESCUE_MOD
105
109
  end
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  module AST
5
5
  module Version
6
- STRING = '1.18.0'
6
+ STRING = '1.19.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.18.0
4
+ version: 1.19.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-05-13 00:00:00.000000000 Z
13
+ date: 2022-07-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: parser