rubocop-ast 1.46.0 → 1.47.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 +4 -4
- data/README.md +0 -2
- data/lib/rubocop/ast/node/mixin/parameterized_node.rb +1 -0
- data/lib/rubocop/ast/node.rb +15 -0
- data/lib/rubocop/ast/node_pattern/compiler.rb +1 -0
- data/lib/rubocop/ast/node_pattern.rb +1 -0
- data/lib/rubocop/ast/traversal.rb +1 -0
- data/lib/rubocop/ast/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69fa84f885de90b4390fd20fffacdc680cce5bb621cf036ceeb1372df1b4cf98
|
4
|
+
data.tar.gz: 204d7ca5706f7fcea3ee5747dc08cc89376447384f39da3ca759bf1830112b01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c38ada82f862b5688956f91a069ad36dd8c7f9dec831b51510de1d0653d75e9ab1c363a0c7fed0876aafc0a75cd64ed8f469d7f87b30cacccc25342bd85745fb
|
7
|
+
data.tar.gz: f977594d3f9e8b486ca1ac98c19406742e4f0153ca43695ae4ab9645cc2667c44599ce3ae55c4caade8f7353873a1eeefd82f8181f876b35f2e09784e5f4a9a5
|
data/README.md
CHANGED
@@ -2,8 +2,6 @@
|
|
2
2
|
|
3
3
|
[](https://badge.fury.io/rb/rubocop-ast)
|
4
4
|
[](https://github.com/rubocop/rubocop-ast/actions/workflows/rubocop.yml)
|
5
|
-
[](https://codeclimate.com/github/rubocop/rubocop-ast/test_coverage)
|
6
|
-
[](https://codeclimate.com/github/rubocop/rubocop-ast/maintainability)
|
7
5
|
|
8
6
|
Contains the classes needed by [RuboCop](https://github.com/rubocop/rubocop) to deal with Ruby's AST, in particular:
|
9
7
|
|
data/lib/rubocop/ast/node.rb
CHANGED
@@ -108,6 +108,13 @@ module RuboCop
|
|
108
108
|
rational: :numeric,
|
109
109
|
complex: :numeric,
|
110
110
|
|
111
|
+
str: :any_str,
|
112
|
+
dstr: :any_str,
|
113
|
+
xstr: :any_str,
|
114
|
+
|
115
|
+
sym: :any_sym,
|
116
|
+
dsym: :any_sym,
|
117
|
+
|
111
118
|
irange: :range,
|
112
119
|
erange: :range,
|
113
120
|
|
@@ -547,6 +554,14 @@ module RuboCop
|
|
547
554
|
GROUP_FOR_TYPE[type] == :any_match_pattern
|
548
555
|
end
|
549
556
|
|
557
|
+
def any_str_type?
|
558
|
+
GROUP_FOR_TYPE[type] == :any_str
|
559
|
+
end
|
560
|
+
|
561
|
+
def any_sym_type?
|
562
|
+
GROUP_FOR_TYPE[type] == :any_sym
|
563
|
+
end
|
564
|
+
|
550
565
|
def guard_clause?
|
551
566
|
node = operator_keyword? ? rhs : self
|
552
567
|
|
data/lib/rubocop/ast/version.rb
CHANGED
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.
|
4
|
+
version: 1.47.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: 2025-
|
13
|
+
date: 2025-09-19 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: parser
|