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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f663bf99b57b8e6bf0ba73b8630788ec64cf2b01
4
- data.tar.gz: 837a18813c62111c9a009989f40720b1a93b8dad
3
+ metadata.gz: c3b7b16cb12b7532c526d7d2b8c40c86d5eb1dd4
4
+ data.tar.gz: 9c1d9e081cd58f95857a4a54afd71629882861db
5
5
  SHA512:
6
- metadata.gz: 6b104681a233fa104b6281663782b0126d1f0a6705f9dfbb4a9a05b04c067a66a242b2e0fcfb8977547f69d2f9abaca0b5d645464524cd203bdd6606b371ec1e
7
- data.tar.gz: 7432c40f0d0c5a7eb820b1958c9e9ec41f250f6e2f364f8441576db92ba1db901d95b43368dec60eb6e98ed17ab13c22858f802a49b37afed411dde5d50a142b
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)
@@ -1,3 +1,3 @@
1
1
  module HashDot
2
- VERSION = "2.0.2".freeze
2
+ VERSION = "2.0.3".freeze
3
3
  end
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.2
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-02-28 00:00:00.000000000 Z
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.4.8
143
+ rubygems_version: 2.5.1
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Use dot syntax with Ruby hashes.