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: 2140b1eb7619ec9c3a073c36b8a48cf3685f49e401eae47672c8b99bec3ad6ac
4
- data.tar.gz: a8119842484821bd55c9bcc174ec21280f1235c99c33185872b7c418463b3482
3
+ metadata.gz: cda21c9f5d9538afeb4ba3db8dd5878d649f41c190f9d2afab5a5271b927ef55
4
+ data.tar.gz: 7ccd72b8f89764c0c64af5d05a8380872376913cee7767471a5a8ee68298ea4f
5
5
  SHA512:
6
- metadata.gz: 05d0b5d8c3f5b833ce3b07577d20bd3cf9dca4b559047eb3d18848e7265e2eba2d7861f42973b36357249b77a16fa5fc6ed415c1c973d301fcfad6e92ad78ba5
7
- data.tar.gz: 6374384f2f31ec4851d36dc0e3c011ede1364d073362d311b77b147ef0c4fade0d888ac29527b7b84f636ebb44e87b1fbd907a589d09549a05d8fa1a5a50aa28
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
@@ -12,7 +12,7 @@ require 'portable'
12
12
  module Portable
13
13
  module Writers
14
14
  class Spreadsheet < Base
15
- VERSION = '1.0.0-alpha'
15
+ VERSION = '1.0.0-alpha.1'
16
16
  end
17
17
  end
18
18
  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-08 00:00:00.000000000 Z
11
+ date: 2020-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fast_excel