parser_node_ext 0.9.0 → 0.9.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: 8fb070ea09b73310d3bb9acdcae0cbc06c6e3120b7d1bd69de94045c48cabcfa
4
- data.tar.gz: 4014d1088f929cb56e5865b11500f58242263685ba64a140b29d9f9166fdeaf6
3
+ metadata.gz: 04ffc05da49821ecd7354816fb0299c545cc5e290c3d5b895b9fee3f5c87429c
4
+ data.tar.gz: '0240891107821f6340ae989474421a2f55d7c3ac1fcb00df03f9dde2061bb859'
5
5
  SHA512:
6
- metadata.gz: 77c947f3bfc188aef814ec8214cf46af0d76d7aabe9c5c99af2c63c7838073bf9c8cd3bdae71e248238cb5c16690d71e91afefc9f23ce791284a46eac7957946
7
- data.tar.gz: 5afac291cda433af31d1965c023fcc0662cf07e6cdd6c80a9932b23f2851978b501b09fa0a61b128e325bc7eb714d1e5efb09024ac06c802bade0656715e01cf
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- parser_node_ext (0.9.0)
4
+ parser_node_ext (0.9.1)
5
5
  parser
6
6
 
7
7
  GEM
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ParserNodeExt
4
- VERSION = "0.9.0"
4
+ VERSION = "0.9.1"
5
5
  end
@@ -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, :module, :numblock, :in_pattern
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]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parser_node_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang