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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 89cb766c8c2dd322da787fe17f6d3025ab232f92
4
- data.tar.gz: 97c61dc8df0ed9ab31d8c1b175b29acdaba962ad
3
+ metadata.gz: 32e723df924fac02d663df047f40ea67ab760e23
4
+ data.tar.gz: 10838e66ce8303381411cb0bb455c58bfb58e79c
5
5
  SHA512:
6
- metadata.gz: 175567907cd8a09722638a3a1a921d2d0b9081d08b79cf2bc8a165687b710a0208c4986e698ab1258d0c4860002835ee7baf45c83c17cb139fe11f6f04f07613
7
- data.tar.gz: 17860486ee33db836993e27365358754f01950d03ba2b7ff5a0a82e3abaf8fe1e38c4e1489d366e24b1d6c5cb3b0011298c8692cdda21677129015653b2fe1d4
6
+ metadata.gz: 44bd022c7d118863e4126cea39d3714bfcfa4d0981b7e2cd5c7b5f1bfa1aa670be73d17e6f5332a02de5db25e610418c10ab735db4cffcfed5c66dca50261716
7
+ data.tar.gz: 0db04716450e29710c0fce7a6adac01a5d8f9cd73760f4f575f60c77b8158eaa49f45ccbf4b0c225bd5f21f7e8d7fca75d4b1b177ad494757ac23a7e883add04
@@ -1,3 +1,3 @@
1
1
  class RipperTree
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
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(req_param opt_param rest_param key_param keyreq_param keyrest_param block_param))
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 == :keyrest_param
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 :opt_param
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 << ":keyrest\n"
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.0
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-23 00:00:00.000000000 Z
11
+ date: 2017-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize