portable-writers-spreadsheet 1.0.0.pre.alpha → 1.0.0.pre.alpha.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cda21c9f5d9538afeb4ba3db8dd5878d649f41c190f9d2afab5a5271b927ef55
|
4
|
+
data.tar.gz: 7ccd72b8f89764c0c64af5d05a8380872376913cee7767471a5a8ee68298ea4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbdada9e73d31011faa37c89e31a65fdec841f8bc62009ca310f48469bd68266fb228dcc316e5bebf6ea0d98114b305db9fcaec29fc11fa66bd843db47649492
|
7
|
+
data.tar.gz: e98a7444369a9b1eb1d00e3153374a4bc1d3e5c35a8b45b9c00a88d6742ecfac5d27964d37ea531ffe942bc663d0c3e66994970883612be4ffc4f35a98414140
|
@@ -23,8 +23,7 @@ module Portable
|
|
23
23
|
|
24
24
|
document.sheets.map do |sheet|
|
25
25
|
data_source = data_provider.data_source(sheet.name)
|
26
|
-
|
27
|
-
worksheet = workbook.add_worksheet(sheet.name)
|
26
|
+
worksheet = add_worksheet(workbook, sheet)
|
28
27
|
|
29
28
|
write_head(worksheet, sheet, data_source)
|
30
29
|
write_data_table(worksheet, sheet, data_source, time)
|
@@ -61,6 +60,12 @@ module Portable
|
|
61
60
|
|
62
61
|
sheet.footer_rows.each { |row| worksheet.append_row(row) }
|
63
62
|
end
|
63
|
+
|
64
|
+
def add_worksheet(workbook, sheet)
|
65
|
+
name = sheet.name.to_s.empty? ? 'Sheet1' : sheet.name
|
66
|
+
|
67
|
+
workbook.add_worksheet(name)
|
68
|
+
end
|
64
69
|
end
|
65
70
|
end
|
66
71
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: portable-writers-spreadsheet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.alpha
|
4
|
+
version: 1.0.0.pre.alpha.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Ruggio
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fast_excel
|