rubocop-ast 1.48.0 → 1.49.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: 601f87c89f0a69b437a3e702ed3166307c4a957734f7a13f3dd8cf702f4306db
4
- data.tar.gz: bf3bca918bc3e44818f3b9857e83dda37640e5833d0a11d7be3223386482d41a
3
+ metadata.gz: 9e4a71ea1a0fa947b90afc9034eeb0c003b875f36ec8802a28228cba2325d094
4
+ data.tar.gz: 871addb4a4e3d427f5c549902f8c927ebe8796856fa5d8828db4e1235550b786
5
5
  SHA512:
6
- metadata.gz: ca67fdc85dda2c630a499c690fc562bc74b6636d998d458a350e0d6a0419db8d1b238669985cb878e502bd82888a85a8fdd31558cacfe8e86175204bb8ab9651
7
- data.tar.gz: f87375cd03440d4a9d4638a6ffc3d0bd7d21ca4301f1402a71be02198a3e155c3700699f68f5138101a09d862c42895147f95e8db590079811ebf861c1685234
6
+ metadata.gz: db53330f9e551fa8d09b60d743297c3c9cbf1ac3df66ced1ead0ecf252b8ddd8f02a0593effd9d0849314f9604b1d0560ff8f6f4b5fdea67fb306e86ba2c7aae
7
+ data.tar.gz: f635affad9b49b2179e8f176a714bb2f38fe49ade7254bfbf8dfcf2797c8939b33d8884a1ba28f77bf7343bb03a80be6f7ab62a79a4ee89b989a52d00434e136
@@ -32,7 +32,7 @@ module RuboCop
32
32
  #
33
33
  # @return [Parser::Source::Range] the source range for the method name or keyword
34
34
  def selector
35
- if loc.respond_to? :keyword
35
+ if loc?(:keyword)
36
36
  loc.keyword
37
37
  else
38
38
  loc.selector
@@ -310,18 +310,13 @@ module RuboCop
310
310
  when :parser_prism
311
311
  case ruby_version
312
312
  when 3.3
313
- require 'prism/translation/parser33'
314
313
  Prism::Translation::Parser33
315
314
  when 3.4
316
- require 'prism/translation/parser34'
317
315
  Prism::Translation::Parser34
318
316
  when 3.5, 4.0
319
- # TODO: The meaning of the version numbers in `Parser35` (Ruby 3.5) is the same as in
320
- # `Parser40` (Ruby 4.0). Once the next version of Prism 1.6.0 is released,
321
- # `Parser35` should probably be replaced with `Parser40`:
322
- # See: https://github.com/ruby/prism/pull/3709
323
- require 'prism/translation/parser35'
324
- Prism::Translation::Parser35
317
+ Prism::Translation::Parser40
318
+ when 4.1
319
+ Prism::Translation::Parser41
325
320
  else
326
321
  raise ArgumentError, 'RuboCop supports target Ruby versions 3.3 and above with Prism. ' \
327
322
  "Specified target Ruby version: #{ruby_version.inspect}"
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  module AST
5
5
  module Version
6
- STRING = '1.48.0'
6
+ STRING = '1.49.0'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-ast
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.48.0
4
+ version: 1.49.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bozhidar Batsov
8
8
  - Jonas Arvidsson
9
9
  - Yuji Nakayama
10
+ autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 1980-01-02 00:00:00.000000000 Z
13
+ date: 2025-12-28 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: parser
@@ -31,14 +32,14 @@ dependencies:
31
32
  requirements:
32
33
  - - "~>"
33
34
  - !ruby/object:Gem::Version
34
- version: '1.4'
35
+ version: '1.7'
35
36
  type: :runtime
36
37
  prerelease: false
37
38
  version_requirements: !ruby/object:Gem::Requirement
38
39
  requirements:
39
40
  - - "~>"
40
41
  - !ruby/object:Gem::Version
41
- version: '1.4'
42
+ version: '1.7'
42
43
  description: " RuboCop's Node and NodePattern classes.\n"
43
44
  email: rubocop@googlegroups.com
44
45
  executables: []
@@ -162,6 +163,7 @@ metadata:
162
163
  documentation_uri: https://docs.rubocop.org/rubocop-ast/
163
164
  bug_tracker_uri: https://github.com/rubocop/rubocop-ast/issues
164
165
  rubygems_mfa_required: 'true'
166
+ post_install_message:
165
167
  rdoc_options: []
166
168
  require_paths:
167
169
  - lib
@@ -176,7 +178,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
178
  - !ruby/object:Gem::Version
177
179
  version: '0'
178
180
  requirements: []
179
- rubygems_version: 4.0.0.dev
181
+ rubygems_version: 3.5.22
182
+ signing_key:
180
183
  specification_version: 4
181
184
  summary: RuboCop tools to deal with Ruby code AST.
182
185
  test_files: []