unparser 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +1 -1
- data/Changelog.md +4 -0
- data/Gemfile +5 -1
- data/Gemfile.lock +33 -32
- data/README.md +2 -2
- data/config/mutant.yml +5 -2
- data/unparser.gemspec +4 -4
- metadata +11 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27b8023ba4879d4fb484914a38e3bf2515275744a3965c5be4e050669fed819c
|
4
|
+
data.tar.gz: '0958f06e01392248f103326228a6c3ed40ff55d0f77532faad27aaba38f8b604'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6ebe89713f227671ffdc0cac31cc4de547ebb8dfdb93adc8224373ef2b304706d89b83dc87df40b93cadcf30af689f93970b949116862f8f294336219569e60
|
7
|
+
data.tar.gz: a856b12aed96ddba957eadc62d0afcea47f563e6ec2fe0da47b68e7b65ae712f8e31ceeeb42644740dad05815273d55fe850c09e0fdcc179a21969bb9d77395f
|
data/.circleci/config.yml
CHANGED
data/Changelog.md
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
GIT
|
2
|
-
remote: https://github.com/mbj/mutant
|
3
|
-
revision:
|
2
|
+
remote: https://github.com/mbj/mutant.git
|
3
|
+
revision: d1d1993427ec01cc9b57a3a87ce23a7c41456a39
|
4
|
+
branch: upgrade/dependencies
|
4
5
|
specs:
|
5
|
-
mutant (0.8.
|
6
|
+
mutant (0.8.25)
|
6
7
|
abstract_type (~> 0.0.7)
|
7
8
|
adamantium (~> 0.2.0)
|
8
|
-
anima (~> 0.3.
|
9
|
+
anima (~> 0.3.1)
|
9
10
|
ast (~> 2.2)
|
10
11
|
concord (~> 0.1.5)
|
11
12
|
diff-lcs (~> 1.3)
|
@@ -13,13 +14,12 @@ GIT
|
|
13
14
|
ice_nine (~> 0.11.1)
|
14
15
|
memoizable (~> 0.4.2)
|
15
16
|
morpher (~> 0.2.6)
|
16
|
-
parser (~> 2.
|
17
|
+
parser (~> 2.6.0)
|
17
18
|
procto (~> 0.0.2)
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
rspec-core (>= 3.4.0, < 4.0.0)
|
19
|
+
unparser (~> 0.4.2)
|
20
|
+
mutant-rspec (0.8.25)
|
21
|
+
mutant (~> 0.8.25)
|
22
|
+
rspec-core (>= 3.8.0, < 4.0.0)
|
23
23
|
|
24
24
|
PATH
|
25
25
|
remote: .
|
@@ -30,7 +30,7 @@ PATH
|
|
30
30
|
concord (~> 0.1.5)
|
31
31
|
diff-lcs (~> 1.3)
|
32
32
|
equalizer (~> 0.0.9)
|
33
|
-
parser (
|
33
|
+
parser (~> 2.6.0)
|
34
34
|
procto (~> 0.0.2)
|
35
35
|
|
36
36
|
GEM
|
@@ -40,7 +40,7 @@ GEM
|
|
40
40
|
adamantium (0.2.0)
|
41
41
|
ice_nine (~> 0.11.0)
|
42
42
|
memoizable (~> 0.4.0)
|
43
|
-
anima (0.3.
|
43
|
+
anima (0.3.1)
|
44
44
|
abstract_type (~> 0.0.7)
|
45
45
|
adamantium (~> 0.2)
|
46
46
|
equalizer (~> 0.0.11)
|
@@ -58,22 +58,22 @@ GEM
|
|
58
58
|
equalizer (~> 0.0.9)
|
59
59
|
descendants_tracker (0.0.4)
|
60
60
|
thread_safe (~> 0.3, >= 0.3.1)
|
61
|
-
devtools (0.1.
|
61
|
+
devtools (0.1.23)
|
62
62
|
abstract_type (~> 0.0.7)
|
63
63
|
adamantium (~> 0.2.0)
|
64
64
|
anima (~> 0.3.0)
|
65
65
|
concord (~> 0.1.5)
|
66
66
|
flay (~> 2.12.0)
|
67
67
|
flog (~> 4.6.2)
|
68
|
-
mutant (~> 0.8.
|
69
|
-
mutant-rspec (~> 0.8.
|
68
|
+
mutant (~> 0.8.24)
|
69
|
+
mutant-rspec (~> 0.8.24)
|
70
70
|
procto (~> 0.0.3)
|
71
71
|
rake (~> 12.3.0)
|
72
|
-
reek (~> 5.
|
72
|
+
reek (~> 5.3.0)
|
73
73
|
rspec (~> 3.8.0)
|
74
74
|
rspec-core (~> 3.8.0)
|
75
75
|
rspec-its (~> 1.2.0)
|
76
|
-
rubocop (~> 0.
|
76
|
+
rubocop (~> 0.61.1)
|
77
77
|
simplecov (~> 0.16.1)
|
78
78
|
yard (~> 0.9.16)
|
79
79
|
yardstick (~> 0.9.9)
|
@@ -91,8 +91,8 @@ GEM
|
|
91
91
|
ruby_parser (~> 3.1, > 3.1.0)
|
92
92
|
sexp_processor (~> 4.8)
|
93
93
|
ice_nine (0.11.2)
|
94
|
-
jaro_winkler (1.5.
|
95
|
-
json (2.
|
94
|
+
jaro_winkler (1.5.2)
|
95
|
+
json (2.2.0)
|
96
96
|
kwalify (0.7.2)
|
97
97
|
memoizable (0.4.2)
|
98
98
|
thread_safe (~> 0.3, >= 0.3.1)
|
@@ -105,20 +105,21 @@ GEM
|
|
105
105
|
equalizer (~> 0.0.9)
|
106
106
|
ice_nine (~> 0.11.0)
|
107
107
|
procto (~> 0.0.2)
|
108
|
-
parallel (1.
|
109
|
-
parser (2.
|
108
|
+
parallel (1.13.0)
|
109
|
+
parser (2.6.0.0)
|
110
110
|
ast (~> 2.4.0)
|
111
111
|
path_expander (1.0.3)
|
112
112
|
powerpack (0.1.2)
|
113
113
|
procto (0.0.3)
|
114
|
+
psych (3.1.0)
|
114
115
|
rainbow (3.0.0)
|
115
|
-
rake (12.3.
|
116
|
-
reek (5.
|
116
|
+
rake (12.3.2)
|
117
|
+
reek (5.3.1)
|
117
118
|
codeclimate-engine-rb (~> 0.4.0)
|
118
119
|
kwalify (~> 0.7.0)
|
119
|
-
parser (>= 2.5.0.0, < 2.
|
120
|
+
parser (>= 2.5.0.0, < 2.7, != 2.5.1.1)
|
121
|
+
psych (~> 3.1.0)
|
120
122
|
rainbow (>= 2.0, < 4.0)
|
121
|
-
regexp_parser (1.3.0)
|
122
123
|
rspec (3.8.0)
|
123
124
|
rspec-core (~> 3.8.0)
|
124
125
|
rspec-expectations (~> 3.8.0)
|
@@ -135,7 +136,7 @@ GEM
|
|
135
136
|
diff-lcs (>= 1.2.0, < 2.0)
|
136
137
|
rspec-support (~> 3.8.0)
|
137
138
|
rspec-support (3.8.0)
|
138
|
-
rubocop (0.
|
139
|
+
rubocop (0.61.1)
|
139
140
|
jaro_winkler (~> 1.5.1)
|
140
141
|
parallel (~> 1.10)
|
141
142
|
parser (>= 2.5, != 2.5.1.1)
|
@@ -144,7 +145,7 @@ GEM
|
|
144
145
|
ruby-progressbar (~> 1.7)
|
145
146
|
unicode-display_width (~> 1.4.0)
|
146
147
|
ruby-progressbar (1.10.0)
|
147
|
-
ruby_parser (3.
|
148
|
+
ruby_parser (3.12.0)
|
148
149
|
sexp_processor (~> 4.9)
|
149
150
|
sexp_processor (4.11.0)
|
150
151
|
simplecov (0.16.1)
|
@@ -153,13 +154,13 @@ GEM
|
|
153
154
|
simplecov-html (~> 0.10.0)
|
154
155
|
simplecov-html (0.10.2)
|
155
156
|
thread_safe (0.3.6)
|
156
|
-
unicode-display_width (1.4.
|
157
|
+
unicode-display_width (1.4.1)
|
157
158
|
virtus (1.0.5)
|
158
159
|
axiom-types (~> 0.1)
|
159
160
|
coercible (~> 1.0)
|
160
161
|
descendants_tracker (~> 0.0, >= 0.0.3)
|
161
162
|
equalizer (~> 0.0, >= 0.0.9)
|
162
|
-
yard (0.9.
|
163
|
+
yard (0.9.18)
|
163
164
|
yardstick (0.9.9)
|
164
165
|
yard (~> 0.8, >= 0.8.7.2)
|
165
166
|
|
@@ -167,11 +168,11 @@ PLATFORMS
|
|
167
168
|
ruby
|
168
169
|
|
169
170
|
DEPENDENCIES
|
170
|
-
anima (~> 0.3.
|
171
|
-
devtools (~> 0.1.
|
171
|
+
anima (~> 0.3.1)
|
172
|
+
devtools (~> 0.1.23)
|
172
173
|
morpher (~> 0.2.6)
|
173
174
|
mutant!
|
174
175
|
unparser!
|
175
176
|
|
176
177
|
BUNDLED WITH
|
177
|
-
1.17.
|
178
|
+
1.17.3
|
data/README.md
CHANGED
@@ -30,7 +30,7 @@ Usage
|
|
30
30
|
require 'parser/current'
|
31
31
|
require 'unparser'
|
32
32
|
|
33
|
-
ast =
|
33
|
+
ast = Unparser.parse('your(ruby(code))')
|
34
34
|
|
35
35
|
Unparser.unparse(ast) # => 'your(ruby(code))'
|
36
36
|
```
|
@@ -41,7 +41,7 @@ To preserve the comments from the source:
|
|
41
41
|
require 'parser/current'
|
42
42
|
require 'unparser'
|
43
43
|
|
44
|
-
ast, comments =
|
44
|
+
ast, comments = Unparser.parse_with_comments('your(ruby(code)) # with comments')
|
45
45
|
|
46
46
|
Unparser.unparse(ast, comments) # => 'your(ruby(code)) # with comments'
|
47
47
|
```
|
data/config/mutant.yml
CHANGED
data/unparser.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = 'unparser'
|
3
|
-
gem.version = '0.4.
|
3
|
+
gem.version = '0.4.3'
|
4
4
|
|
5
5
|
gem.authors = ['Markus Schirp']
|
6
6
|
gem.email = 'mbj@schirp-dso.com'
|
@@ -21,10 +21,10 @@ Gem::Specification.new do |gem|
|
|
21
21
|
gem.add_dependency('equalizer', '~> 0.0.9')
|
22
22
|
gem.add_dependency('diff-lcs', '~> 1.3')
|
23
23
|
gem.add_dependency('concord', '~> 0.1.5')
|
24
|
-
gem.add_dependency('parser', '
|
24
|
+
gem.add_dependency('parser', '~> 2.6.0')
|
25
25
|
gem.add_dependency('procto', '~> 0.0.2')
|
26
26
|
|
27
|
-
gem.add_development_dependency('anima', '~> 0.3.
|
28
|
-
gem.add_development_dependency('devtools', '~> 0.1.
|
27
|
+
gem.add_development_dependency('anima', '~> 0.3.1')
|
28
|
+
gem.add_development_dependency('devtools', '~> 0.1.23')
|
29
29
|
gem.add_development_dependency('morpher', '~> 0.2.6')
|
30
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unparser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
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: 2019-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: abstract_type
|
@@ -84,22 +84,16 @@ dependencies:
|
|
84
84
|
name: parser
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 2.3.1.2
|
90
|
-
- - "<"
|
87
|
+
- - "~>"
|
91
88
|
- !ruby/object:Gem::Version
|
92
|
-
version:
|
89
|
+
version: 2.6.0
|
93
90
|
type: :runtime
|
94
91
|
prerelease: false
|
95
92
|
version_requirements: !ruby/object:Gem::Requirement
|
96
93
|
requirements:
|
97
|
-
- - "
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
version: 2.3.1.2
|
100
|
-
- - "<"
|
94
|
+
- - "~>"
|
101
95
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
96
|
+
version: 2.6.0
|
103
97
|
- !ruby/object:Gem::Dependency
|
104
98
|
name: procto
|
105
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,28 +114,28 @@ dependencies:
|
|
120
114
|
requirements:
|
121
115
|
- - "~>"
|
122
116
|
- !ruby/object:Gem::Version
|
123
|
-
version: 0.3.
|
117
|
+
version: 0.3.1
|
124
118
|
type: :development
|
125
119
|
prerelease: false
|
126
120
|
version_requirements: !ruby/object:Gem::Requirement
|
127
121
|
requirements:
|
128
122
|
- - "~>"
|
129
123
|
- !ruby/object:Gem::Version
|
130
|
-
version: 0.3.
|
124
|
+
version: 0.3.1
|
131
125
|
- !ruby/object:Gem::Dependency
|
132
126
|
name: devtools
|
133
127
|
requirement: !ruby/object:Gem::Requirement
|
134
128
|
requirements:
|
135
129
|
- - "~>"
|
136
130
|
- !ruby/object:Gem::Version
|
137
|
-
version: 0.1.
|
131
|
+
version: 0.1.23
|
138
132
|
type: :development
|
139
133
|
prerelease: false
|
140
134
|
version_requirements: !ruby/object:Gem::Requirement
|
141
135
|
requirements:
|
142
136
|
- - "~>"
|
143
137
|
- !ruby/object:Gem::Version
|
144
|
-
version: 0.1.
|
138
|
+
version: 0.1.23
|
145
139
|
- !ruby/object:Gem::Dependency
|
146
140
|
name: morpher
|
147
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -285,8 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
285
279
|
- !ruby/object:Gem::Version
|
286
280
|
version: '0'
|
287
281
|
requirements: []
|
288
|
-
|
289
|
-
rubygems_version: 2.7.6
|
282
|
+
rubygems_version: 3.0.1
|
290
283
|
signing_key:
|
291
284
|
specification_version: 4
|
292
285
|
summary: Generate equivalent source for parser gem AST nodes
|