prettyrb 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/prettyrb/version.rb +1 -1
- data/lib/prettyrb/visitor.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '007694f712c84951a00b378847984d9c2d63c11657401cbf162d2990c7390145'
|
4
|
+
data.tar.gz: cd6a21d3898fd52ad7564f4d23232a97190211a8a96c854b56d1cf05c0d34bf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7241d399abb72fde4d602824b7e57c8eecf223b4d79b69bac273d975a79ffd970fbd64163d44ac550fdf8c04f8e2b16cc7812a2966abf73dc74a644270a2280
|
7
|
+
data.tar.gz: 15a570f713afaf041661fdb7f04f4098d7cb8093f7fdd36ee9bf568b50fbd0aff39f061f27a5393a5f91d950d573a38d32ab5700de64dcc4455c3aa9a43cf4ad
|
data/Gemfile.lock
CHANGED
data/lib/prettyrb/version.rb
CHANGED
data/lib/prettyrb/visitor.rb
CHANGED
@@ -142,7 +142,7 @@ module Prettyrb
|
|
142
142
|
write "end"
|
143
143
|
newline
|
144
144
|
when :const
|
145
|
-
visit node.children[0] if node.children[0]
|
145
|
+
visit node.children[0], node if node.children[0]
|
146
146
|
write node.children[1].to_s
|
147
147
|
when :casgn
|
148
148
|
write node.children[1].to_s
|
@@ -638,6 +638,8 @@ module Prettyrb
|
|
638
638
|
write node.children[0].to_s if node.children[0]
|
639
639
|
when :kwnilarg
|
640
640
|
write "**nil"
|
641
|
+
when :cbase
|
642
|
+
write "::"
|
641
643
|
else
|
642
644
|
raise "unhandled node type `#{node.type}`\nnode: #{node}"
|
643
645
|
end
|