dot_hash 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,7 +31,8 @@ module DotHash
31
31
  def get_value(key, *args, &block)
32
32
  key = key.to_sym
33
33
  value = hash.fetch(key) { hash.send(key, *args, &block) }
34
- return value unless value.is_a?(Hash)
34
+
35
+ return value unless hash.has_key?(key) and value.is_a?(Hash)
35
36
  hash[key] = self.class.new value
36
37
  end
37
38
 
@@ -1,3 +1,3 @@
1
1
  module DotHash
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dot_hash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  version: '0'
67
67
  segments:
68
68
  - 0
69
- hash: 2623503785783135316
69
+ hash: 4070340156189844052
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  none: false
72
72
  requirements:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  segments:
77
77
  - 0
78
- hash: 2623503785783135316
78
+ hash: 4070340156189844052
79
79
  requirements: []
80
80
  rubyforge_project:
81
81
  rubygems_version: 1.8.24