gorilla-patch 2.5.1 → 2.6.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
- SHA1:
3
- metadata.gz: c92746c534a356fac88208ce5b848c3abc7a0b39
4
- data.tar.gz: 23e6e0a2d2f06f10c42c489001acd0839816e188
2
+ SHA256:
3
+ metadata.gz: 995c3487fc306cc3a36485f5bfd0f78de9efa494c28e1ede97b476f5dae65ba8
4
+ data.tar.gz: f3bc695f1e7eea6756e4fa1bcaabebe20d9882ed9bdc5125a67feeca15d74ee1
5
5
  SHA512:
6
- metadata.gz: acd9931edc33b37a19abd82cfaefce28bbff02b3e709efce2c6e0a6a72f708a17f170158f376c22e73ea55b3ff53b312a03004468d3e670bbb9ff604092118dc
7
- data.tar.gz: 5db3c70d3f3887bdf2f3f8251e88c3dfc8274a311bd8a7b3290f2398cf86cc1ad7224588c6d3dedcb8305a4cc757317c76b83e43ab4302dd7c8097f962a44f1b
6
+ metadata.gz: 68fbda84e44f07ef95ecb53c19f57b62841ad79f4195e17134b85883e5b9042558d82f1893e4adfd22c65ce2ed27600257047b519fd762dc2fd23f8249535aad
7
+ data.tar.gz: 9bf16d93bd6b962a637347414aa85c3b36ab3045e61ab75ec5c4cc33ed1c9dd99be7af8232ad7b649087cd975666053d98a338a23ff64015654106a9884a1070
@@ -27,5 +27,13 @@ module GorillaPatch
27
27
  map { |el| el.deep_dup }
28
28
  end
29
29
  end
30
+
31
+ refine Delegator do
32
+ def deep_dup
33
+ dup
34
+ rescue NoMethodError
35
+ self
36
+ end
37
+ end
30
38
  end
31
39
  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.5.1
4
+ version: 2.6.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-09-08 00:00:00.000000000 Z
11
+ date: 2017-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  version: '0'
150
150
  requirements: []
151
151
  rubyforge_project:
152
- rubygems_version: 2.6.13
152
+ rubygems_version: 2.7.2
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: Refining core classes