egov_utils 0.5.1 → 0.5.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
  SHA256:
3
- metadata.gz: 2d2e1d5673dcde5b5b71dfc3c0ff99b58358b0cffd8aa96e34d08a2792d89701
4
- data.tar.gz: f98cff1bdc1746110b2be974637e3e709bb4c5d04276f817ac6c38a00ad59128
3
+ metadata.gz: 13a545ce7ff400e06685e48d14e4ed4c0c1f6008c5a8f6b4b2bf0ce1e52cd7fb
4
+ data.tar.gz: b7978ca45573830dfaa1aa73c674a6d5fdf202d409f6ed650067df7aac954468
5
5
  SHA512:
6
- metadata.gz: fbb27b66ed09a7ae7db1d8ced5521e26b21c1ba24cf07a6173969dbc9d09938bcdf22579cfa3b879bdb263ef71a2b4bc27d8b988745eabf14224b755a621762f
7
- data.tar.gz: a3c4478a134879f7598dd57eb1e476253cf3828c587aa114914809a966ab68ee61176d58d22e145cc26f3a64a9965f8f9dd58f5e63b895ab48871a79b7983089
6
+ metadata.gz: 4aa4036522744c780cba416f3c61c8e5f85c272262b7e06fda785fd5b504383116c9744c3436095749d6549acb04a7b711a82ade62bc93865d1f8fa498a6555e
7
+ data.tar.gz: ae91ff4dc19cae2be5718954983ebde5acf6924c3eaa6874b12233fc90698585edf3022b3b96e2247dc43ed48ff8cdd07207adf5dd58323e9533e2dfce5e82e5
@@ -20,7 +20,7 @@ module AzaharaSchemaCurrency
20
20
 
21
21
  def value(record)
22
22
  val = super(record)
23
- val = BigDecimal.new( val.to_s ) unless val.is_a?(BigDecimal)
23
+ val = BigDecimal.new(val.to_s.presence || 0) unless val.is_a?(BigDecimal)
24
24
  val
25
25
  end
26
26
 
@@ -1,3 +1,3 @@
1
1
  module EgovUtils
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: egov_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-14 00:00:00.000000000 Z
11
+ date: 2021-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails