latinum 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d603254177726ef91a442d285c4ba917dd6cc003
4
- data.tar.gz: bb81b377411b4ab43c8246c01c478740a0e4e8d4
3
+ metadata.gz: f81b87bb1b2a367751cce63976cc7c87d4de8ac7
4
+ data.tar.gz: 439e2c761afa9d252b1709245e908df8dbb82953
5
5
  SHA512:
6
- metadata.gz: 0ae00f87d9c4a9b0a711b0736f2be1ec2e797fa4cdeb4ffc0dcedafe550b60e736e2d1ff665100f4a8665dea9bb34015458b7b55094aa8e2014033b1f3cc1705
7
- data.tar.gz: 407e0b27c15a640b4893f70d413eb0eae70b5bcab2112c6e9af99590af9a2cda4de915740222bc332bc0653d73c1079b664a693f628fd4838643a9f9a11e0d15
6
+ metadata.gz: 07ccd05c39792e20247b58340fef9a8cd35485d6a4ff1eae197501abfa7a2a9bdbd2d8d75c9a1f4c78bfe01dfb9dbbede399b51f202505b03a973d6eaf540220
7
+ data.tar.gz: f13a621e51bc7dd993c400da6b3c92f3233edff51c4c0872a071cc38ed180f49b0c62ea6c6ba855b12d016874d9a83449c57ff933e517a5a5c8b8abc8f665652
@@ -64,7 +64,7 @@ module Latinum
64
64
  fix, frac = amount.abs.to_s('F').split(/\./, 2)
65
65
 
66
66
  # The sign of the number
67
- sign = '-' if amount.negative?
67
+ sign = '-' if amount < 0
68
68
 
69
69
  # Decimal places, e.g. the '.00' in '$10.00'
70
70
  frac = frac[0...@places].ljust(@places, @zero)
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Latinum
22
- VERSION = "1.3.0"
22
+ VERSION = "1.3.1"
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: latinum
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams