unparser 0.1.8 → 0.1.9

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: d247e782f83bba8d99fdba92eb8cf9fb010ea6cf
4
- data.tar.gz: 51ead40ddaae1b6424a80d9e9ade1617b3189209
3
+ metadata.gz: a121bb510d3b91c074428c68acea8438039c5aef
4
+ data.tar.gz: dba0b6b1581e9c836aba08636caa16eb4568b115
5
5
  SHA512:
6
- metadata.gz: 3a5d334a76e0cab7091514c88ad8abcb12b56c2a7553eb22e4f74f79b893353a6bbbbf68fd04f3fd36528320731a70bb1517b0f8116c994d69a0643881d79fe4
7
- data.tar.gz: 7549efa3f744f4190aef927f38f1467667d911a0b123ff4d37e014506d7e93c854a892863a22f8b26c46a4e4f8f36bfe384568a2355bcf485e316f350508b00e
6
+ metadata.gz: 2bacdbaebd34a249353a85597a13be21df7d9026676c0f44460a4dc7c9dc8922ca92c731cbc26af1b1716b242f2535b779be63f30bedd399b7b601b098165097
7
+ data.tar.gz: df148e906844b84143ae3ccf505b9d4b087babcae7e9df977cd8b0e8733a4e6618e5154378253bf8d30ba1ac75a272f090d312d6b07ab9ddc30e151a29c91bb9
@@ -7,8 +7,8 @@ rvm:
7
7
  - jruby
8
8
  - rbx
9
9
  matrix:
10
- allowed_failures:
11
- rvm: rbx
10
+ allow_failures:
11
+ - rvm: rbx
12
12
  notifications:
13
13
  irc:
14
14
  channels:
@@ -1,8 +1,12 @@
1
- # v0.1.8 2013-01-xx
1
+ # v0.1.9 2014-01-14
2
+
3
+ * Fix emit of proc { |(a) }
4
+
5
+ # v0.1.8 2014-01-11
2
6
 
3
7
  * Fix all bugs found while round tripping rubyspec.
4
8
 
5
- # v0.1.7 2013-12-31
9
+ # v0.1.7 2014-01-03
6
10
 
7
11
  * Add back support for root nodes of type resbody https://github.com/mbj/unparser/issues/24
8
12
 
@@ -146,7 +146,7 @@ module Unparser
146
146
  delimited(children)
147
147
  end
148
148
 
149
- if children.one? && !NO_COMMA.include?(children.first.type)
149
+ if children.one? && !NO_COMMA.include?(children.first.type) && parent_type != :arg_expr
150
150
  write(',')
151
151
  end
152
152
  end
@@ -423,6 +423,12 @@ describe Unparser do
423
423
  foo.bar(*args)
424
424
  RUBY
425
425
 
426
+ assert_source <<-'RUBY'
427
+ foo.bar do |(a)|
428
+ d
429
+ end
430
+ RUBY
431
+
426
432
  assert_source <<-'RUBY'
427
433
  foo.bar do |(a, b), c|
428
434
  d
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'unparser'
5
- gem.version = '0.1.8'
5
+ gem.version = '0.1.9'
6
6
 
7
7
  gem.authors = ['Markus Schirp']
8
8
  gem.email = 'mbj@schir-dso.com'
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.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-11 00:00:00.000000000 Z
11
+ date: 2014-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser