unparser 0.0.13 → 0.0.14

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: b2af4ad071ae22e92bdf4d4221a9086cad42217f
4
- data.tar.gz: 8957aa9023ffebd5f98fc136bb217cec85cac392
3
+ metadata.gz: 11255e57313330254373b6beda0deb4377e6e463
4
+ data.tar.gz: 0f946bd5799e2e86c4f93c1014e514f75a8cf4b2
5
5
  SHA512:
6
- metadata.gz: 0549f1da0cc2ed053fc8371aec5f190853a7ef501ce42802d6c06d1ad4160d5dcb6336925f00030afb5999c60074ec92d442df4b45da0f8c5b480157a00418dd
7
- data.tar.gz: 2e04cc28508053e9b1ab98d940085c536684794be06e2467983a84ed77b7ed050f1721742b4e2af435181e5046e6a1d6de4a50e17c30966b75d613e27e399b64
6
+ metadata.gz: 6b0102c269b17bee7c295b050103b68778968ff7d5b2e51b7360e7a6d11cad94f5281375344014284fbe5c1d5459ff65323fe7a7d3a5ba91e3c683ed718929ea
7
+ data.tar.gz: e164f2beffb130ce0fecd88e2b910f728d604dbc0defdbf59262b521565fccf3743b9e22e60a2a29a2482bd0ed0cbbcc9c6eec618f3feec9e611e111e7a1381a
data/.travis.yml CHANGED
@@ -12,6 +12,6 @@ matrix:
12
12
  notifications:
13
13
  irc:
14
14
  channels:
15
- - irc.freenode.org#rom-rb
15
+ - irc.freenode.org#mutant
16
16
  on_success: never
17
17
  on_failure: change
data/config/flay.yml CHANGED
@@ -1,3 +1,3 @@
1
1
  ---
2
2
  threshold: 13
3
- total_score: 369
3
+ total_score: 377
@@ -131,8 +131,13 @@ module Unparser
131
131
  # @api private
132
132
  #
133
133
  def dispatch
134
- delimited(children)
134
+ if parent.node.type == :mlhs
135
+ parentheses { delimited(children) }
136
+ else
137
+ delimited(children)
138
+ end
135
139
  end
140
+
136
141
  end # MLHS
137
142
 
138
143
  end # Assignment
@@ -225,6 +225,7 @@ describe Unparser, 'spike' do
225
225
  assert_source '@@a, @@b = 1, 2'
226
226
  assert_source '$a, $b = 1, 2'
227
227
  assert_source 'a, b = foo'
228
+ assert_source 'a, (b, c) = 1, [2, 3]'
228
229
  end
229
230
  end
230
231
 
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.13'
5
+ s.version = '0.0.14'
6
6
 
7
7
  s.authors = ['Markus Schirp']
8
8
  s.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.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-29 00:00:00.000000000 Z
11
+ date: 2013-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser