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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2ff1ce64033c81e09c4a5b605ed2b97721ed531eb055fbaea8eca9d427812ff
4
- data.tar.gz: b4559f815eb9c6e28641d07bf846620a2008f6aed815a618690b6b2c725ca851
3
+ metadata.gz: 2095e613a650d56e432d05bacc20c6a5204cebbd478115cea18721ec47685af3
4
+ data.tar.gz: 18a2e07706a7dfd68990a18f009c5ed662371d707932d54b1bfe5fcf95954e7f
5
5
  SHA512:
6
- metadata.gz: 20549c0ec499f1160a99cdb5815443cc742860a8e38d6aadd64ce4a1709e9010f63369c33576c871a73180abff5950c966c3fdf665c2897ae3fddcc4c9238126
7
- data.tar.gz: a85d6c1fd0215934f53a736c7d41b8ed783ace9e42c8664dd1c953d68fd87d31484dc750d204649c666b27a51651070671ae05dc54571269cf267b23c024470d
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
- dup.deep_merge!(other_hash, &block)
22
+ deep_dup.deep_merge!(other_hash, &block)
19
23
  end
20
24
 
21
25
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GorillaPatch
4
- VERSION = '3.0.0'
4
+ VERSION = '3.0.1'
5
5
  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: 3.0.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-05-15 00:00:00.000000000 Z
11
+ date: 2018-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: codecov