gorilla-patch 2.2.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f2d2ea928c8b7555ede0e40a74318ef2f4c976e
4
- data.tar.gz: 0be9453981f83324853200d3b78c3c8774c7c26f
3
+ metadata.gz: 166b8957d1851577528fc5ace15b37554a3d4efe
4
+ data.tar.gz: bd7ca7ab6258a8a2b25532445ee86a833e306767
5
5
  SHA512:
6
- metadata.gz: f3592067dfabeb4f8484ae1567f4ea60210f7641e499767bd4eafb15cd448fed3a84e2fa6c4a328bbfc5b5a6455db6c0ee699ba9837855f0aee0ca6e06a33aa8
7
- data.tar.gz: 2181e90dd2d46872049d0b81a1ff72ef4e5ee77358ea1c9b357acff6660fce437e2262b0ec1cfe977af3dead5f55fcce36b8e5f7ffe13ea55fe6e260f773a81d
6
+ metadata.gz: 52150c868ecc11d21115b9e47a706b8180f5531c70aecc30cfafd3ed59da09bab371f810c12f2b0bd9451307379f2c1219629b32df1afb20ae794386e3b3b8c7
7
+ data.tar.gz: 5b987c30b8cd83304aafcac2a0e1d8e04a8efd7b9f07908b462bd8f55b16dcb27b706806e7312dc94d33f81a203ed580b56862f50e2e573e286a065c349815c5
@@ -0,0 +1,10 @@
1
+ module GorillaPatch
2
+ ## Allows dig with 0 arguments
3
+ module DigEmpty
4
+ refine Hash do
5
+ def dig(*keys)
6
+ keys.any? ? super : self
7
+ end
8
+ end
9
+ end
10
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gorilla-patch
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-23 00:00:00.000000000 Z
11
+ date: 2017-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -120,6 +120,7 @@ files:
120
120
  - lib/gorilla-patch/cover.rb
121
121
  - lib/gorilla-patch/deep_dup.rb
122
122
  - lib/gorilla-patch/deep_merge.rb
123
+ - lib/gorilla-patch/dig_empty.rb
123
124
  - lib/gorilla-patch/except.rb
124
125
  - lib/gorilla-patch/inflections.rb
125
126
  - lib/gorilla-patch/keys.rb