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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ccb8ec5ec53b06f423ec478b69175df8b6d23e7
4
- data.tar.gz: 5c21e85a61a86b8a74b8e2f4765474d68e90cd57
3
+ metadata.gz: 7c0bf673b2b0661aece08b25499dac1c1f369089
4
+ data.tar.gz: 87a4c00fde458007e2806eb1df0d66df19c3be17
5
5
  SHA512:
6
- metadata.gz: d460332fd79deb26a5f077e513774e4b7609f11ed313e4c09a70ba724789ff857de7a40d4d40afc8e571d9f8e7ca02c073ccc62b3c0a71b8d952ef5baf9f5cda
7
- data.tar.gz: 050e67bb496b66d06ee75e266dd22b6539562589d63cebd6dce5ff57dcf88a688fa2250f5b9b4d99a9d71557d550f2c554067a88928e7d05556fe6437849091b
6
+ metadata.gz: 64863326209e7383f98baa810498c2bfe06133a32529f056685e8c619b3aa82b21b6f670c13368d390e832881d73ffd38346ff48cc023862027790e0e2e93788
7
+ data.tar.gz: c62b0efea4557f341335eb6aa6127af57ea8b213387516f3970942194dcecb63b2fc736986998f9ba18b0f7d347339bed81fe0db23bdb56b5bc3546445e65c9f
@@ -16,7 +16,11 @@ module Unparser
16
16
  # @api private
17
17
  #
18
18
  def dispatch
19
- visit_indented(body)
19
+ if body
20
+ visit_indented(body)
21
+ else
22
+ nl
23
+ end
20
24
  rescue_bodies.each do |child|
21
25
  visit(child)
22
26
  end
@@ -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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'unparser'
5
- s.version = '0.0.10'
5
+ s.version = '0.0.11'
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.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp