hashlib 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/hashlib.rb +3 -3
  2. metadata +1 -1
data/lib/hashlib.rb CHANGED
@@ -54,10 +54,10 @@ class Hash
54
54
  root = root[p.to_s]
55
55
  end
56
56
 
57
- if value
58
- root[path.last.to_s] = value
59
- else
57
+ if value.nil?
60
58
  root.reject!{|k,v| k.to_s == path.last.to_s }
59
+ else
60
+ root[path.last.to_s] = value
61
61
  end
62
62
 
63
63
  self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hashlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: