foreplay 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/foreplay/utility.rb +2 -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: 2dd175b95f73410825d21bff60620ee1dd181b35
|
4
|
+
data.tar.gz: ae8beb84f7d6bfe0585872c96bf9e70a2d6dc6a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53fb731200fa8355145f007f8b34675ea31d6bd6b485de16fec92f3d818eee7ce920736e29e12de73a7965464c815bdf94a2f38a0ba7914355a51b81fdaa7158
|
7
|
+
data.tar.gz: 042c6a8a3396b0c53dd5466f5e60bac1310125e29044e9c691386fc01122912464485579fccd3a0b24717fc9c450fcfaf7d7ab03645a1580fffc7ae933581e60
|
data/lib/foreplay/utility.rb
CHANGED
@@ -7,7 +7,8 @@ module Foreplay
|
|
7
7
|
# h1.supermerge(h2)
|
8
8
|
# #=> {:x=>{:y=>[4, 5, 6, 7, 8, 9]}, :z=>[7, 8, 9, "xyz"]}
|
9
9
|
def self.supermerge(hash, other_hash)
|
10
|
-
fail 'supermerge only works if you pass two hashes
|
10
|
+
fail 'supermerge only works if you pass two hashes. '\
|
11
|
+
'You passed a {hash.class} and a {other_hash.class}.' unless hash.is_a?(Hash) && other_hash.is_a?(Hash)
|
11
12
|
|
12
13
|
new_hash = hash.deep_dup.with_indifferent_access
|
13
14
|
|
data/lib/foreplay/version.rb
CHANGED