write_xlsx 1.09.1 → 1.09.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +10 -0
- data/Changes +5 -1
- data/lib/write_xlsx/version.rb +1 -1
- data/lib/write_xlsx/worksheet.rb +1 -1
- data/test/perl_output/multi_line.xlsx +0 -0
- data/test/test_example_match.rb +12 -0
- metadata +4 -3
- data/keep_leading_zeros.xlsx +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c78b5986850521951ec007fd9a9e79f66ba5dc44e04a29f806e8d013733c8f30
|
4
|
+
data.tar.gz: 329091c1ce7407bb69f9436a0eb232ea3b9fb88775084358d8f8c53af2e9ce36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3897acdb3794718c0149862132773db326bc3d62397affc6623dfa49404462ef9cec421174c232d252acdc3f28804b46671307b48768720f0aa3f05d6b6458d
|
7
|
+
data.tar.gz: 77124e32563e0f17f7e322d3196537cd347926427682fb184732d270077537f1eb81de30425e059a126cbe413aadbc0615f79347d058ed53cc209c0a995c9b8f
|
data/.travis.yml
CHANGED
@@ -1,9 +1,18 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
+
- 3.0.3
|
4
|
+
- 3.0.2
|
5
|
+
- 3.0.1
|
3
6
|
- 3.0.0
|
7
|
+
- 2.7.5
|
8
|
+
- 2.7.4
|
9
|
+
- 2.7.3
|
4
10
|
- 2.7.2
|
5
11
|
- 2.7.1
|
6
12
|
- 2.7.0
|
13
|
+
- 2.6.9
|
14
|
+
- 2.6.8
|
15
|
+
- 2.6.7
|
7
16
|
- 2.6.6
|
8
17
|
- 2.6.5
|
9
18
|
- 2.6.4
|
@@ -11,6 +20,7 @@ rvm:
|
|
11
20
|
- 2.6.2
|
12
21
|
- 2.6.1
|
13
22
|
- 2.6.0
|
23
|
+
- 2.5.9
|
14
24
|
- 2.5.8
|
15
25
|
- 2.5.7
|
16
26
|
- 2.5.6
|
data/Changes
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
Change history of write_xlsx rubygem.
|
2
2
|
|
3
|
+
2022-02-14 v1.09.2
|
4
|
+
Fixed issue #79. Worksheet#write calls the write_number
|
5
|
+
when multi-line string has a line with only numbers.
|
6
|
+
|
3
7
|
2021-11-27 v1.09.1
|
4
|
-
Added Worksheet#
|
8
|
+
Added Worksheet#keep_leading_zeros method to handle '001' as string in
|
5
9
|
Worksheet#write, write_row, and write_col method.
|
6
10
|
|
7
11
|
2021-11-26 v1.09.0
|
data/lib/write_xlsx/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
WriteXLSX_VERSION = "1.09.
|
1
|
+
WriteXLSX_VERSION = "1.09.2"
|
data/lib/write_xlsx/worksheet.rb
CHANGED
@@ -902,7 +902,7 @@ module Writexlsx
|
|
902
902
|
# Match integer with leading zero(s)
|
903
903
|
elsif @leading_zeros && token =~ /^0\d*$/
|
904
904
|
write_string(*args)
|
905
|
-
elsif token =~
|
905
|
+
elsif token =~ /\A([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?\Z/
|
906
906
|
write_number(*args)
|
907
907
|
# Match formula
|
908
908
|
elsif token =~ /^=/
|
Binary file
|
data/test/test_example_match.rb
CHANGED
@@ -11,6 +11,18 @@ class TestExampleMatch < Minitest::Test
|
|
11
11
|
@tempfile.close
|
12
12
|
end
|
13
13
|
|
14
|
+
def test_multi_line
|
15
|
+
@xlsx = 'multi_line.xlsx'
|
16
|
+
workbook = WriteXLSX.new(@io)
|
17
|
+
worksheet = workbook.add_worksheet
|
18
|
+
|
19
|
+
worksheet.write(0, 0, "Hi Excel!\n1234\nHi, again!")
|
20
|
+
|
21
|
+
workbook.close
|
22
|
+
store_to_tempfile
|
23
|
+
compare_xlsx(File.join(@perl_output, @xlsx), @tempfile.path)
|
24
|
+
end
|
25
|
+
|
14
26
|
def test_a_simple
|
15
27
|
@xlsx = 'a_simple.xlsx'
|
16
28
|
# Create a new workbook called simple.xls and add a worksheet
|
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.
|
4
|
+
version: 1.09.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hideo NAKAMURA
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -175,7 +175,6 @@ files:
|
|
175
175
|
- examples/tables.rb
|
176
176
|
- examples/update_range_format_with_params.rb
|
177
177
|
- examples/vbaProject.bin
|
178
|
-
- keep_leading_zeros.xlsx
|
179
178
|
- lib/write_xlsx.rb
|
180
179
|
- lib/write_xlsx/chart.rb
|
181
180
|
- lib/write_xlsx/chart/area.rb
|
@@ -379,6 +378,7 @@ files:
|
|
379
378
|
- test/perl_output/merge4.xlsx
|
380
379
|
- test/perl_output/merge5.xlsx
|
381
380
|
- test/perl_output/merge6.xlsx
|
381
|
+
- test/perl_output/multi_line.xlsx
|
382
382
|
- test/perl_output/outline.xlsx
|
383
383
|
- test/perl_output/outline_collapsed.xlsx
|
384
384
|
- test/perl_output/panes.xlsx
|
@@ -2338,6 +2338,7 @@ test_files:
|
|
2338
2338
|
- test/perl_output/merge4.xlsx
|
2339
2339
|
- test/perl_output/merge5.xlsx
|
2340
2340
|
- test/perl_output/merge6.xlsx
|
2341
|
+
- test/perl_output/multi_line.xlsx
|
2341
2342
|
- test/perl_output/outline.xlsx
|
2342
2343
|
- test/perl_output/outline_collapsed.xlsx
|
2343
2344
|
- test/perl_output/panes.xlsx
|
data/keep_leading_zeros.xlsx
DELETED
Binary file
|