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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0819d6586009fdebeaa3868941be855b66d7398
4
- data.tar.gz: 020111592ccd4940fcc72e8fa59db7e6cf830b89
3
+ metadata.gz: 2dd175b95f73410825d21bff60620ee1dd181b35
4
+ data.tar.gz: ae8beb84f7d6bfe0585872c96bf9e70a2d6dc6a5
5
5
  SHA512:
6
- metadata.gz: b01db66ef163643b0d16472e7ee3e5381cd38f521a4b6aa0e198e710aa8ecdf83c1ac79658f55db39519bf4b5e5b7b7eaaac647a1df02539082ae6d19e49372d
7
- data.tar.gz: a645799625a692f4797be6d06b3f10153add8f7a0285f01d8d45918bdde529fa75f76219af4f7d74977f31ecb07be1f0f4bf177c391f6f3870e0c371e896ce21
6
+ metadata.gz: 53fb731200fa8355145f007f8b34675ea31d6bd6b485de16fec92f3d818eee7ce920736e29e12de73a7965464c815bdf94a2f38a0ba7914355a51b81fdaa7158
7
+ data.tar.gz: 042c6a8a3396b0c53dd5466f5e60bac1310125e29044e9c691386fc01122912464485579fccd3a0b24717fc9c450fcfaf7d7ab03645a1580fffc7ae933581e60
@@ -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' unless hash.is_a?(Hash) && other_hash.is_a?(Hash)
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
 
@@ -1,3 +1,3 @@
1
1
  module Foreplay
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreplay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xenapto