insensitive_hash 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3 @@
1
+ ### 0.0.2-3 / 2011/10/28
2
+ * Removed duplicated code in the constructor
3
+ * More tests
data/README.markdown CHANGED
@@ -45,6 +45,9 @@ ih.keys # ['DEF']
45
45
  # (Useful when processing YAML inputs)
46
46
  ih['kids'] = { :hello => [ { :world => '!!!' } ] }
47
47
  ih[:kids]['Hello'].first['WORLD'] # !!!
48
+
49
+ ih['one'] = [ [ [ { :a => { :b => { :c => 'd' } } } ] ] ]
50
+ ih['one'].first.first.first['A']['b'][:C] # 'd'
48
51
  ```
49
52
 
50
53
  ## Contributing to insensitive_hash
@@ -1,3 +1,3 @@
1
1
  class InsensitiveHash < Hash
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -5,7 +5,7 @@ class InsensitiveHash < Hash
5
5
  @key_map = {}
6
6
 
7
7
  hash.each do |key, value|
8
- self[key] = InsensitiveHash.wrap value
8
+ self[key] = value
9
9
  end
10
10
  end
11
11
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: insensitive_hash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -19,6 +19,7 @@ extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
21
  - .gitignore
22
+ - CHANGELOG.markdown
22
23
  - Gemfile
23
24
  - README.markdown
24
25
  - Rakefile