nested_hash 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog CHANGED
@@ -1,3 +1,8 @@
1
+ 2012-05-24 Guillermo Alvarez <guillermo@cientifico.net>
2
+
3
+ * nested_hash.rb (process): [bug] When there is only one level, the key was
4
+ not sanitized. This is fixed.
5
+
1
6
  2012-05-23 Guillermo Alvarez <guillermo@cientifico.net>
2
7
 
3
8
  * nested_hash.rb (sanitize_long_key): Added the ability of sanitize the
@@ -1,3 +1,3 @@
1
1
  class NestedHash < Hash
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
data/lib/nested_hash.rb CHANGED
@@ -53,7 +53,7 @@ class NestedHash < Hash
53
53
  if key =~ /\./
54
54
  process_nested(key,value)
55
55
  else
56
- self[key] = value
56
+ self[sanitize_key(key)] = value
57
57
  end
58
58
  end
59
59
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nested_hash
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Guillermo A\xCC\x81lvarez"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-23 00:00:00 +00:00
18
+ date: 2012-05-24 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies: []
21
21