clean-my-vomit 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/clean-my-vomit.rb +2 -1
  2. metadata +2 -2
@@ -11,7 +11,8 @@ module CleanMyVomit
11
11
  puts " "*depth + " {"
12
12
  polish(key, depth + 3)
13
13
  puts " "*depth + " }"
14
- elsif value
14
+ # NOTE: not just `value`, because `value` could be `false`, in which case we want to print it out
15
+ elsif !value.nil?
15
16
  puts " "*depth + key + " => #{value.to_s}"
16
17
  else
17
18
  puts " "*depth + key.to_s + ""
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clean-my-vomit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ cert_chain: []
12
12
  date: 2012-06-19 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: Ruby gem that makes your long, deeply nested hashes easily displayable
15
- on command-line.
15
+ in IRB.
16
16
  email: dylandrop@gmail.com
17
17
  executables: []
18
18
  extensions: []