hashlib 0.0.34 → 0.0.35

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/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: