rubocop-ast 1.45.0 → 1.45.1

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: 583dc53998abcebb206e7c0567e4a4fd48e650adb3b75103a0c312e318460495
4
- data.tar.gz: 8ebae0951d2152b63a04d497d39be8502902327d1f8d45b4cab5480c84e08148
3
+ metadata.gz: 521d7e1613b1073ddff48a0cbe4b9845082cbe146ec4526d7b3ffbea9682a289
4
+ data.tar.gz: 53f870c81fb23413c05b2d51968b2c5eef0160b0ff6dc0a5ce50b00a694f4629
5
5
  SHA512:
6
- metadata.gz: c977e70e95ab8d4929ac09e354c1d8236f2110565245f68f185d853461cf49552b85afc6557e9b5e4d7b3b84d0fea2b640b5602b318f1d0b0e24be38b23563cd
7
- data.tar.gz: fecacf448202e8dcf1a010708de8ac1eb27e78211f4f130fa77d60737ed32ba2d3446f575841488f49a775489ada8e8122db781a8a20a97a46425b7538acc3ff
6
+ metadata.gz: fcea8269fce5fa28c1b99a176cf80c81899c929e6d8d195359a8d2841edf07a20920282aa54e0f37ad4fc606fccc8a6ffcd9769c47a14d737390456713581291
7
+ data.tar.gz: 7061c378e6de7e7e8fdbb9b95d986a0e5447ce52e717c70e588add642360cf95ae6aafb0a67f6c580e2a498e06d46cc4d0480a207d5c7e8465b7a3570329dd85
@@ -15,10 +15,12 @@ module RuboCop
15
15
  @visit = {}
16
16
  end
17
17
 
18
+ # rubocop:disable Naming/PredicateMethod
18
19
  def enter(node_id)
19
20
  @visit[node_id] = false
20
21
  true
21
22
  end
23
+ # rubocop:enable Naming/PredicateMethod
22
24
 
23
25
  def success(node_id)
24
26
  @visit[node_id] = true
@@ -341,7 +341,7 @@ module RuboCop
341
341
 
342
342
  parser_class = parser_class(ruby_version, parser_engine)
343
343
 
344
- parser_instance = if prism_result
344
+ parser_instance = if parser_engine == :parser_prism && prism_result
345
345
  # NOTE: Since it is intended for use with Ruby LSP, it targets only Prism.
346
346
  # If there is no reuse of a pre-parsed result, such as in Ruby LSP,
347
347
  # regular parsing with Prism occurs, and `else` branch will be executed.
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  module AST
5
5
  module Version
6
- STRING = '1.45.0'
6
+ STRING = '1.45.1'
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.45.0
4
+ version: 1.45.1
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: 2025-06-03 00:00:00.000000000 Z
13
+ date: 2025-06-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: parser