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.
- data/lib/dot_hash/properties.rb +2 -1
- data/lib/dot_hash/version.rb +1 -1
- metadata +3 -3
data/lib/dot_hash/properties.rb
CHANGED
@@ -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
|
-
|
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
|
|
data/lib/dot_hash/version.rb
CHANGED
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.
|
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:
|
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:
|
78
|
+
hash: 4070340156189844052
|
79
79
|
requirements: []
|
80
80
|
rubyforge_project:
|
81
81
|
rubygems_version: 1.8.24
|