write_xlsx 1.09.2 → 1.09.3

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: c78b5986850521951ec007fd9a9e79f66ba5dc44e04a29f806e8d013733c8f30
4
- data.tar.gz: 329091c1ce7407bb69f9436a0eb232ea3b9fb88775084358d8f8c53af2e9ce36
3
+ metadata.gz: 7dea384f9a4a5af52b21f5a45abd5ae4a88b7448da7f9c9fd64e12a555536b90
4
+ data.tar.gz: 7204b2a2fd050b4cf6a970e8bb9d9e83bc8d7162d71d59728253290e407baf37
5
5
  SHA512:
6
- metadata.gz: b3897acdb3794718c0149862132773db326bc3d62397affc6623dfa49404462ef9cec421174c232d252acdc3f28804b46671307b48768720f0aa3f05d6b6458d
7
- data.tar.gz: 77124e32563e0f17f7e322d3196537cd347926427682fb184732d270077537f1eb81de30425e059a126cbe413aadbc0615f79347d058ed53cc209c0a995c9b8f
6
+ metadata.gz: 941d4e9db310aabb6b7ef7a2695945c9d2919a17fa8640664fd55b3d8461d0a63223feaccaced2d9e6f2286a6423a2092adb2c337d01055706d4ff1d4c53fff8
7
+ data.tar.gz: cf57ea36741b31fd1c25e82526d9a545179ec91266f92381b09d8d136502f72054196446ab4ead6e27a667d1eb6e656a6362c54a8aa116b5b95152354216c6ea
data/Changes CHANGED
@@ -1,5 +1,8 @@
1
1
  Change history of write_xlsx rubygem.
2
2
 
3
+ 2022-07-08 v1.09.3
4
+ Fixed issue #47. Dealing with NAN
5
+
3
6
  2022-02-14 v1.09.2
4
7
  Fixed issue #79. Worksheet#write calls the write_number
5
8
  when multi-line string has a line with only numbers.
@@ -255,7 +258,7 @@ Change history of write_xlsx rubygem.
255
258
  Fix work well in ms windows.
256
259
 
257
260
  2018-04-29 v0.85.5
258
- Added option to store hyperlink strings as string (strings_as_urls: false).
261
+ Added option to store hyperlink strings as string (strings_to_urls: false).
259
262
 
260
263
  2018-04-29 v0.85.4
261
264
  Added option to store hyperlink strings as string (urls_as_strings).
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012-2021 Hideo NAKAMURA
1
+ Copyright (c) 2012-2022 Hideo NAKAMURA
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -85,7 +85,7 @@ the first worksheet in an Excel XML spreadsheet called ruby.xlsx:
85
85
  Original Perl module was written by John McNamara(jmcnamara@cpan.org).
86
86
 
87
87
  Converted to ruby by Hideo NAKAMURA(nakamrua.hideo@gmail.com)
88
- Copyright (c) 2012-2021 Hideo NAKAMURA.
88
+ Copyright (c) 2012-2022 Hideo NAKAMURA.
89
89
 
90
90
  See LICENSE.txt for further details.
91
91
 
@@ -1 +1 @@
1
- WriteXLSX_VERSION = "1.09.2"
1
+ WriteXLSX_VERSION = "1.09.3"
@@ -2044,6 +2044,8 @@ module Writexlsx
2044
2044
  # Write the cell value <v> element.
2045
2045
  #
2046
2046
  def write_cell_value(value = '') #:nodoc:
2047
+ return write_cell_formula('=NA()') if !value.nil? && value.is_a?(Float) && value.nan?
2048
+
2047
2049
  value ||= ''
2048
2050
  value = value.to_i if value == value.to_i
2049
2051
  @writer.data_element('v', value)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: write_xlsx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.09.2
4
+ version: 1.09.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hideo NAKAMURA
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-14 00:00:00.000000000 Z
11
+ date: 2022-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -2166,7 +2166,7 @@ homepage: https://github.com/cxn03651/write_xlsx#readme
2166
2166
  licenses:
2167
2167
  - MIT
2168
2168
  metadata: {}
2169
- post_install_message:
2169
+ post_install_message:
2170
2170
  rdoc_options: []
2171
2171
  require_paths:
2172
2172
  - lib
@@ -2181,8 +2181,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2181
2181
  - !ruby/object:Gem::Version
2182
2182
  version: '0'
2183
2183
  requirements: []
2184
- rubygems_version: 3.1.6
2185
- signing_key:
2184
+ rubygems_version: 3.3.7
2185
+ signing_key:
2186
2186
  specification_version: 4
2187
2187
  summary: write_xlsx is a gem to create a new file in the Excel 2007+ XLSX format.
2188
2188
  test_files: