hashlib 0.0.34 → 0.0.35

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 +1 -1
  2. metadata +1 -1
@@ -67,7 +67,7 @@ class Hash
67
67
 
68
68
  def rget(path, default=nil)
69
69
  path = path.split('.') if path.is_a?(String)
70
- return default if path.nil? or path.empty?
70
+ return default if path.nil? or (path.respond_to?(:empty?) and path.empty?)
71
71
 
72
72
  # arrayify all paths
73
73
  path = [*path]
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.34
4
+ version: 0.0.35
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: