gorilla_patch 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gorilla_patch/deep_merge.rb +5 -1
- data/lib/gorilla_patch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2095e613a650d56e432d05bacc20c6a5204cebbd478115cea18721ec47685af3
|
4
|
+
data.tar.gz: 18a2e07706a7dfd68990a18f009c5ed662371d707932d54b1bfe5fcf95954e7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a1ff4b75bbdbf9964bb7bce72a2995035b647f0b41c17f4611b7fd607bcece9cdd8ff24113e884eb153201b8de67814f879764ccde58f9dc31f443c88090a1c
|
7
|
+
data.tar.gz: 26fb993fa89868c4f44da75735f9b9767b09bedf00dc3cf43e04dcbfa3ea03bdab3e59d2386aed4625cb27ee1dfeb23157b1a56b79fca0513536a1b9ec8a0716
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require_relative 'deep_dup'
|
4
|
+
|
3
5
|
module GorillaPatch
|
4
6
|
## Adding deep_merge method
|
5
7
|
module DeepMerge
|
@@ -14,8 +16,10 @@ module GorillaPatch
|
|
14
16
|
self
|
15
17
|
end
|
16
18
|
|
19
|
+
using GorillaPatch::DeepDup
|
20
|
+
|
17
21
|
def deep_merge(other_hash, &block)
|
18
|
-
|
22
|
+
deep_dup.deep_merge!(other_hash, &block)
|
19
23
|
end
|
20
24
|
|
21
25
|
private
|
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: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Popov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: codecov
|