hashlib 0.0.11 → 0.0.12

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 +4 -1
  2. metadata +1 -1
data/lib/hashlib.rb CHANGED
@@ -105,7 +105,8 @@ class Hash
105
105
  if v.is_a?(Hash)
106
106
  each_recurse(v, path, &block)
107
107
  else
108
- yield(k, v, path)
108
+ rv = yield(k, v, path)
109
+ root[k] = rv unless rv.nil?
109
110
  end
110
111
 
111
112
  path.pop
@@ -127,6 +128,8 @@ class Hash
127
128
  else
128
129
  unset(path) if _is_empty?(v)
129
130
  end
131
+
132
+ nil
130
133
  end
131
134
 
132
135
  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.11
4
+ version: 0.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: