saxlsx 1.3.1 → 1.4.0

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: 850d7678a428facb3540f2ede647e9c86abd370b
4
- data.tar.gz: 3115277cae3bd74a25d25d9079ae7c1187663d07
3
+ metadata.gz: 60f470276c74406d71c2f44b06f00eeb5f66e588
4
+ data.tar.gz: 093d8b41c50aa2481242dbad3caa95509ed4cfc6
5
5
  SHA512:
6
- metadata.gz: d1bd7ce2c41e5004cac2f04a65164358082b53b24c7d536534e999815ce9c3cf1360d40b92e738c0b31b28b89a0ef6bc263b15a5c188475af80cfaeaae321ef1
7
- data.tar.gz: 4cb3aaab6197f53c6c90fb025c6322091b6b3febaf4d57a2168cc451a04328310f525967e92665855c99bf56079e33ad9add5a6cbac3edc8765a4ac0a000ca57
6
+ metadata.gz: 9cc7354ac2b7dda2d58d0d9dee4535cc60d658cea61efd6db1dd8f9b3721ca8c634b8145c282256044d269a9029d1bfb2104da5378c02bec4b74712be9a6824e
7
+ data.tar.gz: 924c0e4a8227665786f0b1a6b884dd97a10e7950e35746b478ae056bf14060e5bce8d976e6678a6f539d8187450af33848d8929f3f7248bd59bb6c5db0e6f76a
@@ -110,12 +110,10 @@ module Saxlsx
110
110
  DateTime.new(date.year, date.month, date.day, date.hour, date.minute, date.second)
111
111
  when :fixnum
112
112
  text.to_i
113
- when :float
113
+ when :float, :percentage
114
114
  text.to_f
115
115
  when :bignum
116
116
  BigDecimal.new(text)
117
- when :percentage
118
- text.to_f / 100
119
117
  else
120
118
  if @current_type == 'n'
121
119
  text.to_f
@@ -150,4 +148,4 @@ module Saxlsx
150
148
  end
151
149
  end
152
150
  end
153
- end
151
+ end
@@ -1,3 +1,3 @@
1
1
  module Saxlsx
2
- VERSION = '1.3.1'
2
+ VERSION = '1.4.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saxlsx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edgars Beigarts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-01 00:00:00.000000000 Z
11
+ date: 2015-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip