dothash 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/dothash/hash.rb +1 -3
- data/lib/dothash/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4407f726c2e756b296a9b8dc864ea6053a59c11
|
4
|
+
data.tar.gz: 094191c6ac7554a71ed122a8f8809d2e674cd2c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf1d2d027be1bd3cfb567a13d49aedf138312f30682f19effd95358291028a79f403742f8e7fe149b8de8910a9e0db71d2a7bba26825acd58f55a534ced6bebe
|
7
|
+
data.tar.gz: 83a44a64c20ab7dce984b7b6d073ee5963775bf9a23b85dfe3a09257309ab51eee0c3a295999e6e964c5cc17a34315d4332081468529fa942d750812eca76dcd
|
data/CHANGELOG.md
CHANGED
data/lib/dothash/hash.rb
CHANGED
@@ -55,10 +55,8 @@ module Dothash
|
|
55
55
|
merger = proc do |_key, v1, v2|
|
56
56
|
if v1.is_a?(::Hash) && v2.is_a?(::Hash)
|
57
57
|
v1.merge(v2, &merger)
|
58
|
-
elsif v1.is_a?(::Array) && v2.is_a?(::Array)
|
59
|
-
v1 | v2
|
60
58
|
else
|
61
|
-
|
59
|
+
v2
|
62
60
|
end
|
63
61
|
end
|
64
62
|
first.merge!(second.to_h, &merger)
|
data/lib/dothash/version.rb
CHANGED