ast 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +12 -7
- data/ast.gemspec +1 -1
- data/lib/ast/node.rb +6 -6
- data/lib/ast/processor/mixin.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5188ebb01ae2cb91d0e2dae2e40804376d106e66
|
4
|
+
data.tar.gz: bb200f5e71042ac5557007ad49c51e4645a00961
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 397957b342a439a794431ad75d842d8d10d086dc8599dad0077451bd0fcbec5f1b9eb2f0a192958b38d1ce0a2620b53ae23977531ea2e3596c6c43868cdf290a
|
7
|
+
data.tar.gz: e019bbec67f6c1d0b34410e8f2ddd1587d2a9054e0f7dc60e240387aff5b92a7b0a3bfdea7cfeb771a8ca3544be54327f05d45bf34816f311cbc1634159e619e
|
data/.travis.yml
CHANGED
@@ -1,9 +1,14 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
- 1.8.7
|
4
|
+
- 1.9.2
|
5
|
+
- 1.9.3
|
6
|
+
- 2.0
|
7
|
+
- 2.1
|
8
|
+
- 2.2
|
9
|
+
- jruby-18mode
|
10
|
+
- jruby-19mode
|
11
|
+
- rbx-2
|
12
|
+
|
13
|
+
before_install:
|
14
|
+
- gem install bundler
|
data/ast.gemspec
CHANGED
data/lib/ast/node.rb
CHANGED
@@ -195,13 +195,13 @@ module AST
|
|
195
195
|
|
196
196
|
children.each_with_index do |child, idx|
|
197
197
|
if child.is_a?(Node) && idx >= first_node_child
|
198
|
-
sexp
|
198
|
+
sexp += "\n#{child.to_sexp(indent + 1)}"
|
199
199
|
else
|
200
|
-
sexp
|
200
|
+
sexp += " #{child.inspect}"
|
201
201
|
end
|
202
202
|
end
|
203
203
|
|
204
|
-
sexp
|
204
|
+
sexp += ")"
|
205
205
|
|
206
206
|
sexp
|
207
207
|
end
|
@@ -223,13 +223,13 @@ module AST
|
|
223
223
|
|
224
224
|
children.each_with_index do |child, idx|
|
225
225
|
if child.is_a?(Node) && idx >= first_node_child
|
226
|
-
sexp
|
226
|
+
sexp += ",\n#{child.inspect(indent + 1)}"
|
227
227
|
else
|
228
|
-
sexp
|
228
|
+
sexp += ", #{child.inspect}"
|
229
229
|
end
|
230
230
|
end
|
231
231
|
|
232
|
-
sexp
|
232
|
+
sexp += ")"
|
233
233
|
|
234
234
|
sexp
|
235
235
|
end
|
data/lib/ast/processor/mixin.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- whitequark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
194
|
version: '0'
|
195
195
|
requirements: []
|
196
196
|
rubyforge_project:
|
197
|
-
rubygems_version: 2.
|
197
|
+
rubygems_version: 2.5.1
|
198
198
|
signing_key:
|
199
199
|
specification_version: 4
|
200
200
|
summary: A library for working with Abstract Syntax Trees.
|