nested_hash 0.2.3 → 0.2.4

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.
data/Changelog CHANGED
@@ -1,3 +1,8 @@
1
+ 2012-06-04 Guillermo Alvarez <guillermo@cientifico.net>
2
+
3
+ * nested_hash.rb (look_for): [bug] On set, the values are right now
4
+ sanitized.
5
+
1
6
  2012-05-29 Guillermo Alvarez <guillermo@cientifico.net>
2
7
 
3
8
  * nested_hash.rb (delete): Allow delete to work with top level keys
data/lib/nested_hash.rb CHANGED
@@ -40,6 +40,7 @@ class NestedHash < Hash
40
40
 
41
41
  def look_for(key,value, op = :set)
42
42
  keys = split_key(key).map{|k| sanitize_key(k)}
43
+ value = sanitize_value(value)
43
44
 
44
45
  previous = keys.shift
45
46
  top = (keys.inject(self) do |memo,key|
@@ -1,3 +1,3 @@
1
1
  class NestedHash < Hash
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
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: 17
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 3
10
- version: 0.2.3
9
+ - 4
10
+ version: 0.2.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-29 00:00:00 +00:00
18
+ date: 2012-06-04 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies: []
21
21