ripper_tree 0.1.0 → 0.1.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 +4 -4
- data/lib/ripper_tree/version.rb +1 -1
- data/lib/ripper_tree.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32e723df924fac02d663df047f40ea67ab760e23
|
4
|
+
data.tar.gz: 10838e66ce8303381411cb0bb455c58bfb58e79c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44bd022c7d118863e4126cea39d3714bfcfa4d0981b7e2cd5c7b5f1bfa1aa670be73d17e6f5332a02de5db25e610418c10ab735db4cffcfed5c66dca50261716
|
7
|
+
data.tar.gz: 0db04716450e29710c0fce7a6adac01a5d8f9cd73760f4f575f60c77b8158eaa49f45ccbf4b0c225bd5f21f7e8d7fca75d4b1b177ad494757ac23a7e883add04
|
data/lib/ripper_tree/version.rb
CHANGED
data/lib/ripper_tree.rb
CHANGED
@@ -47,7 +47,7 @@ class RipperTree
|
|
47
47
|
|
48
48
|
@queue << output_id(id)
|
49
49
|
|
50
|
-
params = parent[1..-1].zip(%i(
|
50
|
+
params = parent[1..-1].zip(%i(pars opts rest pars2 kws kwrest blk))
|
51
51
|
|
52
52
|
until params.empty?
|
53
53
|
param, arg_type = params.shift
|
@@ -57,7 +57,7 @@ class RipperTree
|
|
57
57
|
if param.instance_of?(Array)
|
58
58
|
@queue << output_id(arg_type)
|
59
59
|
|
60
|
-
if arg_type == :
|
60
|
+
if arg_type == :kwrest
|
61
61
|
s = space + get_space(end_line: params.empty? && param.empty?)
|
62
62
|
@queue << "#{s}#{L_LINE} "
|
63
63
|
@queue << output_value_node(param)
|
@@ -77,7 +77,7 @@ class RipperTree
|
|
77
77
|
@queue << get_line(end_line: param.empty?, space: s)
|
78
78
|
|
79
79
|
case arg_type
|
80
|
-
when :
|
80
|
+
when :opts
|
81
81
|
ident = e.first
|
82
82
|
val = e.last
|
83
83
|
@queue << "arg#{arg_count}\n"
|
@@ -103,7 +103,7 @@ class RipperTree
|
|
103
103
|
end
|
104
104
|
else
|
105
105
|
if param =~ /\d+/
|
106
|
-
@queue << ":
|
106
|
+
@queue << ":kwrest\n"
|
107
107
|
else
|
108
108
|
@queue << "#{param.inspect}\n"
|
109
109
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ripper_tree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- siman-man
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|