xlsxwriter 0.2.1.pre.2 → 0.2.3.pre.1
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 +84 -20
- data/ext/xlsxwriter/chart.h +1 -0
- data/ext/xlsxwriter/chartsheet.c +34 -13
- data/ext/xlsxwriter/common.h +5 -5
- 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/rich_string.c +28 -9
- data/ext/xlsxwriter/shared_strings.c +75 -0
- data/ext/xlsxwriter/shared_strings.h +15 -0
- data/ext/xlsxwriter/workbook.c +87 -13
- data/ext/xlsxwriter/workbook.h +1 -0
- data/ext/xlsxwriter/workbook_properties.c +2 -2
- data/ext/xlsxwriter/worksheet.c +75 -23
- data/ext/xlsxwriter/worksheet.h +1 -0
- data/ext/xlsxwriter/xlsxwriter.c +2 -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 → test_chartsheet.rb} +2 -2
- 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 +127 -106
- 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
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative './
|
3
|
+
require_relative './xlsx_func_testcase'
|
4
4
|
|
5
5
|
class TestPrintArea < XlsxWriterTestCase
|
6
6
|
test 'print_area06' do |wb, t|
|
7
|
-
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => [
|
7
|
+
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => ['<pageMargins'] }
|
8
8
|
ws = wb.add_worksheet
|
9
9
|
ws.paper = 9
|
10
10
|
ws.vertical_dpi = 200
|
@@ -13,7 +13,7 @@ class TestPrintArea < XlsxWriterTestCase
|
|
13
13
|
end
|
14
14
|
|
15
15
|
test 'print_area07' do |wb, t|
|
16
|
-
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => [
|
16
|
+
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => ['<pageMargins'] }
|
17
17
|
ws = wb.add_worksheet
|
18
18
|
ws.print_area('A1:XFD1048576')
|
19
19
|
ws.write_string('A1', 'Foo', nil)
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative './
|
3
|
+
require_relative './xlsx_func_testcase'
|
4
4
|
|
5
5
|
class TestPrintOptions < XlsxWriterTestCase
|
6
6
|
test 'print_options01' do |wb, t|
|
7
|
-
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => [
|
7
|
+
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => ['<pageMargins'] }
|
8
8
|
ws = wb.add_worksheet
|
9
9
|
ws.paper = 9
|
10
10
|
ws.vertical_dpi = 200
|
@@ -13,7 +13,7 @@ class TestPrintOptions < XlsxWriterTestCase
|
|
13
13
|
end
|
14
14
|
|
15
15
|
test 'print_options02' do |wb, t|
|
16
|
-
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => [
|
16
|
+
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => ['<pageMargins'] }
|
17
17
|
ws = wb.add_worksheet
|
18
18
|
ws.paper = 9
|
19
19
|
ws.vertical_dpi = 200
|
@@ -22,7 +22,7 @@ class TestPrintOptions < XlsxWriterTestCase
|
|
22
22
|
end
|
23
23
|
|
24
24
|
test 'print_options03' do |wb, t|
|
25
|
-
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => [
|
25
|
+
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => ['<pageMargins'] }
|
26
26
|
ws = wb.add_worksheet
|
27
27
|
ws.paper = 9
|
28
28
|
ws.vertical_dpi = 200
|
@@ -31,7 +31,7 @@ class TestPrintOptions < XlsxWriterTestCase
|
|
31
31
|
end
|
32
32
|
|
33
33
|
test 'print_options04' do |wb, t|
|
34
|
-
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => [
|
34
|
+
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => ['<pageMargins'] }
|
35
35
|
ws = wb.add_worksheet
|
36
36
|
ws.paper = 9
|
37
37
|
ws.vertical_dpi = 200
|
@@ -40,7 +40,7 @@ class TestPrintOptions < XlsxWriterTestCase
|
|
40
40
|
end
|
41
41
|
|
42
42
|
test 'print_options05' do |wb, t|
|
43
|
-
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => [
|
43
|
+
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => ['<pageMargins'] }
|
44
44
|
ws = wb.add_worksheet
|
45
45
|
ws.paper = 9
|
46
46
|
ws.vertical_dpi = 200
|
@@ -52,7 +52,7 @@ class TestPrintOptions < XlsxWriterTestCase
|
|
52
52
|
end
|
53
53
|
|
54
54
|
test 'print_options06' do |wb, t|
|
55
|
-
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => [
|
55
|
+
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => ['<pageMargins'] }
|
56
56
|
ws = wb.add_worksheet
|
57
57
|
ws.paper = 9
|
58
58
|
ws.vertical_dpi = 200
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative './
|
3
|
+
require_relative './xlsx_func_testcase'
|
4
4
|
|
5
5
|
class TestPrintScale < XlsxWriterTestCase
|
6
6
|
test 'print_scale01' do |wb, t|
|
7
|
-
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => [
|
7
|
+
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => ['<pageMargins'] }
|
8
8
|
ws = wb.add_worksheet
|
9
9
|
ws.print_scale = 75
|
10
10
|
ws.paper = 9
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative './
|
3
|
+
require_relative './xlsx_func_testcase'
|
4
4
|
|
5
5
|
class TestProperties < XlsxWriterTestCase
|
6
6
|
test 'properties01' do |wb|
|
@@ -30,7 +30,7 @@ class TestProperties < XlsxWriterTestCase
|
|
30
30
|
test 'properties04' do |wb|
|
31
31
|
wb.properties['Checked by'] = 'Adam'
|
32
32
|
wb.properties['Date completed'] = Time.new(2016, 12, 12, 23)
|
33
|
-
wb.properties['Document number'] =
|
33
|
+
wb.properties['Document number'] = 12_345
|
34
34
|
wb.properties['Reference'] = 1.2345
|
35
35
|
wb.properties['Source'] = true
|
36
36
|
wb.properties['Status'] = false
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative './
|
3
|
+
require_relative './xlsx_func_testcase'
|
4
4
|
|
5
5
|
class TestProtect < XlsxWriterTestCase
|
6
6
|
test 'protect02' do |wb, t|
|
7
|
-
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => [
|
7
|
+
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => ['<pageMargins'] }
|
8
8
|
wb.add_format :unlocked, unlocked: true
|
9
9
|
wb.add_format :hidden, unlocked: true, hidden: true
|
10
10
|
wb.add_worksheet do |ws|
|
@@ -16,7 +16,7 @@ class TestProtect < XlsxWriterTestCase
|
|
16
16
|
end
|
17
17
|
|
18
18
|
test 'protect03' do |wb, t|
|
19
|
-
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => [
|
19
|
+
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => ['<pageMargins'] }
|
20
20
|
wb.add_format :unlocked, unlocked: true
|
21
21
|
wb.add_format :hidden, unlocked: true, hidden: true
|
22
22
|
wb.add_worksheet do |ws|
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative './
|
3
|
+
require_relative './xlsx_func_testcase'
|
4
4
|
|
5
5
|
class TestRepeat < XlsxWriterTestCase
|
6
6
|
test 'repeat05' do |wb, t|
|
7
|
-
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => [
|
8
|
-
'xl/worksheets/sheet3.xml' => [
|
7
|
+
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => ['<pageMargins'],
|
8
|
+
'xl/worksheets/sheet3.xml' => ['<pageMargins'] }
|
9
9
|
wb.add_worksheet do |ws|
|
10
10
|
ws.paper = 9
|
11
11
|
ws.vertical_dpi = 200
|
@@ -1,7 +1,6 @@
|
|
1
|
-
# coding: utf-8
|
2
1
|
# frozen_string_literal: true
|
3
2
|
|
4
|
-
require_relative './
|
3
|
+
require_relative './xlsx_func_testcase'
|
5
4
|
|
6
5
|
class TestRichString < XlsxWriterTestCase
|
7
6
|
test('rich_string01') do |wb|
|
@@ -53,12 +52,10 @@ class TestRichString < XlsxWriterTestCase
|
|
53
52
|
.write_string('A1', 'Foo', :bold)
|
54
53
|
.write_string('A2', 'Bar', :italic)
|
55
54
|
.write_rich_string('A3',
|
56
|
-
|
57
|
-
|
58
|
-
)
|
55
|
+
XlsxWriter::RichString.new(wb) <<
|
56
|
+
'This is ' << ['bold', :bold] << ' and this is ' << ['italic', :italic])
|
59
57
|
end
|
60
58
|
|
61
|
-
|
62
59
|
test('rich_string06') do |wb|
|
63
60
|
wb
|
64
61
|
.add_format(:red, font_color: XlsxWriter::Format::COLOR_RED)
|
@@ -73,7 +70,7 @@ class TestRichString < XlsxWriterTestCase
|
|
73
70
|
['a', ['bc', :bold], 'defg'],
|
74
71
|
['a', ['bcdef', :bold], 'g'],
|
75
72
|
['abc', ['de', :italic], 'fg'],
|
76
|
-
[['abcd', :italic], ['efg', nil]]
|
73
|
+
[['abcd', :italic], ['efg', nil]]
|
77
74
|
].map { |parts| XlsxWriter::RichString.new(wb, parts) }
|
78
75
|
wb
|
79
76
|
.add_format(:bold, bold: true)
|
@@ -153,7 +150,6 @@ class TestRichString < XlsxWriterTestCase
|
|
153
150
|
.write_string('A2', 'Bar', :italic)
|
154
151
|
.write_rich_string('A3', XlsxWriter::RichString.new(wb) <<
|
155
152
|
"This is\n" << ["bold\n", :bold] << "and this is\n" << ['italic', :italic],
|
156
|
-
|
157
|
-
)
|
153
|
+
:wrap)
|
158
154
|
end
|
159
155
|
end
|
@@ -9,7 +9,7 @@ class TestRubyWorksheet < Test::Unit::TestCase
|
|
9
9
|
with_xlsx_file do |wb|
|
10
10
|
ws = wb.add_worksheet
|
11
11
|
|
12
|
-
ws.add_row ['asd', 'asdf', 'asdfg', 'asdfgh', 'asdfghj', 'd'*250]
|
12
|
+
ws.add_row ['asd', 'asdf', 'asdfg', 'asdfgh', 'asdfghj', 'd' * 250]
|
13
13
|
assert_in_epsilon(4.4, ws.get_column_auto_width('A'))
|
14
14
|
assert_in_epsilon(4.4, ws.get_column_auto_width('B'))
|
15
15
|
assert_in_epsilon(5.5, ws.get_column_auto_width('C'))
|
@@ -18,7 +18,7 @@ class TestRubyWorksheet < Test::Unit::TestCase
|
|
18
18
|
assert_in_epsilon(255, ws.get_column_auto_width('F'))
|
19
19
|
|
20
20
|
wb.add_format :f, font_size: 14
|
21
|
-
ws.add_row [
|
21
|
+
ws.add_row %w[asd asdf asdfg asdfgh asdfghj], style: :f
|
22
22
|
assert_in_epsilon(5.6, ws.get_column_auto_width('A'))
|
23
23
|
assert_in_epsilon(5.6, ws.get_column_auto_width('B'))
|
24
24
|
assert_in_epsilon(7.0, ws.get_column_auto_width('C'))
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative './
|
3
|
+
require_relative './xlsx_func_testcase'
|
4
4
|
|
5
5
|
class TestSetSelection < XlsxWriterTestCase
|
6
6
|
test 'set_selection02' do |wb, t|
|
7
|
-
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => [
|
7
|
+
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => ['<pageMargins'] }
|
8
8
|
wb.add_worksheet { |ws| ws.set_selection(3, 2, 3, 2) }
|
9
9
|
wb.add_worksheet { |ws| ws.set_selection(3, 2, 6, 6) }
|
10
10
|
wb.add_worksheet { |ws| ws.set_selection(6, 6, 3, 2) }
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative './
|
3
|
+
require_relative './xlsx_func_testcase'
|
4
4
|
|
5
5
|
class TestSetStartPage < XlsxWriterTestCase
|
6
6
|
test 'set_start_page02' do |wb, t|
|
7
|
-
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => [
|
7
|
+
t.ignore_elements = { 'xl/worksheets/sheet1.xml' => ['<pageMargins'] }
|
8
8
|
wb.add_worksheet do |ws|
|
9
9
|
ws.start_page = 2
|
10
10
|
ws.paper = 9
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative './
|
3
|
+
require_relative './xlsx_func_testcase'
|
4
4
|
|
5
5
|
class TestSimple < XlsxWriterTestCase
|
6
6
|
test 'simple01' do |wb|
|
@@ -12,7 +12,7 @@ class TestSimple < XlsxWriterTestCase
|
|
12
12
|
|
13
13
|
test 'simple02' do |wb|
|
14
14
|
ws1 = wb.add_worksheet
|
15
|
-
|
15
|
+
wb.add_worksheet('Data Sheet')
|
16
16
|
ws3 = wb.add_worksheet
|
17
17
|
|
18
18
|
wb.add_format(:bold, bold: true)
|
@@ -27,10 +27,10 @@ class TestSimple < XlsxWriterTestCase
|
|
27
27
|
|
28
28
|
test 'simple03' do |wb|
|
29
29
|
ws1 = wb.add_worksheet
|
30
|
-
ws2 = wb.add_worksheet(
|
30
|
+
ws2 = wb.add_worksheet('Data Sheet')
|
31
31
|
ws3 = wb.add_worksheet
|
32
32
|
|
33
|
-
wb.add_format(:bold, bold: true)
|
33
|
+
wb.add_format(:bold, bold: true)
|
34
34
|
|
35
35
|
ws1.write_string(0, 'A', 'Foo')
|
36
36
|
ws1.write_number(1, 'A', 123)
|
@@ -40,16 +40,16 @@ class TestSimple < XlsxWriterTestCase
|
|
40
40
|
ws3.write_number('C4', 234)
|
41
41
|
|
42
42
|
# Ensure the active worksheet is overwritten, below.
|
43
|
-
|
43
|
+
ws2.activate
|
44
44
|
|
45
|
-
|
46
|
-
|
47
|
-
|
45
|
+
ws2.select
|
46
|
+
ws3.select
|
47
|
+
ws3.activate
|
48
48
|
end
|
49
49
|
|
50
50
|
test 'simple04' do |wb|
|
51
|
-
datetime1 = Time.new(0, 1,
|
52
|
-
datetime2 = Time.new(2013, 1, 27,
|
51
|
+
datetime1 = Time.new(0, 1, 1, 12)
|
52
|
+
datetime2 = Time.new(2013, 1, 27, 0)
|
53
53
|
|
54
54
|
ws = wb.add_worksheet
|
55
55
|
|
metadata
CHANGED
@@ -1,15 +1,28 @@
|
|
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.3.pre.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick H
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-06 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
12
|
+
- !ruby/object:Gem::Dependency
|
13
|
+
name: diffy
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - "~>"
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '3.4'
|
19
|
+
type: :development
|
20
|
+
prerelease: false
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - "~>"
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '3.4'
|
13
26
|
- !ruby/object:Gem::Dependency
|
14
27
|
name: rake-compiler
|
15
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -30,14 +43,14 @@ dependencies:
|
|
30
43
|
requirements:
|
31
44
|
- - "~>"
|
32
45
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
46
|
+
version: '2.3'
|
34
47
|
type: :development
|
35
48
|
prerelease: false
|
36
49
|
version_requirements: !ruby/object:Gem::Requirement
|
37
50
|
requirements:
|
38
51
|
- - "~>"
|
39
52
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
53
|
+
version: '2.3'
|
41
54
|
- !ruby/object:Gem::Dependency
|
42
55
|
name: test-unit
|
43
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,8 +65,6 @@ dependencies:
|
|
52
65
|
- - "~>"
|
53
66
|
- !ruby/object:Gem::Version
|
54
67
|
version: '3.2'
|
55
|
-
description:
|
56
|
-
email:
|
57
68
|
executables: []
|
58
69
|
extensions:
|
59
70
|
- ext/xlsxwriter/extconf.rb
|
@@ -74,6 +85,7 @@ files:
|
|
74
85
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/app.h
|
75
86
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/chart.h
|
76
87
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/chartsheet.h
|
88
|
+
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/comment.h
|
77
89
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/common.h
|
78
90
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/content_types.h
|
79
91
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/core.h
|
@@ -87,11 +99,13 @@ files:
|
|
87
99
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/styles.h
|
88
100
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/theme.h
|
89
101
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/third_party/ioapi.h
|
102
|
+
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/third_party/md5.h
|
90
103
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/third_party/queue.h
|
91
104
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/third_party/tmpfileplus.h
|
92
105
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/third_party/tree.h
|
93
106
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/third_party/zip.h
|
94
107
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/utility.h
|
108
|
+
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/vml.h
|
95
109
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/workbook.h
|
96
110
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/worksheet.h
|
97
111
|
- ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/xmlwriter.h
|
@@ -100,6 +114,7 @@ files:
|
|
100
114
|
- ext/xlsxwriter/libxlsxwriter/src/app.c
|
101
115
|
- ext/xlsxwriter/libxlsxwriter/src/chart.c
|
102
116
|
- ext/xlsxwriter/libxlsxwriter/src/chartsheet.c
|
117
|
+
- ext/xlsxwriter/libxlsxwriter/src/comment.c
|
103
118
|
- ext/xlsxwriter/libxlsxwriter/src/content_types.c
|
104
119
|
- ext/xlsxwriter/libxlsxwriter/src/core.c
|
105
120
|
- ext/xlsxwriter/libxlsxwriter/src/custom.c
|
@@ -112,9 +127,13 @@ files:
|
|
112
127
|
- ext/xlsxwriter/libxlsxwriter/src/styles.c
|
113
128
|
- ext/xlsxwriter/libxlsxwriter/src/theme.c
|
114
129
|
- ext/xlsxwriter/libxlsxwriter/src/utility.c
|
130
|
+
- ext/xlsxwriter/libxlsxwriter/src/vml.c
|
115
131
|
- ext/xlsxwriter/libxlsxwriter/src/workbook.c
|
116
132
|
- ext/xlsxwriter/libxlsxwriter/src/worksheet.c
|
117
133
|
- ext/xlsxwriter/libxlsxwriter/src/xmlwriter.c
|
134
|
+
- ext/xlsxwriter/libxlsxwriter/third_party/md5/Makefile
|
135
|
+
- ext/xlsxwriter/libxlsxwriter/third_party/md5/md5.c
|
136
|
+
- ext/xlsxwriter/libxlsxwriter/third_party/md5/md5.h
|
118
137
|
- ext/xlsxwriter/libxlsxwriter/third_party/minizip/Makefile
|
119
138
|
- ext/xlsxwriter/libxlsxwriter/third_party/minizip/crypt.h
|
120
139
|
- ext/xlsxwriter/libxlsxwriter/third_party/minizip/ioapi.c
|
@@ -134,6 +153,8 @@ files:
|
|
134
153
|
- ext/xlsxwriter/libxlsxwriter/third_party/tmpfileplus/tmpfileplus.h
|
135
154
|
- ext/xlsxwriter/rich_string.c
|
136
155
|
- ext/xlsxwriter/rich_string.h
|
156
|
+
- ext/xlsxwriter/shared_strings.c
|
157
|
+
- ext/xlsxwriter/shared_strings.h
|
137
158
|
- ext/xlsxwriter/workbook.c
|
138
159
|
- ext/xlsxwriter/workbook.h
|
139
160
|
- ext/xlsxwriter/workbook_properties.c
|
@@ -147,61 +168,61 @@ files:
|
|
147
168
|
- lib/xlsxwriter/rich_string.rb
|
148
169
|
- lib/xlsxwriter/version.rb
|
149
170
|
- lib/xlsxwriter/worksheet.rb
|
150
|
-
- test/
|
171
|
+
- test/run_test.rb
|
151
172
|
- test/support/chart_test.rb
|
152
173
|
- test/support/with_xlsx_file.rb
|
153
174
|
- test/support/xlsx_comparable.rb
|
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/
|
196
|
-
- test/
|
197
|
-
- test/
|
198
|
-
- test/
|
199
|
-
- test/
|
175
|
+
- test/test_array_formula.rb
|
176
|
+
- test/test_autofilter.rb
|
177
|
+
- test/test_chart_area.rb
|
178
|
+
- test/test_chart_axis.rb
|
179
|
+
- test/test_chart_bar.rb
|
180
|
+
- test/test_chart_blank.rb
|
181
|
+
- test/test_chart_column.rb
|
182
|
+
- test/test_chart_doughnut.rb
|
183
|
+
- test/test_chart_legend.rb
|
184
|
+
- test/test_chart_pie.rb
|
185
|
+
- test/test_chart_scatter.rb
|
186
|
+
- test/test_chart_size.rb
|
187
|
+
- test/test_chart_title.rb
|
188
|
+
- test/test_chartsheet.rb
|
189
|
+
- test/test_data.rb
|
190
|
+
- test/test_data_validation.rb
|
191
|
+
- test/test_default_row.rb
|
192
|
+
- test/test_defined_name.rb
|
193
|
+
- test/test_errors.rb
|
194
|
+
- test/test_escapes.rb
|
195
|
+
- test/test_fit_to_pages.rb
|
196
|
+
- test/test_formatting.rb
|
197
|
+
- test/test_gridlines.rb
|
198
|
+
- test/test_hyperlink.rb
|
199
|
+
- test/test_image.rb
|
200
|
+
- test/test_macro.rb
|
201
|
+
- test/test_merge_range.rb
|
202
|
+
- test/test_misc.rb
|
203
|
+
- test/test_optimize.rb
|
204
|
+
- test/test_outline.rb
|
205
|
+
- test/test_page_breaks.rb
|
206
|
+
- test/test_page_setup.rb
|
207
|
+
- test/test_panes.rb
|
208
|
+
- test/test_print_area.rb
|
209
|
+
- test/test_print_options.rb
|
210
|
+
- test/test_print_scale.rb
|
211
|
+
- test/test_properties.rb
|
212
|
+
- test/test_protect.rb
|
213
|
+
- test/test_repeat.rb
|
214
|
+
- test/test_rich_string.rb
|
215
|
+
- test/test_row_col_format.rb
|
216
|
+
- test/test_ruby_worksheet.rb
|
217
|
+
- test/test_set_selection.rb
|
218
|
+
- test/test_set_start_page.rb
|
219
|
+
- test/test_simple.rb
|
220
|
+
- test/test_types.rb
|
221
|
+
- test/xlsx_func_testcase.rb
|
200
222
|
homepage: https://github.com/gekola/xlsxwriter-rb
|
201
223
|
licenses:
|
202
224
|
- BSD-2-Clause-FreeBSD
|
203
225
|
metadata: {}
|
204
|
-
post_install_message:
|
205
226
|
rdoc_options: []
|
206
227
|
require_paths:
|
207
228
|
- lib
|
@@ -212,62 +233,62 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
212
233
|
version: '0'
|
213
234
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
214
235
|
requirements:
|
215
|
-
- - "
|
236
|
+
- - ">="
|
216
237
|
- !ruby/object:Gem::Version
|
217
|
-
version:
|
238
|
+
version: '0'
|
218
239
|
requirements: []
|
219
|
-
rubygems_version: 3.
|
220
|
-
signing_key:
|
240
|
+
rubygems_version: 3.6.2
|
221
241
|
specification_version: 4
|
222
242
|
summary: Ruby interface to libxlsxwriter
|
223
243
|
test_files:
|
224
|
-
- test/
|
225
|
-
- test/test-chart-bar.rb
|
226
|
-
- test/test-page-setup.rb
|
227
|
-
- test/test-page-breaks.rb
|
228
|
-
- test/test-chartsheet.rb
|
229
|
-
- test/test-protect.rb
|
230
|
-
- test/test-ruby-worksheet.rb
|
231
|
-
- test/test-chart-legend.rb
|
232
|
-
- test/test-chart-axis.rb
|
233
|
-
- test/test-print-area.rb
|
234
|
-
- test/test-default-row.rb
|
235
|
-
- test/test-set-selection.rb
|
236
|
-
- test/test-chart-area.rb
|
237
|
-
- test/run-test.rb
|
238
|
-
- test/test-errors.rb
|
239
|
-
- test/test-chart-column.rb
|
240
|
-
- test/test-types.rb
|
241
|
-
- test/test-set-start-page.rb
|
242
|
-
- test/test-chart-pie.rb
|
243
|
-
- test/test-macro.rb
|
244
|
-
- test/test-repeat.rb
|
245
|
-
- test/test-chart-doughnut.rb
|
246
|
-
- test/test-row-col-format.rb
|
247
|
-
- test/test-escapes.rb
|
248
|
-
- test/test-formatting.rb
|
244
|
+
- test/run_test.rb
|
249
245
|
- test/support/chart_test.rb
|
250
246
|
- test/support/with_xlsx_file.rb
|
251
247
|
- test/support/xlsx_comparable.rb
|
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/
|
269
|
-
- test/
|
270
|
-
- test/
|
271
|
-
- test/
|
272
|
-
- test/
|
273
|
-
- test/
|
248
|
+
- test/test_array_formula.rb
|
249
|
+
- test/test_autofilter.rb
|
250
|
+
- test/test_chart_area.rb
|
251
|
+
- test/test_chart_axis.rb
|
252
|
+
- test/test_chart_bar.rb
|
253
|
+
- test/test_chart_blank.rb
|
254
|
+
- test/test_chart_column.rb
|
255
|
+
- test/test_chart_doughnut.rb
|
256
|
+
- test/test_chart_legend.rb
|
257
|
+
- test/test_chart_pie.rb
|
258
|
+
- test/test_chart_scatter.rb
|
259
|
+
- test/test_chart_size.rb
|
260
|
+
- test/test_chart_title.rb
|
261
|
+
- test/test_chartsheet.rb
|
262
|
+
- test/test_data.rb
|
263
|
+
- test/test_data_validation.rb
|
264
|
+
- test/test_default_row.rb
|
265
|
+
- test/test_defined_name.rb
|
266
|
+
- test/test_errors.rb
|
267
|
+
- test/test_escapes.rb
|
268
|
+
- test/test_fit_to_pages.rb
|
269
|
+
- test/test_formatting.rb
|
270
|
+
- test/test_gridlines.rb
|
271
|
+
- test/test_hyperlink.rb
|
272
|
+
- test/test_image.rb
|
273
|
+
- test/test_macro.rb
|
274
|
+
- test/test_merge_range.rb
|
275
|
+
- test/test_misc.rb
|
276
|
+
- test/test_optimize.rb
|
277
|
+
- test/test_outline.rb
|
278
|
+
- test/test_page_breaks.rb
|
279
|
+
- test/test_page_setup.rb
|
280
|
+
- test/test_panes.rb
|
281
|
+
- test/test_print_area.rb
|
282
|
+
- test/test_print_options.rb
|
283
|
+
- test/test_print_scale.rb
|
284
|
+
- test/test_properties.rb
|
285
|
+
- test/test_protect.rb
|
286
|
+
- test/test_repeat.rb
|
287
|
+
- test/test_rich_string.rb
|
288
|
+
- test/test_row_col_format.rb
|
289
|
+
- test/test_ruby_worksheet.rb
|
290
|
+
- test/test_set_selection.rb
|
291
|
+
- test/test_set_start_page.rb
|
292
|
+
- test/test_simple.rb
|
293
|
+
- test/test_types.rb
|
294
|
+
- test/xlsx_func_testcase.rb
|