RubyGems
npm
Organizations
Log in
Sign up
RubyGems
hashlib
Versions diffs
0.0.9 → 0.0.10
hashlib 0.0.9 → 0.0.10
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/hashlib.rb
+3
-3
metadata
+1
-1
data/lib/hashlib.rb
CHANGED
Viewed
@@ -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
Viewed
@@ -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: