weighable 0.6.0 → 0.6.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: c04f266562852781a9572cf76d3cf30135b9cb5f
4
- data.tar.gz: acd24b99e103f35723cbce335d0fd1c0f741f9eb
3
+ metadata.gz: e7ff7faabe8fef92f0beaeb070fc0b614110a7df
4
+ data.tar.gz: 5a0212d39f373ffebf1077d1a48ac8473b821372
5
5
  SHA512:
6
- metadata.gz: 7306ed225b7b733602482fe381971439b2ceac58a25526cb404544422726cb8398f0af5ba8139380982a18fcf8cd4b8b537026fdfea451e890d8ab9042a5bca2
7
- data.tar.gz: 8aa69d0efdf0ce91cf0c0204882f7cabedf95b78a15e3f6236074a192fcd1bf781807def6b61e8a1f64375a4c4be55d411548fc044f4809bd659a175b2129ae1
6
+ metadata.gz: 0cabe4371179b9235cc9832a90e07c0e61d42c9a90cea6aa5ebab8e7dbda2e4387f9bfac6bf31124a055b6b8c1e4370b9ecea1aac7ec7827a09995e5950c203d
7
+ data.tar.gz: 5201bab61c76b92bd9f263d49bc87be30a356c2bd2acc8be035d4365b8959c5fd836f10985a5f54b62280e2a27986a651287a541d6a856fee07404ccd03c5f35
@@ -22,7 +22,7 @@ module Weighable
22
22
 
23
23
  if precision.present?
24
24
  local_precision = precision.is_a?(Proc) ? instance_exec(&precision) : precision
25
- weight = weight.round(local_precision)
25
+ weight = weight.try(:round, local_precision)
26
26
  end
27
27
 
28
28
  public_send("#{column}_value=", weight.try(:value))
@@ -1,3 +1,3 @@
1
1
  module Weighable
2
- VERSION = '0.6.0'.freeze
2
+ VERSION = '0.6.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weighable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trae Robrock