hashr 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hashr (0.0.17)
4
+ hashr (0.0.18)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/lib/hashr.rb CHANGED
@@ -35,6 +35,8 @@ class Hashr < Hash
35
35
  end
36
36
  end
37
37
 
38
+ undef :id if method_defined?(:id) # undefine deprecated method #id on 1.8.x
39
+
38
40
  def initialize(data = {}, definition = self.class.definition, &block)
39
41
  replace((deep_hashrize(definition.deep_merge((data || {}).deep_symbolize_keys))))
40
42
  deep_defaultize(self)
data/lib/hashr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Hashr < Hash
2
- VERSION = '0.0.18'
2
+ VERSION = '0.0.19'
3
3
  end
metadata CHANGED
@@ -2,36 +2,36 @@
2
2
  name: hashr
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.18
5
+ version: 0.0.19
6
6
  platform: ruby
7
7
  authors:
8
8
  - Sven Fuchs
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-27 00:00:00.000000000 +01:00
12
+ date: 2011-11-30 00:00:00.000000000 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
17
- version_requirements: &2530 !ruby/object:Gem::Requirement
17
+ version_requirements: &2534 !ruby/object:Gem::Requirement
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: '0'
22
22
  none: false
23
- requirement: *2530
23
+ requirement: *2534
24
24
  prerelease: false
25
25
  type: :development
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: test_declarative
28
- version_requirements: &2548 !ruby/object:Gem::Requirement
28
+ version_requirements: &2552 !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - ! '>='
31
31
  - !ruby/object:Gem::Version
32
32
  version: 0.0.2
33
33
  none: false
34
- requirement: *2548
34
+ requirement: *2552
35
35
  prerelease: false
36
36
  type: :development
37
37
  description: Simple Hash extension to make working with nested hashes (e.g. for configuration) easier and less error-prone.