parser_node_ext 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 07a901b2c76fb4f39403891f6191fcb865beeb0847108522765cde0fe06bc6cd
4
- data.tar.gz: c4720a3f2df5c08ef3a6f3ef2f18c33a5cf02aac1ef94c351d5ac37eaa9f1af1
3
+ metadata.gz: b9bee187df49c963339ad5b6ed34721fb558e93b066593ac8fdf34ae453932f4
4
+ data.tar.gz: 960b04b95fb1ae5414d4ca820f22e1b2ae117c47e2d4502c9503848fc5048c19
5
5
  SHA512:
6
- metadata.gz: f10a88ff6c89658b50e6b2d36f433a88595816f0c36dabdf18f16c29c2096bbb5de80045791f436ac77d9d781baf5ed9e5205a5928fade062add8efc0c9a2fe1
7
- data.tar.gz: 88bb4871e94a2d1c3924f3787108242d7c1ac7048c3820a751365bc0c4af7f02784262dc8c07bd3e26ed8a9cd95a1b2c095c046dfb4c48f262fb3ab226394c0a
6
+ metadata.gz: 6a1432adf0618a77279d580ae9ad8de92a5e601c15256bedbafd870d3f46348c07143c11e25c4e3717dd6de19a99f22f1ce0306247ef5ad0f9529799d04fe0e1
7
+ data.tar.gz: 84e0d2ed48ba5650714e0bf994b43b7d9ef8f1191cf24941bf8a376963128145cbb970adb05f3e22f60ba6184d31f598f3b38b1a333b3d8a541149f3298cf9b5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- parser_node_ext (0.4.1)
4
+ parser_node_ext (0.5.0)
5
5
  parser
6
6
 
7
7
  GEM
@@ -9,7 +9,7 @@ GEM
9
9
  specs:
10
10
  ast (2.4.2)
11
11
  diff-lcs (1.5.0)
12
- parser (3.1.2.1)
12
+ parser (3.1.3.0)
13
13
  ast (~> 2.4.1)
14
14
  rake (13.0.6)
15
15
  rspec (3.11.0)
@@ -28,6 +28,7 @@ GEM
28
28
 
29
29
  PLATFORMS
30
30
  x86_64-darwin-21
31
+ x86_64-darwin-22
31
32
  x86_64-linux
32
33
 
33
34
  DEPENDENCIES
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ParserNodeExt
4
- VERSION = "0.4.1"
4
+ VERSION = "0.5.0"
5
5
  end
@@ -22,20 +22,27 @@ module ParserNodeExt
22
22
  def: %i[name arguments body],
23
23
  definded?: %i[arguments],
24
24
  defs: %i[self name arguments body],
25
+ false: [],
26
+ float: [],
25
27
  hash: %i[pairs],
28
+ int: [],
26
29
  ivasgn: %i[left_value right_value],
27
30
  ivar: %i[name],
28
31
  lvar: %i[name],
29
32
  lvasgn: %i[left_value right_value],
30
33
  masgn: %i[left_value right_value],
31
34
  module: %i[name body],
35
+ nil: [],
32
36
  or: %i[left_value right_value],
33
37
  or_asgn: %i[left_value right_value],
34
38
  pair: %i[key value],
35
39
  restarg: %i[name],
36
40
  send: %i[receiver message arguments],
41
+ str: [],
37
42
  super: %i[arguments],
38
- zsuper: %i[]
43
+ sym: [],
44
+ true: [],
45
+ zsuper: []
39
46
  }
40
47
 
41
48
  def self.included(base)
@@ -360,7 +367,7 @@ end
360
367
  # +type: 'send', receiver: { type: 'send', receiver: { type: 'send', message: 'config' }, message: 'active_record' }, message: 'identity_map='+
361
368
  #
362
369
  # Source Code to Ast Node
363
- # {https://synvert-playground.xinminlabs.com/ruby}
370
+ # {https://playground.synvert.net/ruby}
364
371
  class Parser::AST::Node
365
372
  include ParserNodeExt
366
373
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parser_node_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-21 00:00:00.000000000 Z
11
+ date: 2022-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  - !ruby/object:Gem::Version
64
64
  version: '0'
65
65
  requirements: []
66
- rubygems_version: 3.3.22
66
+ rubygems_version: 3.3.26
67
67
  signing_key:
68
68
  specification_version: 4
69
69
  summary: extend parser node