platformx 0.0.8.4 → 0.0.8.5

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: f9e3de007d50247c753abf81f963546521d4680a
4
- data.tar.gz: 82d4471b31580d8f3bc1e10afe1fba3eaac5f957
3
+ metadata.gz: 70d83812a435628748e05280473295b7e5feb8e1
4
+ data.tar.gz: ac1bf08817bd6f69e9c9413c3dd669da98603cc6
5
5
  SHA512:
6
- metadata.gz: b4972f0831a4adbdf5b29968b74e885b0425f490613dae043ab430626f229b7a16defd6a1448229174804585967a14420ac99e10936407853acae4e0a997babe
7
- data.tar.gz: 2032f4e3190fdd8289b1bc04b955d8d6fd751ca499bf6a60965886413251c6dcbb45a90a37762185b862db511f1b16ecb3c112063269baaff02083a9b0ff2c4a
6
+ metadata.gz: 23ddcb22a29aa52448dd6f37333838defd891da174130ac8860a4057bacf3d36cfca2b59be207bd0ba53e83bb8555a6035082a2c7a27850b73c9d6e21c308462
7
+ data.tar.gz: 5b79133b4200e52f8504f1c9870b83e60028c70b6e73675b909b8d2c3d9c94e9cd4ff4c97c26fdee2610f998ae0dcfc952ea14a0fca22eb367833de714fca883
@@ -228,10 +228,10 @@ EOS
228
228
  mask = "data-masked-input='#{mask}'"
229
229
  end
230
230
 
231
- if value == 0
231
+ if value == 0 || value.nil? || value == ""
232
232
  value = "0.00"
233
233
  else
234
- value.round(2) rescue nil
234
+ value = "%.2f" % value rescue nil
235
235
  end
236
236
 
237
237
 
@@ -1,3 +1,3 @@
1
1
  module Platformx
2
- VERSION = "0.0.8.4"
2
+ VERSION = "0.0.8.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: platformx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8.4
4
+ version: 0.0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - timmushen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-19 00:00:00.000000000 Z
11
+ date: 2017-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler