unparser 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c0bf673b2b0661aece08b25499dac1c1f369089
4
- data.tar.gz: 87a4c00fde458007e2806eb1df0d66df19c3be17
3
+ metadata.gz: fd062c08a57c611c3767f546463eccf1ba55ff11
4
+ data.tar.gz: c8b93b86e97966ce74a9ba704603c14f031dbccc
5
5
  SHA512:
6
- metadata.gz: 64863326209e7383f98baa810498c2bfe06133a32529f056685e8c619b3aa82b21b6f670c13368d390e832881d73ffd38346ff48cc023862027790e0e2e93788
7
- data.tar.gz: c62b0efea4557f341335eb6aa6127af57ea8b213387516f3970942194dcecb63b2fc736986998f9ba18b0f7d347339bed81fe0db23bdb56b5bc3546445e65c9f
6
+ metadata.gz: b735186fd0973d7493c020b9f3104150bdb13c2510eed4388c778a8b049fd7e9bd644c31e4902a0a08442e358db4fc141769542a9b1abeddefb7a7123f50c239
7
+ data.tar.gz: 78b646a7b7de358bb57abe4f3504c8116ad5938a13110a4835d1afb34ff23ee49bcb324f7cea8c39414bc6c5a80001388476788d01d088116478861e104819ff
@@ -19,7 +19,11 @@ module Unparser
19
19
  def dispatch
20
20
  visit_indented(body)
21
21
  write(K_ENSURE)
22
- visit_indented(ensure_body)
22
+ if ensure_body
23
+ visit_indented(ensure_body)
24
+ else
25
+ nl
26
+ end
23
27
  end
24
28
 
25
29
  end # Ensure
@@ -409,6 +409,13 @@ describe Unparser, 'spike' do
409
409
  end
410
410
  RUBY
411
411
 
412
+ assert_source <<-RUBY
413
+ begin
414
+ rescue
415
+ ensure
416
+ end
417
+ RUBY
418
+
412
419
  assert_source <<-RUBY
413
420
  begin
414
421
  foo
data/unparser.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'unparser'
5
- s.version = '0.0.11'
5
+ s.version = '0.0.12'
6
6
 
7
7
  s.authors = ['Markus Schirp']
8
8
  s.email = 'mbj@schir-dso.com'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unparser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp