hash_with_dot_access 1.0.1 → 1.1.0

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
  SHA256:
3
- metadata.gz: 61baa5454fe47c0932c64f446afd1323e5bdec09efe61f75915e42e6220fba7f
4
- data.tar.gz: aabaef1956ce4d14e1e71bbf61a27b67e9766f3655657c4db55d2743f5dd7ba4
3
+ metadata.gz: '092bd460eeea7ff05b0f88202816b6c9033b075c17a12fb6e1833aac69fe0758'
4
+ data.tar.gz: 2eb8c71c9c006f824d36af129c78e742be31de5cffbeeab832eb18a10ed4234c
5
5
  SHA512:
6
- metadata.gz: 75236c32fdc1d3137f6ebeed2f2e7151df0ff6e4dc90830879baea2066ea161d39ddb2a68bc91e276b3f3698e760852703507af7aeb28f63302bad3b74e26846
7
- data.tar.gz: a45e221e0330089834a9adb464ed6b3b4625698be3e061cee55b423b5ba554a7a3d5a91e9e9542290de3f49b9e5880ceed52f0b71fbe726ea2ed796fb60b477a
6
+ metadata.gz: 26d42ad9a129e6a89a70093805a3f00c84bcbe4b4b2f033f1f6f3dd71460987f0e7a0a74b87c2d447874a9a7552e26a0e0ab4e7f72b4d5ff2f7a5d5a204e2bad
7
+ data.tar.gz: ad4687ee73aab50f3d4a18b1f5e188a9b9fdc633e0795f25a999e2d79a74656f99915438c3e2065aa5c9451b503d5a057411bdfd3dd0e1da8edff3ab775681ad
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hash_with_dot_access (1.0.0)
4
+ hash_with_dot_access (1.0.1)
5
5
  activesupport (>= 5.0.0, < 7.0)
6
6
 
7
7
  GEM
@@ -13,6 +13,8 @@ module HashWithDotAccess
13
13
  self["#{key}".chop] = args.first
14
14
  elsif self.key?(key)
15
15
  self[key]
16
+ elsif default_proc
17
+ default_proc.call(self, key)
16
18
  else
17
19
  default
18
20
  end
@@ -1,3 +1,3 @@
1
1
  module HashWithDotAccess
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hash_with_dot_access
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bridgetown Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-01 00:00:00.000000000 Z
11
+ date: 2020-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
- rubygems_version: 3.0.6
96
+ rubygems_version: 3.0.3
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: Subclass of HashWithIndifferentAccess which provides dot access via method_missing