parser_node_ext 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/parser_node_ext/version.rb +1 -1
- data/lib/parser_node_ext.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04ffc05da49821ecd7354816fb0299c545cc5e290c3d5b895b9fee3f5c87429c
|
4
|
+
data.tar.gz: '0240891107821f6340ae989474421a2f55d7c3ac1fcb00df03f9dde2061bb859'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a99e9eb669246a49e8efd5cc31e5035d54a929e9800c178cff63bc5472e3ccb791b69dc1b55d49e87ead173189008d879348e4e7d47d885c922ff7e4b254cb4f
|
7
|
+
data.tar.gz: 6d5137cd5e5e85dc20820f948873ebbd1648e2e410070c14c780c2ff8b483a528ed3b151ead451404d7da36046ebb1948cb22e26d99a356b5c2bcf400ab76035
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.9.1 (2023-02-01)
|
4
|
+
|
5
|
+
* Fix `module` node `body` method
|
6
|
+
|
3
7
|
## 0.9.0 (2023-02-01)
|
4
8
|
|
5
9
|
* Support pattern match nodes, `case_match`, `in_pattern`, `hash_pattern`, `array_pattern`, `find_pattern`, `match_pattern`, `match_pattern_p`, `match_var`, `match_as`, `pin`, `match_rest`, `if_guard` and `unless_guard`
|
data/Gemfile.lock
CHANGED
data/lib/parser_node_ext.rb
CHANGED
@@ -159,11 +159,11 @@ module ParserNodeExt
|
|
159
159
|
case type
|
160
160
|
when :begin
|
161
161
|
children
|
162
|
-
when :when
|
162
|
+
when :when, :module
|
163
163
|
return [] if children[1].nil?
|
164
164
|
|
165
165
|
:begin == children[1].type ? children[1].body : children[1..-1]
|
166
|
-
when :def, :block, :class, :
|
166
|
+
when :def, :block, :class, :numblock, :in_pattern
|
167
167
|
return [] if children[2].nil?
|
168
168
|
|
169
169
|
:begin == children[2].type ? children[2].body : children[2..-1]
|