relation_builder 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/relation_builder/ext_deep_merge.rb +3 -1
- data/lib/relation_builder/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: 7ad5ab272d03b5726312fd4f2860e83223e57b70
|
4
|
+
data.tar.gz: c1607b93656e781969010eb132be7a10d301b0d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6fcdb3bc0bcab0ba20933416f1dc39527978100a52ed1886a40264718d2facf096c5693713262322853e570740c3bfa8e25577c388216fc8296f13a2706906f
|
7
|
+
data.tar.gz: 7300049cc230634f5f831330c9136a957fb02da58441f737090e12666ccdf61dffad267ec678c12d3a63b09f72173e069ea2dc7c6fa9fb36bc50a22483c68807
|
data/README.md
CHANGED
@@ -3,7 +3,9 @@ module RelationBuilder
|
|
3
3
|
# Alternative for native method of Hash
|
4
4
|
# It call block for any coincide keys even if values is Hash too
|
5
5
|
def ext_deep_merge(other_hash, &block)
|
6
|
-
dup
|
6
|
+
ext_hash = dup
|
7
|
+
ext_hash.send(:extend, RelationBuilder::ExtDeepMerge) unless ext_hash.is_a? RelationBuilder::ExtDeepMerge
|
8
|
+
ext_hash.ext_deep_merge!(other_hash, &block)
|
7
9
|
end
|
8
10
|
|
9
11
|
# Same as +ext_deep_merge+, but modifies +self+.
|