primalize 0.3.1 → 0.3.2

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: e7ce9cc97150dfea980be1ffca4e85e42d323baf
4
- data.tar.gz: b0c0e1c1fe5fcd201e9582f046a3770cc70dd493
3
+ metadata.gz: e36f2c4e228676c3b667327dd6ac82cb5a35d6eb
4
+ data.tar.gz: f3787f3ea335597dc61dd7fe3b461c9e7076f3db
5
5
  SHA512:
6
- metadata.gz: 2e67761f45d105eec6da0689cda6539846bc790c974c2051053544689b38ac73e9a77e1e7aaafc838e0f35bf6f03b199157e2288c81a9ea3225ffe9d13bddef1
7
- data.tar.gz: 4a8167a0d20836c66ad17b1ade012ed40da04efe07a31032ee639c383e2fb282c33bbfb7d537302a96a1b69d977b88de116d1df5770fb9346f9af0a38459d2fa
6
+ metadata.gz: feac9b17d4d74fc748c9e1289b9173ec8782fc3b8a31e2a859c3d5c2281e03deddf02acfb173860c8eab36c0aac23a1e7966dd795b8c0cb50339baac7d1f8214
7
+ data.tar.gz: b04714ce166db915086c6da5905ea69e568780015ce7234d02821128c89bb9893c97407f05e4ed89e0dbe13f50f1ee4971a0d68ddf99ca9e7ae14cb46c287ba4
@@ -292,10 +292,10 @@ module Primalize
292
292
 
293
293
  def initialize primalizer, &coercion
294
294
  @primalizer = primalizer
295
- @coercion = coercion || proc do |obj|
295
+ @coercion = proc do |obj|
296
296
  # FIXME: this is dumb
297
297
  begin
298
- primalizer.new(obj).call
298
+ primalizer.new((coercion || DEFAULT_COERCION).call(obj)).call
299
299
  rescue ArgumentError => e
300
300
  raise TypeError.new(e)
301
301
  end
@@ -1,3 +1,3 @@
1
1
  module Primalize
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: primalize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Gaskins