hashlib 0.0.14 → 0.0.15

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 +4 -1
  2. metadata +1 -1
data/lib/hashlib.rb CHANGED
@@ -17,9 +17,12 @@ class Hash
17
17
 
18
18
  # make path an array if not already
19
19
  if not path.is_a?(Array)
20
- path = path.split('.')
20
+ path = path.to_s.split('.')
21
21
  end
22
22
 
23
+ # stringify path components
24
+ path.collect!{|i| i.to_s }
25
+
23
26
  # step through path components...
24
27
  path.each_index do |i|
25
28
  # hashes: if the current path component is in the hash, set the pointer
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.14
4
+ version: 0.0.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: