foreplay 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/foreplay/utility.rb +1 -1
- data/lib/foreplay/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: 07ca709d761446e72d95b0447ca9787610cd9b6a
|
|
4
|
+
data.tar.gz: 8defdaceb7903d960183454f01ce53c374e316bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0acd3b667a835c3890d7a3f6fc09b2dab89576530cca186cc97d841b07fb7f7a22f1c87383682c064cf410291e05dc459676e4e99febfb153181ce55410b976e
|
|
7
|
+
data.tar.gz: e55599a8b60030d874e5b42dcb73ff4aedf55eb2cba38bbbe3be32ade02502badc805b35bd3b249f16327d5060e60212d5ea76a37a081fa3640fedfbe53e46e3
|
data/lib/foreplay/utility.rb
CHANGED
|
@@ -8,7 +8,7 @@ module Foreplay
|
|
|
8
8
|
# #=> {:x=>{:y=>[4, 5, 6, 7, 8, 9]}, :z=>[7, 8, 9, "xyz"]}
|
|
9
9
|
def self.supermerge(hash, other_hash)
|
|
10
10
|
fail 'supermerge only works if you pass two hashes. '\
|
|
11
|
-
|
|
11
|
+
"You passed a #{hash.class} and a #{other_hash.class}." unless hash.is_a?(Hash) && other_hash.is_a?(Hash)
|
|
12
12
|
|
|
13
13
|
new_hash = hash.deep_dup.with_indifferent_access
|
|
14
14
|
|
data/lib/foreplay/version.rb
CHANGED