hashlib 0.0.5 → 0.0.6

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 (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/hashlib.rb +2 -2
  3. metadata +6 -8
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 06acc20f03a87a604bf91d5f01283671a36e6c39
4
+ data.tar.gz: 0bb93e5a5453b2644c02581228cc1c1c3922febe
5
+ SHA512:
6
+ metadata.gz: 2aa8bb47afa7f884c1af8db51730260432ea630ba641e48bb39245c44589f37ed94d87148ac827ae456a53a61f6f7e4b1cb52b1b5aacb1ecfc59c068aa141a42
7
+ data.tar.gz: 4f1276cd12503aecc4a1ebd9996b35266885d2175b88fff77ab30a7e68ffb684b0f931bacc00e3ef4032572490c7302bd60fd216cf3fe075dff3f7969fbb2466
data/lib/hashlib.rb CHANGED
@@ -17,11 +17,11 @@ class Hash
17
17
 
18
18
  begin
19
19
  if not path.is_a?(Array)
20
- path = path.strip.scan(/[a-z0-9\@\_\-\+]+(?:\[[^\]]+\])?/).to_a
20
+ path = path.to_s.strip.scan(/[a-z0-9\@\_\-\+]+(?:\[[^\]]+\])?/).to_a
21
21
  end
22
22
 
23
23
  path.each do |p|
24
- x, key, subfield, subvalue = p.split(/([a-z0-9\@\_\-\+]+)(?:\[([^=]+)(?:=(.+))?\])?/i)
24
+ x, key, subfield, subvalue = p.to_s.split(/([a-z0-9\@\_\-\+]+)(?:\[([^=]+)(?:=(.+))?\])?/i)
25
25
  root = (root[key.to_s] rescue nil)
26
26
  #puts key, root.inspect
27
27
 
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hashlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
5
- prerelease:
4
+ version: 0.0.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - Gary Hetzel
@@ -22,26 +21,25 @@ files:
22
21
  - lib/hashlib.rb
23
22
  homepage: https://github.com/ghetzel/hashlib
24
23
  licenses: []
24
+ metadata: {}
25
25
  post_install_message:
26
26
  rdoc_options: []
27
27
  require_paths:
28
28
  - lib
29
29
  required_ruby_version: !ruby/object:Gem::Requirement
30
- none: false
31
30
  requirements:
32
- - - ! '>='
31
+ - - '>='
33
32
  - !ruby/object:Gem::Version
34
33
  version: '0'
35
34
  required_rubygems_version: !ruby/object:Gem::Requirement
36
- none: false
37
35
  requirements:
38
- - - ! '>='
36
+ - - '>='
39
37
  - !ruby/object:Gem::Version
40
38
  version: '0'
41
39
  requirements: []
42
40
  rubyforge_project:
43
- rubygems_version: 1.8.11
41
+ rubygems_version: 2.0.0
44
42
  signing_key:
45
- specification_version: 3
43
+ specification_version: 4
46
44
  summary: Useful utility methods for working with Ruby hashes
47
45
  test_files: []