xlsxwriter 0.2.1.pre → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +4 -3
- data/ext/xlsxwriter/chart.c +88 -80
- data/ext/xlsxwriter/chart.h +2 -2
- data/ext/xlsxwriter/chartsheet.c +307 -0
- data/ext/xlsxwriter/chartsheet.h +15 -0
- data/ext/xlsxwriter/common.h +104 -0
- data/ext/xlsxwriter/extconf.rb +8 -8
- data/ext/xlsxwriter/libxlsxwriter/License.txt +24 -2
- data/ext/xlsxwriter/libxlsxwriter/Makefile +46 -12
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/app.h +1 -1
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/chart.h +196 -30
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/chartsheet.h +3 -3
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/comment.h +76 -0
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/common.h +24 -5
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/content_types.h +5 -1
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/core.h +1 -1
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/custom.h +1 -1
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/drawing.h +6 -17
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/format.h +20 -6
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/hash_table.h +1 -1
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/packager.h +3 -1
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/relationships.h +1 -1
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/shared_strings.h +1 -1
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/styles.h +11 -5
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/theme.h +1 -1
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/third_party/md5.h +43 -0
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/utility.h +42 -3
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/vml.h +55 -0
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/workbook.h +83 -18
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/worksheet.h +1519 -109
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/xmlwriter.h +4 -2
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter.h +3 -2
- data/ext/xlsxwriter/libxlsxwriter/src/Makefile +25 -7
- data/ext/xlsxwriter/libxlsxwriter/src/app.c +1 -1
- data/ext/xlsxwriter/libxlsxwriter/src/chart.c +332 -48
- data/ext/xlsxwriter/libxlsxwriter/src/chartsheet.c +20 -19
- data/ext/xlsxwriter/libxlsxwriter/src/comment.c +443 -0
- data/ext/xlsxwriter/libxlsxwriter/src/content_types.c +20 -1
- data/ext/xlsxwriter/libxlsxwriter/src/core.c +2 -2
- data/ext/xlsxwriter/libxlsxwriter/src/custom.c +1 -1
- data/ext/xlsxwriter/libxlsxwriter/src/drawing.c +58 -20
- data/ext/xlsxwriter/libxlsxwriter/src/format.c +98 -25
- data/ext/xlsxwriter/libxlsxwriter/src/hash_table.c +1 -1
- data/ext/xlsxwriter/libxlsxwriter/src/packager.c +269 -12
- data/ext/xlsxwriter/libxlsxwriter/src/relationships.c +1 -1
- data/ext/xlsxwriter/libxlsxwriter/src/shared_strings.c +2 -4
- data/ext/xlsxwriter/libxlsxwriter/src/styles.c +334 -48
- data/ext/xlsxwriter/libxlsxwriter/src/theme.c +1 -1
- data/ext/xlsxwriter/libxlsxwriter/src/utility.c +71 -8
- data/ext/xlsxwriter/libxlsxwriter/src/vml.c +1032 -0
- data/ext/xlsxwriter/libxlsxwriter/src/workbook.c +343 -27
- data/ext/xlsxwriter/libxlsxwriter/src/worksheet.c +3759 -478
- data/ext/xlsxwriter/libxlsxwriter/src/xmlwriter.c +81 -2
- data/ext/xlsxwriter/libxlsxwriter/third_party/md5/Makefile +42 -0
- data/ext/xlsxwriter/libxlsxwriter/third_party/md5/md5.c +291 -0
- data/ext/xlsxwriter/libxlsxwriter/third_party/md5/md5.h +43 -0
- data/ext/xlsxwriter/shared_strings.c +65 -0
- data/ext/xlsxwriter/shared_strings.h +15 -0
- data/ext/xlsxwriter/workbook.c +96 -20
- data/ext/xlsxwriter/worksheet.c +125 -235
- data/ext/xlsxwriter/worksheet.h +2 -1
- data/ext/xlsxwriter/xlsxwriter.c +4 -0
- data/lib/xlsxwriter/rich_string.rb +0 -2
- data/lib/xlsxwriter/version.rb +1 -1
- data/lib/xlsxwriter/worksheet.rb +2 -2
- data/test/{run-test.rb → run_test.rb} +3 -3
- data/test/support/chart_test.rb +3 -3
- data/test/support/with_xlsx_file.rb +4 -2
- data/test/support/xlsx_comparable.rb +40 -26
- data/test/test_array_formula.rb +42 -0
- data/test/test_autofilter.rb +72 -0
- data/test/{test-chart-area.rb → test_chart_area.rb} +2 -2
- data/test/{test-chart-axis.rb → test_chart_axis.rb} +16 -16
- data/test/test_chart_bar.rb +382 -0
- data/test/test_chart_blank.rb +27 -0
- data/test/{test-chart-column.rb → test_chart_column.rb} +2 -2
- data/test/{test-chart-doughnut.rb → test_chart_doughnut.rb} +2 -2
- data/test/{test-chart-legend.rb → test_chart_legend.rb} +2 -2
- data/test/{test-chart-pie.rb → test_chart_pie.rb} +2 -2
- data/test/{test-chart-scatter.rb → test_chart_scatter.rb} +3 -4
- data/test/{test-chart-size.rb → test_chart_size.rb} +2 -2
- data/test/{test-chart-title.rb → test_chart_title.rb} +3 -3
- data/test/test_chartsheet.rb +201 -0
- data/test/{test-data.rb → test_data.rb} +1 -1
- data/test/{test-data-validation.rb → test_data_validation.rb} +23 -24
- data/test/{test-default-row.rb → test_default_row.rb} +1 -1
- data/test/{test-defined-name.rb → test_defined_name.rb} +12 -12
- data/test/{test-escapes.rb → test_escapes.rb} +5 -2
- data/test/{test-fit-to-pages.rb → test_fit_to_pages.rb} +6 -6
- data/test/{test-formatting.rb → test_formatting.rb} +10 -10
- data/test/{test-gridlines.rb → test_gridlines.rb} +3 -3
- data/test/{test-hyperlink.rb → test_hyperlink.rb} +22 -11
- data/test/{test-image.rb → test_image.rb} +6 -4
- data/test/{test-macro.rb → test_macro.rb} +1 -1
- data/test/{test-merge-range.rb → test_merge_range.rb} +1 -1
- data/test/{test-misc.rb → test_misc.rb} +2 -2
- data/test/{test-optimize.rb → test_optimize.rb} +2 -4
- data/test/{test-outline.rb → test_outline.rb} +14 -14
- data/test/{test-page-breaks.rb → test_page_breaks.rb} +2 -2
- data/test/{test-page-setup.rb → test_page_setup.rb} +2 -2
- data/test/{test-panes.rb → test_panes.rb} +1 -1
- data/test/{test-print-area.rb → test_print_area.rb} +3 -3
- data/test/{test-print-options.rb → test_print_options.rb} +7 -7
- data/test/{test-print-scale.rb → test_print_scale.rb} +2 -2
- data/test/{test-properties.rb → test_properties.rb} +2 -2
- data/test/{test-protect.rb → test_protect.rb} +3 -3
- data/test/{test-repeat.rb → test_repeat.rb} +3 -3
- data/test/{test-rich-string.rb → test_rich_string.rb} +5 -9
- data/test/{test-row-col-format.rb → test_row_col_format.rb} +1 -1
- data/test/{test-ruby-worksheet.rb → test_ruby_worksheet.rb} +2 -2
- data/test/{test-set-selection.rb → test_set_selection.rb} +2 -2
- data/test/{test-set-start-page.rb → test_set_start_page.rb} +2 -2
- data/test/{test-simple.rb → test_simple.rb} +10 -10
- data/test/{test-types.rb → test_types.rb} +1 -1
- data/test/{xlsx-func-testcase.rb → xlsx_func_testcase.rb} +1 -0
- metadata +135 -104
- data/test/test-array-formula.rb +0 -35
- data/test/test-autofilter.rb +0 -72
- data/test/test-chart-bar.rb +0 -74
- /data/test/{test-errors.rb → test_errors.rb} +0 -0
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xlsxwriter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick H
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: diffy
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.4'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.4'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rake-compiler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -30,14 +44,14 @@ dependencies:
|
|
30
44
|
requirements:
|
31
45
|
- - "~>"
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
47
|
+
version: '2.3'
|
34
48
|
type: :development
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
52
|
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
54
|
+
version: '2.3'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: test-unit
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,8 +66,8 @@ dependencies:
|
|
52
66
|
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '3.2'
|
55
|
-
description:
|
56
|
-
email:
|
69
|
+
description:
|
70
|
+
email:
|
57
71
|
executables: []
|
58
72
|
extensions:
|
59
73
|
- ext/xlsxwriter/extconf.rb
|
@@ -62,6 +76,9 @@ files:
|
|
62
76
|
- Rakefile
|
63
77
|
- ext/xlsxwriter/chart.c
|
64
78
|
- ext/xlsxwriter/chart.h
|
79
|
+
- ext/xlsxwriter/chartsheet.c
|
80
|
+
- ext/xlsxwriter/chartsheet.h
|
81
|
+
- ext/xlsxwriter/common.h
|
65
82
|
- ext/xlsxwriter/extconf.rb
|
66
83
|
- ext/xlsxwriter/format.c
|
67
84
|
- ext/xlsxwriter/format.h
|
@@ -71,6 +88,7 @@ files:
|
|
71
88
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/app.h
|
72
89
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/chart.h
|
73
90
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/chartsheet.h
|
91
|
+
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/comment.h
|
74
92
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/common.h
|
75
93
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/content_types.h
|
76
94
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/core.h
|
@@ -84,11 +102,13 @@ files:
|
|
84
102
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/styles.h
|
85
103
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/theme.h
|
86
104
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/third_party/ioapi.h
|
105
|
+
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/third_party/md5.h
|
87
106
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/third_party/queue.h
|
88
107
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/third_party/tmpfileplus.h
|
89
108
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/third_party/tree.h
|
90
109
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/third_party/zip.h
|
91
110
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/utility.h
|
111
|
+
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/vml.h
|
92
112
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/workbook.h
|
93
113
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/worksheet.h
|
94
114
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/xmlwriter.h
|
@@ -97,6 +117,7 @@ files:
|
|
97
117
|
- ext/xlsxwriter/libxlsxwriter/src/app.c
|
98
118
|
- ext/xlsxwriter/libxlsxwriter/src/chart.c
|
99
119
|
- ext/xlsxwriter/libxlsxwriter/src/chartsheet.c
|
120
|
+
- ext/xlsxwriter/libxlsxwriter/src/comment.c
|
100
121
|
- ext/xlsxwriter/libxlsxwriter/src/content_types.c
|
101
122
|
- ext/xlsxwriter/libxlsxwriter/src/core.c
|
102
123
|
- ext/xlsxwriter/libxlsxwriter/src/custom.c
|
@@ -109,9 +130,13 @@ files:
|
|
109
130
|
- ext/xlsxwriter/libxlsxwriter/src/styles.c
|
110
131
|
- ext/xlsxwriter/libxlsxwriter/src/theme.c
|
111
132
|
- ext/xlsxwriter/libxlsxwriter/src/utility.c
|
133
|
+
- ext/xlsxwriter/libxlsxwriter/src/vml.c
|
112
134
|
- ext/xlsxwriter/libxlsxwriter/src/workbook.c
|
113
135
|
- ext/xlsxwriter/libxlsxwriter/src/worksheet.c
|
114
136
|
- ext/xlsxwriter/libxlsxwriter/src/xmlwriter.c
|
137
|
+
- ext/xlsxwriter/libxlsxwriter/third_party/md5/Makefile
|
138
|
+
- ext/xlsxwriter/libxlsxwriter/third_party/md5/md5.c
|
139
|
+
- ext/xlsxwriter/libxlsxwriter/third_party/md5/md5.h
|
115
140
|
- ext/xlsxwriter/libxlsxwriter/third_party/minizip/Makefile
|
116
141
|
- ext/xlsxwriter/libxlsxwriter/third_party/minizip/crypt.h
|
117
142
|
- ext/xlsxwriter/libxlsxwriter/third_party/minizip/ioapi.c
|
@@ -131,6 +156,8 @@ files:
|
|
131
156
|
- ext/xlsxwriter/libxlsxwriter/third_party/tmpfileplus/tmpfileplus.h
|
132
157
|
- ext/xlsxwriter/rich_string.c
|
133
158
|
- ext/xlsxwriter/rich_string.h
|
159
|
+
- ext/xlsxwriter/shared_strings.c
|
160
|
+
- ext/xlsxwriter/shared_strings.h
|
134
161
|
- ext/xlsxwriter/workbook.c
|
135
162
|
- ext/xlsxwriter/workbook.h
|
136
163
|
- ext/xlsxwriter/workbook_properties.c
|
@@ -144,60 +171,62 @@ files:
|
|
144
171
|
- lib/xlsxwriter/rich_string.rb
|
145
172
|
- lib/xlsxwriter/version.rb
|
146
173
|
- lib/xlsxwriter/worksheet.rb
|
147
|
-
- test/
|
174
|
+
- test/run_test.rb
|
148
175
|
- test/support/chart_test.rb
|
149
176
|
- test/support/with_xlsx_file.rb
|
150
177
|
- test/support/xlsx_comparable.rb
|
151
|
-
- test/
|
152
|
-
- test/
|
153
|
-
- test/
|
154
|
-
- test/
|
155
|
-
- test/
|
156
|
-
- test/
|
157
|
-
- test/
|
158
|
-
- test/
|
159
|
-
- test/
|
160
|
-
- test/
|
161
|
-
- test/
|
162
|
-
- test/
|
163
|
-
- test/
|
164
|
-
- test/
|
165
|
-
- test/
|
166
|
-
- test/
|
167
|
-
- test/
|
168
|
-
- test/
|
169
|
-
- test/
|
170
|
-
- test/
|
171
|
-
- test/
|
172
|
-
- test/
|
173
|
-
- test/
|
174
|
-
- test/
|
175
|
-
- test/
|
176
|
-
- test/
|
177
|
-
- test/
|
178
|
-
- test/
|
179
|
-
- test/
|
180
|
-
- test/
|
181
|
-
- test/
|
182
|
-
- test/
|
183
|
-
- test/
|
184
|
-
- test/
|
185
|
-
- test/
|
186
|
-
- test/
|
187
|
-
- test/
|
188
|
-
- test/
|
189
|
-
- test/
|
190
|
-
- test/
|
191
|
-
- test/
|
192
|
-
- test/
|
193
|
-
- test/
|
194
|
-
- test/
|
195
|
-
- test/
|
178
|
+
- test/test_array_formula.rb
|
179
|
+
- test/test_autofilter.rb
|
180
|
+
- test/test_chart_area.rb
|
181
|
+
- test/test_chart_axis.rb
|
182
|
+
- test/test_chart_bar.rb
|
183
|
+
- test/test_chart_blank.rb
|
184
|
+
- test/test_chart_column.rb
|
185
|
+
- test/test_chart_doughnut.rb
|
186
|
+
- test/test_chart_legend.rb
|
187
|
+
- test/test_chart_pie.rb
|
188
|
+
- test/test_chart_scatter.rb
|
189
|
+
- test/test_chart_size.rb
|
190
|
+
- test/test_chart_title.rb
|
191
|
+
- test/test_chartsheet.rb
|
192
|
+
- test/test_data.rb
|
193
|
+
- test/test_data_validation.rb
|
194
|
+
- test/test_default_row.rb
|
195
|
+
- test/test_defined_name.rb
|
196
|
+
- test/test_errors.rb
|
197
|
+
- test/test_escapes.rb
|
198
|
+
- test/test_fit_to_pages.rb
|
199
|
+
- test/test_formatting.rb
|
200
|
+
- test/test_gridlines.rb
|
201
|
+
- test/test_hyperlink.rb
|
202
|
+
- test/test_image.rb
|
203
|
+
- test/test_macro.rb
|
204
|
+
- test/test_merge_range.rb
|
205
|
+
- test/test_misc.rb
|
206
|
+
- test/test_optimize.rb
|
207
|
+
- test/test_outline.rb
|
208
|
+
- test/test_page_breaks.rb
|
209
|
+
- test/test_page_setup.rb
|
210
|
+
- test/test_panes.rb
|
211
|
+
- test/test_print_area.rb
|
212
|
+
- test/test_print_options.rb
|
213
|
+
- test/test_print_scale.rb
|
214
|
+
- test/test_properties.rb
|
215
|
+
- test/test_protect.rb
|
216
|
+
- test/test_repeat.rb
|
217
|
+
- test/test_rich_string.rb
|
218
|
+
- test/test_row_col_format.rb
|
219
|
+
- test/test_ruby_worksheet.rb
|
220
|
+
- test/test_set_selection.rb
|
221
|
+
- test/test_set_start_page.rb
|
222
|
+
- test/test_simple.rb
|
223
|
+
- test/test_types.rb
|
224
|
+
- test/xlsx_func_testcase.rb
|
196
225
|
homepage: https://github.com/gekola/xlsxwriter-rb
|
197
226
|
licenses:
|
198
227
|
- BSD-2-Clause-FreeBSD
|
199
228
|
metadata: {}
|
200
|
-
post_install_message:
|
229
|
+
post_install_message:
|
201
230
|
rdoc_options: []
|
202
231
|
require_paths:
|
203
232
|
- lib
|
@@ -208,61 +237,63 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
208
237
|
version: '0'
|
209
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
239
|
requirements:
|
211
|
-
- - "
|
240
|
+
- - ">="
|
212
241
|
- !ruby/object:Gem::Version
|
213
|
-
version:
|
242
|
+
version: '0'
|
214
243
|
requirements: []
|
215
|
-
rubygems_version: 3.
|
216
|
-
signing_key:
|
244
|
+
rubygems_version: 3.4.19
|
245
|
+
signing_key:
|
217
246
|
specification_version: 4
|
218
247
|
summary: Ruby interface to libxlsxwriter
|
219
248
|
test_files:
|
220
|
-
- test/
|
221
|
-
- test/test-chart-bar.rb
|
222
|
-
- test/test-page-setup.rb
|
223
|
-
- test/test-page-breaks.rb
|
224
|
-
- test/test-protect.rb
|
225
|
-
- test/test-ruby-worksheet.rb
|
226
|
-
- test/test-chart-legend.rb
|
227
|
-
- test/test-chart-axis.rb
|
228
|
-
- test/test-print-area.rb
|
229
|
-
- test/test-default-row.rb
|
230
|
-
- test/test-set-selection.rb
|
231
|
-
- test/test-chart-area.rb
|
232
|
-
- test/run-test.rb
|
233
|
-
- test/test-errors.rb
|
234
|
-
- test/test-chart-column.rb
|
235
|
-
- test/test-types.rb
|
236
|
-
- test/test-set-start-page.rb
|
237
|
-
- test/test-chart-pie.rb
|
238
|
-
- test/test-macro.rb
|
239
|
-
- test/test-repeat.rb
|
240
|
-
- test/test-chart-doughnut.rb
|
241
|
-
- test/test-row-col-format.rb
|
242
|
-
- test/test-escapes.rb
|
243
|
-
- test/test-formatting.rb
|
249
|
+
- test/run_test.rb
|
244
250
|
- test/support/chart_test.rb
|
245
251
|
- test/support/with_xlsx_file.rb
|
246
252
|
- test/support/xlsx_comparable.rb
|
247
|
-
- test/
|
248
|
-
- test/
|
249
|
-
- test/
|
250
|
-
- test/
|
251
|
-
- test/
|
252
|
-
- test/
|
253
|
-
- test/
|
254
|
-
- test/
|
255
|
-
- test/
|
256
|
-
- test/
|
257
|
-
- test/
|
258
|
-
- test/
|
259
|
-
- test/
|
260
|
-
- test/
|
261
|
-
- test/
|
262
|
-
- test/
|
263
|
-
- test/
|
264
|
-
- test/
|
265
|
-
- test/
|
266
|
-
- test/
|
267
|
-
- test/
|
268
|
-
- test/
|
253
|
+
- test/test_array_formula.rb
|
254
|
+
- test/test_autofilter.rb
|
255
|
+
- test/test_chart_area.rb
|
256
|
+
- test/test_chart_axis.rb
|
257
|
+
- test/test_chart_bar.rb
|
258
|
+
- test/test_chart_blank.rb
|
259
|
+
- test/test_chart_column.rb
|
260
|
+
- test/test_chart_doughnut.rb
|
261
|
+
- test/test_chart_legend.rb
|
262
|
+
- test/test_chart_pie.rb
|
263
|
+
- test/test_chart_scatter.rb
|
264
|
+
- test/test_chart_size.rb
|
265
|
+
- test/test_chart_title.rb
|
266
|
+
- test/test_chartsheet.rb
|
267
|
+
- test/test_data.rb
|
268
|
+
- test/test_data_validation.rb
|
269
|
+
- test/test_default_row.rb
|
270
|
+
- test/test_defined_name.rb
|
271
|
+
- test/test_errors.rb
|
272
|
+
- test/test_escapes.rb
|
273
|
+
- test/test_fit_to_pages.rb
|
274
|
+
- test/test_formatting.rb
|
275
|
+
- test/test_gridlines.rb
|
276
|
+
- test/test_hyperlink.rb
|
277
|
+
- test/test_image.rb
|
278
|
+
- test/test_macro.rb
|
279
|
+
- test/test_merge_range.rb
|
280
|
+
- test/test_misc.rb
|
281
|
+
- test/test_optimize.rb
|
282
|
+
- test/test_outline.rb
|
283
|
+
- test/test_page_breaks.rb
|
284
|
+
- test/test_page_setup.rb
|
285
|
+
- test/test_panes.rb
|
286
|
+
- test/test_print_area.rb
|
287
|
+
- test/test_print_options.rb
|
288
|
+
- test/test_print_scale.rb
|
289
|
+
- test/test_properties.rb
|
290
|
+
- test/test_protect.rb
|
291
|
+
- test/test_repeat.rb
|
292
|
+
- test/test_rich_string.rb
|
293
|
+
- test/test_row_col_format.rb
|
294
|
+
- test/test_ruby_worksheet.rb
|
295
|
+
- test/test_set_selection.rb
|
296
|
+
- test/test_set_start_page.rb
|
297
|
+
- test/test_simple.rb
|
298
|
+
- test/test_types.rb
|
299
|
+
- test/xlsx_func_testcase.rb
|
data/test/test-array-formula.rb
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative './xlsx-func-testcase'
|
4
|
-
|
5
|
-
class TestArrayFormula < XlsxWriterTestCase
|
6
|
-
def setup
|
7
|
-
omit 'runs wrong test in libxlsxwriter'
|
8
|
-
end
|
9
|
-
|
10
|
-
test 'array_formula01' do |wb|
|
11
|
-
ws = wb.add_worksheet nil
|
12
|
-
ws.write_number(0, 1, 0, nil)
|
13
|
-
ws.write_number(1, 1, 0, nil)
|
14
|
-
ws.write_number(2, 1, 0, nil)
|
15
|
-
ws.write_number(0, 2, 0, nil)
|
16
|
-
ws.write_number(1, 2, 0, nil)
|
17
|
-
ws.write_number(2, 2, 0, nil)
|
18
|
-
|
19
|
-
ws.write_array_formula(0, 0, 2, 0, '{=SUM(B1:C1*B2:C2)}', nil)
|
20
|
-
end
|
21
|
-
|
22
|
-
test 'array_formula02' do |wb|
|
23
|
-
ws = wb.add_worksheet
|
24
|
-
wb.add_format(:bold, bold: true)
|
25
|
-
|
26
|
-
ws.write_number(0, 1, 0, nil);
|
27
|
-
ws.write_number(1, 1, 0, nil);
|
28
|
-
ws.write_number(2, 1, 0, nil);
|
29
|
-
ws.write_number(0, 2, 0, nil);
|
30
|
-
ws.write_number(1, 2, 0, nil);
|
31
|
-
ws.write_number(2, 2, 0, nil);
|
32
|
-
|
33
|
-
ws.write_array_formula(0, 0, 2, 0, '{=SUM(B1:C1*B2:C2)}', :bold)
|
34
|
-
end
|
35
|
-
end
|
data/test/test-autofilter.rb
DELETED
@@ -1,72 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative './xlsx-func-testcase'
|
4
|
-
|
5
|
-
class TestAutofilter < XlsxWriterTestCase
|
6
|
-
ROWS = [
|
7
|
-
%w(Region Item Volume Month),
|
8
|
-
[ 'East', 'Apple', 9000, 'July' ],
|
9
|
-
[ 'East', 'Apple', 5000, 'July' ],
|
10
|
-
[ 'South', 'Orange', 9000, 'September' ],
|
11
|
-
[ 'North', 'Apple', 2000, 'November' ],
|
12
|
-
[ 'West', 'Apple', 9000, 'November' ],
|
13
|
-
[ 'South', 'Pear', 7000, 'October' ],
|
14
|
-
[ 'North', 'Pear', 9000, 'August' ],
|
15
|
-
[ 'West', 'Orange', 1000, 'December' ],
|
16
|
-
[ 'West', 'Grape', 1000, 'November' ],
|
17
|
-
[ 'South', 'Pear', 10000, 'April' ],
|
18
|
-
[ 'West', 'Grape', 6000, 'January' ],
|
19
|
-
[ 'South', 'Orange', 3000, 'May' ],
|
20
|
-
[ 'North', 'Apple', 3000, 'December' ],
|
21
|
-
[ 'South', 'Apple', 7000, 'February' ],
|
22
|
-
[ 'West', 'Grape', 1000, 'December' ],
|
23
|
-
[ 'East', 'Grape', 8000, 'February' ],
|
24
|
-
[ 'South', 'Grape', 10000, 'June' ],
|
25
|
-
[ 'West', 'Pear', 7000, 'December' ],
|
26
|
-
[ 'South', 'Apple', 2000, 'October' ],
|
27
|
-
[ 'East', 'Grape', 7000, 'December' ],
|
28
|
-
[ 'North', 'Grape', 6000, 'April' ],
|
29
|
-
[ 'East', 'Pear', 8000, 'February' ],
|
30
|
-
[ 'North', 'Apple', 7000, 'August' ],
|
31
|
-
[ 'North', 'Orange', 7000, 'July' ],
|
32
|
-
[ 'North', 'Apple', 6000, 'June' ],
|
33
|
-
[ 'South', 'Grape', 8000, 'September' ],
|
34
|
-
[ 'West', 'Apple', 3000, 'October' ],
|
35
|
-
[ 'South', 'Orange', 10000, 'November' ],
|
36
|
-
[ 'West', 'Grape', 4000, 'July' ],
|
37
|
-
[ 'North', 'Orange', 5000, 'August' ],
|
38
|
-
[ 'East', 'Orange', 1000, 'November' ],
|
39
|
-
[ 'East', 'Orange', 4000, 'October' ],
|
40
|
-
[ 'North', 'Grape', 5000, 'August' ],
|
41
|
-
[ 'East', 'Apple', 1000, 'December' ],
|
42
|
-
[ 'South', 'Apple', 10000, 'March' ],
|
43
|
-
[ 'East', 'Grape', 7000, 'October' ],
|
44
|
-
[ 'West', 'Grape', 1000, 'September' ],
|
45
|
-
[ 'East', 'Grape', 10000, 'October' ],
|
46
|
-
[ 'South', 'Orange', 8000, 'March' ],
|
47
|
-
[ 'North', 'Apple', 4000, 'July' ],
|
48
|
-
[ 'South', 'Orange', 5000, 'July' ],
|
49
|
-
[ 'West', 'Apple', 4000, 'June' ],
|
50
|
-
[ 'East', 'Apple', 5000, 'April' ],
|
51
|
-
[ 'North', 'Pear', 3000, 'August' ],
|
52
|
-
[ 'East', 'Grape', 9000, 'November' ],
|
53
|
-
[ 'North', 'Orange', 8000, 'October' ],
|
54
|
-
[ 'East', 'Apple', 10000, 'June' ],
|
55
|
-
[ 'South', 'Pear', 1000, 'December' ],
|
56
|
-
[ 'North', 'Grape', 10000, 'July' ],
|
57
|
-
[ 'East', 'Grape', 6000, 'February' ]
|
58
|
-
]
|
59
|
-
|
60
|
-
test 'autofilter00' do |wb|
|
61
|
-
ws = wb.add_worksheet
|
62
|
-
|
63
|
-
ROWS.each { |row| ws.add_row row }
|
64
|
-
end
|
65
|
-
|
66
|
-
test 'autofilter01' do |wb|
|
67
|
-
ws = wb.add_worksheet
|
68
|
-
|
69
|
-
ROWS.each { |row| ws.add_row row }
|
70
|
-
ws.autofilter('A1', 50, 3);
|
71
|
-
end
|
72
|
-
end
|
data/test/test-chart-bar.rb
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative './xlsx-func-testcase'
|
4
|
-
require_relative './support/chart_test'
|
5
|
-
|
6
|
-
class TestChartBar < XlsxWriterTestCase
|
7
|
-
extend ChartTest
|
8
|
-
|
9
|
-
DATA = [
|
10
|
-
[1, 2, 3],
|
11
|
-
[2, 4, 6],
|
12
|
-
[3, 6, 9],
|
13
|
-
[4, 8, 12],
|
14
|
-
[5, 10, 15]
|
15
|
-
]
|
16
|
-
|
17
|
-
chart_test 'chart_bar01', XlsxWriter::Workbook::Chart::BAR do |chart|
|
18
|
-
chart.axis_id_1 = 64_052_224
|
19
|
-
chart.axis_id_2 = 64_055_552
|
20
|
-
|
21
|
-
series1 = chart.add_series
|
22
|
-
series2 = chart.add_series
|
23
|
-
|
24
|
-
series1.set_categories 'Sheet1', 0, 0, 4, 0
|
25
|
-
series1.set_values 'Sheet1', 0, 1, 4, 1
|
26
|
-
|
27
|
-
series2.set_categories 'Sheet1', 0, 0, 4, 0
|
28
|
-
series2.set_values 'Sheet1', 0, 2, 4, 2
|
29
|
-
end
|
30
|
-
|
31
|
-
test 'chart_bar02' do |wb|
|
32
|
-
ws1 = wb.add_worksheet
|
33
|
-
wb.add_worksheet do |ws|
|
34
|
-
DATA.each { |row| ws.add_row row }
|
35
|
-
ws1.write_string('A1', 'Foo')
|
36
|
-
|
37
|
-
wb.add_chart(XlsxWriter::Workbook::Chart::BAR) do |chart|
|
38
|
-
chart.axis_id_1 = 93_218_304
|
39
|
-
chart.axis_id_2 = 93_219_840
|
40
|
-
|
41
|
-
chart.add_series '=Sheet2!$A$1:$A$5', '=Sheet2!$B$1:$B$5'
|
42
|
-
chart.add_series '=Sheet2!$A$1:$A$5', '=Sheet2!$C$1:$C$5'
|
43
|
-
|
44
|
-
ws.insert_chart 'E9', chart
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
test 'chart_bar03' do |wb|
|
50
|
-
wb.add_worksheet do |ws|
|
51
|
-
DATA.each { |row| ws.add_row row }
|
52
|
-
|
53
|
-
wb.add_chart(XlsxWriter::Workbook::Chart::BAR) do |chart|
|
54
|
-
chart.axis_id_1 = 64265216
|
55
|
-
chart.axis_id_2 = 64447616
|
56
|
-
|
57
|
-
chart.add_series '=Sheet1!$A$1:$A$5', '=Sheet1!$B$1:$B$5'
|
58
|
-
chart.add_series '=Sheet1!$A$1:$A$5', '=Sheet1!$C$1:$C$5'
|
59
|
-
|
60
|
-
ws.insert_chart 'E9', chart
|
61
|
-
end
|
62
|
-
|
63
|
-
wb.add_chart(XlsxWriter::Workbook::Chart::BAR) do |chart|
|
64
|
-
chart.axis_id_1 = 86048128
|
65
|
-
chart.axis_id_2 = 86058112
|
66
|
-
|
67
|
-
chart.add_series '=Sheet1!$A$1:$A$4', '=Sheet1!$B$1:$B$4'
|
68
|
-
chart.add_series '=Sheet1!$A$1:$A$4', '=Sheet1!$C$1:$C$4'
|
69
|
-
|
70
|
-
ws.insert_chart 'F25', chart
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|
File without changes
|