unparser 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/unparser/emitter/rescue.rb +5 -1
- data/spec/integration/unparser/spike_spec.rb +8 -0
- data/unparser.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c0bf673b2b0661aece08b25499dac1c1f369089
|
4
|
+
data.tar.gz: 87a4c00fde458007e2806eb1df0d66df19c3be17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64863326209e7383f98baa810498c2bfe06133a32529f056685e8c619b3aa82b21b6f670c13368d390e832881d73ffd38346ff48cc023862027790e0e2e93788
|
7
|
+
data.tar.gz: c62b0efea4557f341335eb6aa6127af57ea8b213387516f3970942194dcecb63b2fc736986998f9ba18b0f7d347339bed81fe0db23bdb56b5bc3546445e65c9f
|
@@ -128,6 +128,8 @@ describe Unparser, 'spike' do
|
|
128
128
|
|
129
129
|
context 'irange' do
|
130
130
|
assert_generates '1..2', %q(1..2)
|
131
|
+
assert_source '(0.0 / 0.0)..1'
|
132
|
+
assert_source '1..(0.0 / 0.0)'
|
131
133
|
end
|
132
134
|
|
133
135
|
context 'erange' do
|
@@ -401,6 +403,12 @@ describe Unparser, 'spike' do
|
|
401
403
|
end
|
402
404
|
RUBY
|
403
405
|
|
406
|
+
assert_source <<-RUBY
|
407
|
+
begin
|
408
|
+
rescue Exception => e
|
409
|
+
end
|
410
|
+
RUBY
|
411
|
+
|
404
412
|
assert_source <<-RUBY
|
405
413
|
begin
|
406
414
|
foo
|
data/unparser.gemspec
CHANGED