hash_dot 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hash.rb +7 -0
- data/lib/hash_dot/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3b7b16cb12b7532c526d7d2b8c40c86d5eb1dd4
|
4
|
+
data.tar.gz: 9c1d9e081cd58f95857a4a54afd71629882861db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c11482797e83f68fa6a5744c0107c54a211cc05be8f2b16904802ebdfe1ed0e0892f483f86796b2e7249ae2e8cc93c5ade5d8338db8d37674d85f71b5de07c5
|
7
|
+
data.tar.gz: c43f690063572e9fbacc2bdbca857f8476a2c83cafde22190c95200fe58e1d733e9a972f07bed77c7e8e41a82ffbf96a64b21482d6cbb4b4b1dea1664b997e39
|
data/lib/hash.rb
CHANGED
@@ -25,6 +25,13 @@ class Hash
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
+
def respond_to?(method, include_all=false)
|
29
|
+
return super(method, include_all) unless to_dot?
|
30
|
+
prop = create_prop(method)
|
31
|
+
return true if key?(prop)
|
32
|
+
super(method, include_all)
|
33
|
+
end
|
34
|
+
|
28
35
|
private
|
29
36
|
|
30
37
|
def dotify_hash(hash)
|
data/lib/hash_dot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hash_dot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Steel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
142
|
rubyforge_project:
|
143
|
-
rubygems_version: 2.
|
143
|
+
rubygems_version: 2.5.1
|
144
144
|
signing_key:
|
145
145
|
specification_version: 4
|
146
146
|
summary: Use dot syntax with Ruby hashes.
|