unparser 0.6.8 → 0.6.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
  SHA256:
3
- metadata.gz: b8eb3401b1952a2440c918c3883832107ff77f670474d4db4ea0440e67dbe604
4
- data.tar.gz: 12f91bb86c35a08d197a66f8d626250b9614207a5c69455aa442f4943c88b164
3
+ metadata.gz: 407f4f50f5a5564a8929df018f8c90ecc690ddf39299ba14bdffda67ab531840
4
+ data.tar.gz: b9c7539c04c869987631fa2af0bda5b869e8d82f1d60833d09098e444e652e35
5
5
  SHA512:
6
- metadata.gz: 0f6f815767578d82d2090430881a331387b04d79b415fb26bd72774abc169c32c4acf5e261064c9dd47cdee7bb1fadd1fe803a8f401f575adcd94bc525fe5e83
7
- data.tar.gz: 16a9c379a394627227aefa883fc2a3aa2714053d11c5c5c15c07f00a4ec2a74291694f240bbf460ac0f85fd7e181ae355f11fe6cd7d2befcf287fa2e6f96b75f
6
+ metadata.gz: 0717a6eabb66393d2abceb08ddff625b00f6dd30bcbaff45d611db9c4dd420a5d6ba197f6305a8c21247b5fcfed95369640f344403eadf5bcdb94131a0a80c82
7
+ data.tar.gz: 4ae1fab1180431ce27f6ee17d87ea6cc41038a96f320a6fb0e92abefebb59274988796fa12b59567099d8019b27ab6bd6bb4f3f648826a1b6fe8c39704be9fb5
@@ -25,9 +25,14 @@ module Unparser
25
25
  private
26
26
 
27
27
  def dispatch
28
- visit(left)
28
+ visit(left) if left
29
29
  write(MAP.fetch(node.type))
30
- visit(right)
30
+
31
+ if right
32
+ visit(right)
33
+ else
34
+ write(';')
35
+ end
31
36
  end
32
37
  end # FlipFLop
33
38
  end # Emitter
@@ -25,7 +25,7 @@ module Unparser
25
25
  end
26
26
 
27
27
  def emit_heredoc_reminder_member(node)
28
- emitter(node.children.last).emit_heredoc_reminders
28
+ emitter(node.children.last).emit_heredoc_reminders if n_pair?(node)
29
29
  end
30
30
 
31
31
  def emit_hash_body
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.6.8
4
+ version: 0.6.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: 2023-06-15 00:00:00.000000000 Z
11
+ date: 2023-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diff-lcs
@@ -30,42 +30,42 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 3.2.0
33
+ version: 3.2.2.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 3.2.0
40
+ version: 3.2.2.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mutant
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.11.18
47
+ version: 0.11.22
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.11.18
54
+ version: 0.11.22
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: mutant-rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.11.18
61
+ version: 0.11.22
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.11.18
68
+ version: 0.11.22
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement