unparser 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +7 -0
- data/Gemfile +1 -7
- data/README.md +6 -1
- data/Rakefile +11 -2
- data/bin/unparser +0 -2
- data/config/devtools.yml +1 -1
- data/config/flay.yml +1 -1
- data/config/flog.yml +1 -1
- data/config/reek.yml +4 -1
- data/config/rubocop.yml +0 -4
- data/lib/unparser.rb +1 -2
- data/lib/unparser/ast.rb +0 -2
- data/lib/unparser/ast/local_variable_scope.rb +0 -2
- data/lib/unparser/buffer.rb +0 -2
- data/lib/unparser/cli.rb +3 -4
- data/lib/unparser/cli/color.rb +0 -2
- data/lib/unparser/cli/differ.rb +0 -2
- data/lib/unparser/cli/source.rb +1 -3
- data/lib/unparser/comments.rb +0 -2
- data/lib/unparser/constants.rb +0 -2
- data/lib/unparser/emitter.rb +4 -3
- data/lib/unparser/emitter/alias.rb +0 -2
- data/lib/unparser/emitter/argument.rb +0 -2
- data/lib/unparser/emitter/assignment.rb +0 -2
- data/lib/unparser/emitter/begin.rb +1 -3
- data/lib/unparser/emitter/binary.rb +0 -2
- data/lib/unparser/emitter/block.rb +0 -2
- data/lib/unparser/emitter/case.rb +0 -2
- data/lib/unparser/emitter/cbase.rb +0 -2
- data/lib/unparser/emitter/class.rb +1 -3
- data/lib/unparser/emitter/def.rb +0 -2
- data/lib/unparser/emitter/defined.rb +0 -2
- data/lib/unparser/emitter/empty.rb +0 -2
- data/lib/unparser/emitter/ensure.rb +0 -2
- data/lib/unparser/emitter/flipflop.rb +0 -2
- data/lib/unparser/emitter/flow_modifier.rb +0 -2
- data/lib/unparser/emitter/for.rb +0 -2
- data/lib/unparser/emitter/hookexe.rb +0 -2
- data/lib/unparser/emitter/if.rb +0 -2
- data/lib/unparser/emitter/literal.rb +0 -2
- data/lib/unparser/emitter/literal/array.rb +0 -2
- data/lib/unparser/emitter/literal/dynamic.rb +2 -43
- data/lib/unparser/emitter/literal/dynamic_body.rb +0 -6
- data/lib/unparser/emitter/literal/execute_string.rb +0 -2
- data/lib/unparser/emitter/literal/hash.rb +1 -3
- data/lib/unparser/emitter/literal/primitive.rb +0 -2
- data/lib/unparser/emitter/literal/range.rb +0 -2
- data/lib/unparser/emitter/literal/regexp.rb +0 -2
- data/lib/unparser/emitter/literal/singleton.rb +0 -2
- data/lib/unparser/emitter/match.rb +0 -2
- data/lib/unparser/emitter/module.rb +0 -2
- data/lib/unparser/emitter/op_assign.rb +0 -2
- data/lib/unparser/emitter/redo.rb +0 -2
- data/lib/unparser/emitter/repetition.rb +0 -2
- data/lib/unparser/emitter/resbody.rb +0 -2
- data/lib/unparser/emitter/rescue.rb +0 -2
- data/lib/unparser/emitter/retry.rb +0 -2
- data/lib/unparser/emitter/root.rb +0 -2
- data/lib/unparser/emitter/send.rb +0 -2
- data/lib/unparser/emitter/send/arguments.rb +0 -2
- data/lib/unparser/emitter/send/attribute_assignment.rb +0 -2
- data/lib/unparser/emitter/send/binary.rb +0 -2
- data/lib/unparser/emitter/send/conditional.rb +38 -0
- data/lib/unparser/emitter/send/index.rb +0 -2
- data/lib/unparser/emitter/send/regular.rb +0 -2
- data/lib/unparser/emitter/send/unary.rb +3 -2
- data/lib/unparser/emitter/splat.rb +0 -2
- data/lib/unparser/emitter/super.rb +0 -2
- data/lib/unparser/emitter/undef.rb +0 -2
- data/lib/unparser/emitter/variable.rb +0 -2
- data/lib/unparser/emitter/yield.rb +0 -2
- data/lib/unparser/finalize.rb +0 -2
- data/lib/unparser/node_helpers.rb +0 -2
- data/lib/unparser/preprocessor.rb +3 -80
- data/spec/integration/unparser/corpus_spec.rb +3 -16
- data/spec/integrations.yml +10 -11
- data/spec/spec_helper.rb +0 -2
- data/spec/unit/unparser/buffer/append_spec.rb +0 -2
- data/spec/unit/unparser/buffer/append_without_prefix_spec.rb +0 -2
- data/spec/unit/unparser/buffer/capture_content_spec.rb +0 -2
- data/spec/unit/unparser/buffer/content_spec.rb +0 -2
- data/spec/unit/unparser/buffer/fresh_line_spec.rb +0 -2
- data/spec/unit/unparser/buffer/indent_spec.rb +0 -2
- data/spec/unit/unparser/buffer/nl_spec.rb +0 -2
- data/spec/unit/unparser/buffer/unindent_spec.rb +0 -2
- data/spec/unit/unparser/comments/consume_spec.rb +0 -2
- data/spec/unit/unparser/comments/take_all_spec.rb +0 -2
- data/spec/unit/unparser/comments/take_before_spec.rb +0 -2
- data/spec/unit/unparser/comments/take_eol_comments_spec.rb +0 -2
- data/spec/unit/unparser/emitter/class_methods/handle_spec.rb +1 -3
- data/spec/unit/unparser_spec.rb +47 -71
- data/unparser.gemspec +20 -17
- metadata +69 -28
- data/.travis.yml +0 -20
- data/Guardfile +0 -20
- data/TODO +0 -4
data/spec/spec_helper.rb
CHANGED
data/spec/unit/unparser_spec.rb
CHANGED
@@ -1,15 +1,12 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
1
|
require 'spec_helper'
|
4
2
|
|
5
|
-
describe Unparser do
|
3
|
+
describe Unparser, mutant_expression: 'Unparser::Emitter*' do
|
6
4
|
describe '.unparse' do
|
7
5
|
|
8
6
|
PARSERS = IceNine.deep_freeze(
|
9
|
-
'1.9' => Parser::Ruby19,
|
10
|
-
'2.0' => Parser::Ruby20,
|
11
7
|
'2.1' => Parser::Ruby21,
|
12
|
-
'2.2' => Parser::Ruby22
|
8
|
+
'2.2' => Parser::Ruby22,
|
9
|
+
'2.3' => Parser::Ruby23
|
13
10
|
)
|
14
11
|
|
15
12
|
RUBIES = PARSERS.keys.freeze
|
@@ -30,7 +27,7 @@ describe Unparser do
|
|
30
27
|
ast, comments = parser.parse_with_comments(input)
|
31
28
|
generated = Unparser.unparse(ast, comments)
|
32
29
|
expect(generated).to eql(input)
|
33
|
-
generated_ast,
|
30
|
+
generated_ast, _comments = parser.parse_with_comments(generated)
|
34
31
|
expect(ast == generated_ast).to be(true)
|
35
32
|
end
|
36
33
|
|
@@ -84,16 +81,16 @@ describe Unparser do
|
|
84
81
|
end
|
85
82
|
|
86
83
|
context 'kwargs' do
|
87
|
-
assert_source <<-RUBY
|
84
|
+
assert_source <<-RUBY
|
88
85
|
def foo(bar:, baz:)
|
89
86
|
end
|
90
87
|
RUBY
|
91
88
|
|
92
|
-
assert_source <<-RUBY
|
89
|
+
assert_source <<-RUBY
|
93
90
|
foo(**bar)
|
94
91
|
RUBY
|
95
92
|
|
96
|
-
assert_source <<-RUBY
|
93
|
+
assert_source <<-RUBY
|
97
94
|
def foo(bar:, baz: "value")
|
98
95
|
end
|
99
96
|
RUBY
|
@@ -112,46 +109,40 @@ describe Unparser do
|
|
112
109
|
assert_generates '-10e10000000000', '-Float::INFINITY'
|
113
110
|
end
|
114
111
|
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
assert_terminated '1r', %w(2.1)
|
120
|
-
assert_generates '1.0r', '1r', %w(2.1)
|
121
|
-
assert_generates '-0r', '0r', %w(2.1)
|
112
|
+
context 'rational' do
|
113
|
+
assert_terminated '1r'
|
114
|
+
assert_generates '1.0r', '1r'
|
115
|
+
assert_generates '-0r', '0r'
|
122
116
|
|
123
|
-
|
124
|
-
|
125
|
-
|
117
|
+
assert_terminated '1.5r'
|
118
|
+
assert_terminated '1.3r'
|
119
|
+
end
|
126
120
|
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
end
|
121
|
+
context 'complex' do
|
122
|
+
%w(
|
123
|
+
5i
|
124
|
+
-5i
|
125
|
+
0.6i
|
126
|
+
-0.6i
|
127
|
+
1000000000000000000000000000000i
|
128
|
+
1ri
|
129
|
+
).each do |expression|
|
130
|
+
assert_terminated(expression)
|
138
131
|
end
|
139
132
|
end
|
140
133
|
|
141
134
|
context 'string' do
|
142
|
-
assert_generates '?c',
|
143
|
-
assert_generates '"foo" "bar"',
|
144
|
-
assert_generates '
|
135
|
+
assert_generates '?c', '"c"'
|
136
|
+
assert_generates '"foo" "bar"', '"#{"foo"}#{"bar"}"'
|
137
|
+
assert_generates '"foo" "bar #{baz}"', '"#{"foo"}#{"#{"bar "}#{baz}"}"'
|
138
|
+
assert_generates '%Q(foo"#{@bar})', '"#{"foo\\""}#{@bar}"'
|
139
|
+
assert_generates '"foo#{1}bar"', '"#{"foo"}#{1}#{"bar"}"'
|
140
|
+
assert_generates '"\\\\#{}"', '"#{"\\\\"}#{}"'
|
141
|
+
assert_generates '"#{}\#{}"', '"#{}#{"\#{}"}"'
|
142
|
+
assert_generates '"\#{}#{}"', '"#{"\#{}"}#{}"'
|
145
143
|
assert_terminated '"\""'
|
146
|
-
assert_terminated '"foo#{1}bar"'
|
147
|
-
assert_terminated '"\"#{@a}"'
|
148
|
-
assert_terminated '"\\\\#{}"'
|
149
144
|
assert_terminated '"foo bar"'
|
150
145
|
assert_terminated '"foo\nbar"'
|
151
|
-
assert_terminated '"foo bar #{}"'
|
152
|
-
assert_terminated '"foo\nbar #{}"'
|
153
|
-
assert_terminated '"#{}\#{}"'
|
154
|
-
assert_terminated '"\#{}#{}"'
|
155
146
|
# Within indentation
|
156
147
|
assert_generates <<-'RUBY', <<-'RUBY'
|
157
148
|
if foo
|
@@ -161,21 +152,17 @@ describe Unparser do
|
|
161
152
|
end
|
162
153
|
RUBY
|
163
154
|
if foo
|
164
|
-
"\n #{foo}\n "
|
155
|
+
"#{"\n"}#{" "}#{foo}#{"\n"}#{" "}"
|
165
156
|
end
|
166
157
|
RUBY
|
167
|
-
|
168
|
-
assert_terminated '"foo#{@bar}"'
|
169
|
-
assert_terminated '"fo\no#{bar}b\naz"'
|
170
158
|
end
|
171
159
|
|
172
160
|
context 'execute string' do
|
173
|
-
|
174
|
-
|
175
|
-
assert_generates '%x(\))',
|
176
|
-
|
177
|
-
|
178
|
-
assert_terminated '`"`'
|
161
|
+
assert_generates '`foo`', '`#{"foo"}`'
|
162
|
+
assert_generates '`foo#{@bar}`', '`#{"foo"}#{@bar}`'
|
163
|
+
assert_generates '%x(\))', '`#{")"}`'
|
164
|
+
assert_generates '%x(`)', '`#{"`"}`'
|
165
|
+
assert_generates '`"`', '`#{"\\""}`'
|
179
166
|
end
|
180
167
|
|
181
168
|
context 'symbol' do
|
@@ -189,12 +176,10 @@ describe Unparser do
|
|
189
176
|
|
190
177
|
context 'regexp' do
|
191
178
|
assert_terminated '/foo/'
|
192
|
-
assert_terminated %q(/[\x80-\xff]+/), %w(1.9)
|
193
179
|
assert_terminated %q(/[^-+',.\/:@[:alnum:]\[\]]+/)
|
194
180
|
assert_terminated '/foo#{@bar}/'
|
195
181
|
assert_terminated '/foo#{@bar}/imx'
|
196
|
-
assert_terminated '/#{"\
|
197
|
-
assert_terminated '/#{"\u0000"}/', %w(2.0 2.1)
|
182
|
+
assert_terminated '/#{"\u0000"}/'
|
198
183
|
assert_terminated "/\n/"
|
199
184
|
assert_terminated '/\n/'
|
200
185
|
assert_terminated "/\n/x"
|
@@ -212,11 +197,8 @@ describe Unparser do
|
|
212
197
|
end
|
213
198
|
|
214
199
|
context 'dynamic symbol' do
|
215
|
-
|
216
|
-
|
217
|
-
assert_terminated ':"#{bar}foo"'
|
218
|
-
assert_terminated ':"#{"foo"}"'
|
219
|
-
assert_terminated ':"foo#{bar}"'
|
200
|
+
assert_generates ':"foo#{bar}baz"', ':"#{"foo"}#{bar}#{"baz"}"'
|
201
|
+
assert_source ':"#{"foo"}"'
|
220
202
|
end
|
221
203
|
|
222
204
|
context 'irange' do
|
@@ -424,6 +406,11 @@ describe Unparser do
|
|
424
406
|
end
|
425
407
|
end
|
426
408
|
|
409
|
+
context 'conditional send (csend)' do
|
410
|
+
assert_terminated 'a&.b', %w(2.3)
|
411
|
+
assert_terminated 'a&.b(c)', %w(2.3)
|
412
|
+
end
|
413
|
+
|
427
414
|
context 'send' do
|
428
415
|
assert_terminated 'foo'
|
429
416
|
assert_terminated 'self.foo'
|
@@ -1088,22 +1075,11 @@ describe Unparser do
|
|
1088
1075
|
end
|
1089
1076
|
RUBY
|
1090
1077
|
|
1091
|
-
assert_source <<-'RUBY'
|
1092
|
-
def foo(bar, baz = true, foo)
|
1093
|
-
bar
|
1094
|
-
end
|
1095
|
-
RUBY
|
1096
|
-
|
1097
|
-
assert_source <<-'RUBY', %w(2.1)
|
1078
|
+
assert_source <<-'RUBY'
|
1098
1079
|
def foo(bar: 1)
|
1099
1080
|
end
|
1100
1081
|
RUBY
|
1101
1082
|
|
1102
|
-
assert_source <<-'RUBY', %w(2.0)
|
1103
|
-
def foo(**bar)
|
1104
|
-
end
|
1105
|
-
RUBY
|
1106
|
-
|
1107
1083
|
assert_source <<-'RUBY'
|
1108
1084
|
def foo(*)
|
1109
1085
|
bar
|
data/unparser.gemspec
CHANGED
@@ -1,29 +1,32 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
1
|
Gem::Specification.new do |gem|
|
4
|
-
gem.name
|
5
|
-
gem.version
|
2
|
+
gem.name = 'unparser'
|
3
|
+
gem.version = '0.2.5'
|
4
|
+
|
5
|
+
gem.authors = ['Markus Schirp']
|
6
|
+
gem.email = 'mbj@schirp-dso.com'
|
7
|
+
gem.summary = 'Generate equivalent source for parser gem AST nodes'
|
6
8
|
|
7
|
-
gem.authors = ['Markus Schirp']
|
8
|
-
gem.email = 'mbj@schir-dso.com'
|
9
|
-
gem.summary = 'Generate equivalent source for parser gem AST nodes'
|
10
9
|
gem.description = gem.summary
|
11
|
-
gem.homepage
|
12
|
-
gem.license
|
10
|
+
gem.homepage = 'http://github.com/mbj/unparser'
|
11
|
+
gem.license = 'MIT'
|
13
12
|
|
14
13
|
gem.files = `git ls-files`.split("\n")
|
15
14
|
gem.test_files = `git ls-files -- {spec,features}/*`.split("\n")
|
16
|
-
gem.require_paths = %w
|
17
|
-
gem.extra_rdoc_files = %w
|
18
|
-
gem.executables = [
|
15
|
+
gem.require_paths = %w[lib]
|
16
|
+
gem.extra_rdoc_files = %w[README.md]
|
17
|
+
gem.executables = %w[unparser]
|
19
18
|
|
20
|
-
gem.required_ruby_version = '>= 1
|
19
|
+
gem.required_ruby_version = '>= 2.1'
|
21
20
|
|
22
|
-
gem.add_dependency('
|
23
|
-
gem.add_dependency('procto', '~> 0.0.2')
|
24
|
-
gem.add_dependency('concord', '~> 0.1.5')
|
21
|
+
gem.add_dependency('abstract_type', '~> 0.0.7')
|
25
22
|
gem.add_dependency('adamantium', '~> 0.2.0')
|
26
23
|
gem.add_dependency('equalizer', '~> 0.0.9')
|
27
|
-
gem.add_dependency('abstract_type', '~> 0.0.7')
|
28
24
|
gem.add_dependency('diff-lcs', '~> 1.2.5')
|
25
|
+
gem.add_dependency('concord', '~> 0.1.5')
|
26
|
+
gem.add_dependency('parser', '~> 2.3.0')
|
27
|
+
gem.add_dependency('procto', '~> 0.0.2')
|
28
|
+
|
29
|
+
gem.add_development_dependency('anima', '~> 0.3.0')
|
30
|
+
gem.add_development_dependency('devtools', '~> 0.1.3')
|
31
|
+
gem.add_development_dependency('morpher', '~> 0.2.6')
|
29
32
|
end
|
metadata
CHANGED
@@ -1,43 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unparser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: abstract_type
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.0.7
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.0.7
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: adamantium
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.0
|
33
|
+
version: 0.2.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.0
|
40
|
+
version: 0.2.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: equalizer
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.0.9
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.0.9
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: diff-lcs
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.2.5
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.2.5
|
41
69
|
- !ruby/object:Gem::Dependency
|
42
70
|
name: concord
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,63 +81,77 @@ dependencies:
|
|
53
81
|
- !ruby/object:Gem::Version
|
54
82
|
version: 0.1.5
|
55
83
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
84
|
+
name: parser
|
57
85
|
requirement: !ruby/object:Gem::Requirement
|
58
86
|
requirements:
|
59
87
|
- - "~>"
|
60
88
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
89
|
+
version: 2.3.0
|
62
90
|
type: :runtime
|
63
91
|
prerelease: false
|
64
92
|
version_requirements: !ruby/object:Gem::Requirement
|
65
93
|
requirements:
|
66
94
|
- - "~>"
|
67
95
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
96
|
+
version: 2.3.0
|
69
97
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
98
|
+
name: procto
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|
72
100
|
requirements:
|
73
101
|
- - "~>"
|
74
102
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.0.
|
103
|
+
version: 0.0.2
|
76
104
|
type: :runtime
|
77
105
|
prerelease: false
|
78
106
|
version_requirements: !ruby/object:Gem::Requirement
|
79
107
|
requirements:
|
80
108
|
- - "~>"
|
81
109
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.0.
|
110
|
+
version: 0.0.2
|
83
111
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
112
|
+
name: anima
|
85
113
|
requirement: !ruby/object:Gem::Requirement
|
86
114
|
requirements:
|
87
115
|
- - "~>"
|
88
116
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.0
|
90
|
-
type: :
|
117
|
+
version: 0.3.0
|
118
|
+
type: :development
|
91
119
|
prerelease: false
|
92
120
|
version_requirements: !ruby/object:Gem::Requirement
|
93
121
|
requirements:
|
94
122
|
- - "~>"
|
95
123
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.0
|
124
|
+
version: 0.3.0
|
97
125
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
126
|
+
name: devtools
|
99
127
|
requirement: !ruby/object:Gem::Requirement
|
100
128
|
requirements:
|
101
129
|
- - "~>"
|
102
130
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
104
|
-
type: :
|
131
|
+
version: 0.1.3
|
132
|
+
type: :development
|
105
133
|
prerelease: false
|
106
134
|
version_requirements: !ruby/object:Gem::Requirement
|
107
135
|
requirements:
|
108
136
|
- - "~>"
|
109
137
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
138
|
+
version: 0.1.3
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: morpher
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.2.6
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 0.2.6
|
111
153
|
description: Generate equivalent source for parser gem AST nodes
|
112
|
-
email: mbj@
|
154
|
+
email: mbj@schirp-dso.com
|
113
155
|
executables:
|
114
156
|
- unparser
|
115
157
|
extensions: []
|
@@ -119,14 +161,11 @@ files:
|
|
119
161
|
- ".gitignore"
|
120
162
|
- ".rspec"
|
121
163
|
- ".rubocop.yml"
|
122
|
-
- ".travis.yml"
|
123
164
|
- Changelog.md
|
124
165
|
- Gemfile
|
125
|
-
- Guardfile
|
126
166
|
- LICENSE
|
127
167
|
- README.md
|
128
168
|
- Rakefile
|
129
|
-
- TODO
|
130
169
|
- bin/unparser
|
131
170
|
- circle.yml
|
132
171
|
- config/devtools.yml
|
@@ -189,6 +228,7 @@ files:
|
|
189
228
|
- lib/unparser/emitter/send/arguments.rb
|
190
229
|
- lib/unparser/emitter/send/attribute_assignment.rb
|
191
230
|
- lib/unparser/emitter/send/binary.rb
|
231
|
+
- lib/unparser/emitter/send/conditional.rb
|
192
232
|
- lib/unparser/emitter/send/index.rb
|
193
233
|
- lib/unparser/emitter/send/regular.rb
|
194
234
|
- lib/unparser/emitter/send/unary.rb
|
@@ -230,7 +270,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
230
270
|
requirements:
|
231
271
|
- - ">="
|
232
272
|
- !ruby/object:Gem::Version
|
233
|
-
version: 1
|
273
|
+
version: '2.1'
|
234
274
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
235
275
|
requirements:
|
236
276
|
- - ">="
|
@@ -238,7 +278,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
238
278
|
version: '0'
|
239
279
|
requirements: []
|
240
280
|
rubyforge_project:
|
241
|
-
rubygems_version: 2.4.5
|
281
|
+
rubygems_version: 2.4.5.1
|
242
282
|
signing_key:
|
243
283
|
specification_version: 4
|
244
284
|
summary: Generate equivalent source for parser gem AST nodes
|
@@ -260,3 +300,4 @@ test_files:
|
|
260
300
|
- spec/unit/unparser/comments/take_eol_comments_spec.rb
|
261
301
|
- spec/unit/unparser/emitter/class_methods/handle_spec.rb
|
262
302
|
- spec/unit/unparser_spec.rb
|
303
|
+
has_rdoc:
|