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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6cdbfca887166eb0de5bb781abd2203f4b888459a49a7248462898cb002a368c
4
- data.tar.gz: 57e3b5eb278aeb405f19a4aa77ac2eec0cd6f3fc824fcb7da0780b9403b500bb
3
+ metadata.gz: '007694f712c84951a00b378847984d9c2d63c11657401cbf162d2990c7390145'
4
+ data.tar.gz: cd6a21d3898fd52ad7564f4d23232a97190211a8a96c854b56d1cf05c0d34bf6
5
5
  SHA512:
6
- metadata.gz: 83d80892f95ed1b7c081a2325f36aa5462bd065e4b8d6e636b65bf0cd77a2b7566da1c7f1d119995281da6dbaa33897ae76b41e0429a2d71276ac25ad5e1a2bc
7
- data.tar.gz: 61a4e582bd7eb20f409b96fbb69f559d645bb9563d22cf07cd4b2a69e54664814e256cf8241a6fe7d8ab10f1e07bb81d7fb08d3239c726fcf2441bf25d9ca1d2
6
+ metadata.gz: e7241d399abb72fde4d602824b7e57c8eecf223b4d79b69bac273d975a79ffd970fbd64163d44ac550fdf8c04f8e2b16cc7812a2966abf73dc74a644270a2280
7
+ data.tar.gz: 15a570f713afaf041661fdb7f04f4098d7cb8093f7fdd36ee9bf568b50fbd0aff39f061f27a5393a5f91d950d573a38d32ab5700de64dcc4455c3aa9a43cf4ad
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- prettyrb (0.2.0)
4
+ prettyrb (0.3.0)
5
5
  parser (~> 2.7.0.5)
6
6
  thor
7
7
 
@@ -1,3 +1,3 @@
1
1
  module Prettyrb
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prettyrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Williams