write_xlsx 0.62.0 → 0.64.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +14 -1
- data/examples/chart_data_tools.rb +215 -0
- data/examples/chart_pie.rb +36 -5
- data/examples/sparklines2.rb +1 -1
- data/examples/tab_colors.rb +3 -3
- data/lib/write_xlsx/chart.rb +559 -516
- data/lib/write_xlsx/chart/area.rb +4 -1
- data/lib/write_xlsx/chart/axis.rb +132 -0
- data/lib/write_xlsx/chart/bar.rb +17 -9
- data/lib/write_xlsx/chart/column.rb +9 -1
- data/lib/write_xlsx/chart/line.rb +24 -0
- data/lib/write_xlsx/chart/radar.rb +2 -2
- data/lib/write_xlsx/chart/scatter.rb +19 -0
- data/lib/write_xlsx/chart/stock.rb +10 -3
- data/lib/write_xlsx/drawing.rb +43 -44
- data/lib/write_xlsx/package/vml.rb +21 -14
- data/lib/write_xlsx/shape.rb +173 -22
- data/lib/write_xlsx/sparkline.rb +524 -0
- data/lib/write_xlsx/version.rb +1 -1
- data/lib/write_xlsx/workbook.rb +183 -115
- data/lib/write_xlsx/worksheet.rb +821 -1073
- data/lib/write_xlsx/worksheet/cell_data.rb +132 -0
- data/lib/write_xlsx/worksheet/print_style.rb +51 -0
- data/test/chart/test_add_series.rb +31 -6
- data/test/chart/test_write_d_lbls.rb +18 -18
- data/test/chart/test_write_number_format.rb +20 -24
- data/test/drawing/test_drawing_shape_01.rb +1 -1
- data/test/drawing/test_drawing_shape_02.rb +2 -2
- data/test/drawing/test_drawing_shape_03.rb +5 -5
- data/test/drawing/test_drawing_shape_04.rb +3 -3
- data/test/drawing/test_drawing_shape_05.rb +4 -4
- data/test/drawing/test_drawing_shape_07.rb +2 -2
- data/test/perl_output/chart_data_tools.xlsx +0 -0
- data/test/perl_output/chart_pie.xlsx +0 -0
- data/test/regression/disabled_test_vml04.rb +2 -2
- data/test/regression/test_chart_drop_lines01.rb +46 -0
- data/test/regression/test_chart_drop_lines02.rb +51 -0
- data/test/regression/test_chart_drop_lines03.rb +46 -0
- data/test/regression/test_chart_drop_lines04.rb +64 -0
- data/test/regression/test_chart_errorbars01.rb +47 -0
- data/test/regression/test_chart_errorbars02.rb +57 -0
- data/test/regression/test_chart_errorbars03.rb +53 -0
- data/test/regression/test_chart_errorbars04.rb +48 -0
- data/test/regression/test_chart_errorbars05.rb +47 -0
- data/test/regression/test_chart_errorbars06.rb +47 -0
- data/test/regression/test_chart_errorbars07.rb +66 -0
- data/test/regression/test_chart_font02.rb +1 -1
- data/test/regression/test_chart_font06.rb +1 -1
- data/test/regression/test_chart_gridlines04.rb +2 -1
- data/test/regression/test_chart_gridlines08.rb +2 -1
- data/test/regression/test_chart_points01.rb +37 -0
- data/test/regression/test_chart_points02.rb +40 -0
- data/test/regression/test_chart_points03.rb +42 -0
- data/test/regression/test_chart_points04.rb +52 -0
- data/test/regression/test_chart_points05.rb +49 -0
- data/test/regression/test_chart_points06.rb +49 -0
- data/test/regression/test_chartsheet05.rb +1 -1
- data/test/regression/test_chartsheet06.rb +1 -1
- data/test/regression/test_comment01.rb +1 -1
- data/test/regression/test_comment02.rb +1 -1
- data/test/regression/test_comment03.rb +1 -1
- data/test/regression/test_comment04.rb +2 -2
- data/test/regression/test_comment06.rb +1 -1
- data/test/regression/test_comment07.rb +1 -1
- data/test/regression/test_comment08.rb +1 -1
- data/test/regression/test_comment09.rb +1 -1
- data/test/regression/test_comment10.rb +1 -1
- data/test/regression/test_default_row04.rb +1 -1
- data/test/regression/test_escapes02.rb +1 -1
- data/test/regression/test_hyperlink15.rb +2 -2
- data/test/regression/test_shape_connect01.rb +6 -6
- data/test/regression/test_shape_connect02.rb +6 -6
- data/test/regression/test_shape_connect03.rb +11 -11
- data/test/regression/test_shape_connect04.rb +10 -10
- data/test/regression/test_shape_scale01.rb +2 -2
- data/test/regression/test_shape_stencil01.rb +3 -3
- data/test/regression/test_tab_color01.rb +1 -1
- data/test/regression/test_table04.rb +1 -1
- data/test/regression/test_table05.rb +1 -1
- data/test/regression/test_table06.rb +1 -1
- data/test/regression/test_vml01.rb +1 -1
- data/test/regression/test_vml02.rb +1 -1
- data/test/regression/test_vml03.rb +2 -2
- data/test/regression/xlsx_files/chart_drop_lines01.xlsx +0 -0
- data/test/regression/xlsx_files/chart_drop_lines02.xlsx +0 -0
- data/test/regression/xlsx_files/chart_drop_lines03.xlsx +0 -0
- data/test/regression/xlsx_files/chart_drop_lines04.xlsx +0 -0
- data/test/regression/xlsx_files/chart_errorbars01.xlsx +0 -0
- data/test/regression/xlsx_files/chart_errorbars02.xlsx +0 -0
- data/test/regression/xlsx_files/chart_errorbars03.xlsx +0 -0
- data/test/regression/xlsx_files/chart_errorbars04.xlsx +0 -0
- data/test/regression/xlsx_files/chart_errorbars05.xlsx +0 -0
- data/test/regression/xlsx_files/chart_errorbars06.xlsx +0 -0
- data/test/regression/xlsx_files/chart_errorbars07.xlsx +0 -0
- data/test/regression/xlsx_files/chart_points01.xlsx +0 -0
- data/test/regression/xlsx_files/chart_points02.xlsx +0 -0
- data/test/regression/xlsx_files/chart_points03.xlsx +0 -0
- data/test/regression/xlsx_files/chart_points04.xlsx +0 -0
- data/test/regression/xlsx_files/chart_points05.xlsx +0 -0
- data/test/regression/xlsx_files/chart_points06.xlsx +0 -0
- data/test/regression/xlsx_files/chart_stock02.xlsx +0 -0
- data/test/test_example_match.rb +278 -57
- data/test/worksheet/test_convert_date_time_02.rb +427 -433
- data/test/worksheet/test_convert_date_time_03.rb +1 -1
- data/test/worksheet/test_write_sheet_pr.rb +2 -2
- data/test/worksheet/test_write_sheet_view1.rb +2 -2
- metadata +80 -10
@@ -18,7 +18,7 @@ def test_write_sheet_pr_fit_page
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def test_write_sheet_pr_tab_color
|
21
|
-
@worksheet.
|
21
|
+
@worksheet.tab_color = 'red'
|
22
22
|
@worksheet.__send__('write_sheet_pr')
|
23
23
|
result = @worksheet.instance_variable_get(:@writer).string
|
24
24
|
expected = '<sheetPr><tabColor rgb="FFFF0000"/></sheetPr>'
|
@@ -27,7 +27,7 @@ def test_write_sheet_pr_tab_color
|
|
27
27
|
|
28
28
|
def test_write_sheet_pr_fit_page_and_tab_color
|
29
29
|
@worksheet.instance_variable_get(:@print_style).fit_page = true
|
30
|
-
@worksheet.
|
30
|
+
@worksheet.tab_color = 'red'
|
31
31
|
@worksheet.__send__('write_sheet_pr')
|
32
32
|
result = @worksheet.instance_variable_get(:@writer).string
|
33
33
|
expected = '<sheetPr><tabColor rgb="FFFF0000"/><pageSetUpPr fitToPage="1"/></sheetPr>'
|
@@ -19,7 +19,7 @@ def test_write_sheet_views
|
|
19
19
|
|
20
20
|
def test_write_sheet_views_and_zoom_100
|
21
21
|
@worksheet.select
|
22
|
-
@worksheet.
|
22
|
+
@worksheet.zoom = 100
|
23
23
|
@worksheet.__send__('write_sheet_views')
|
24
24
|
result = @worksheet.instance_variable_get(:@writer).string
|
25
25
|
expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"/></sheetViews>'
|
@@ -28,7 +28,7 @@ def test_write_sheet_views_and_zoom_100
|
|
28
28
|
|
29
29
|
def test_write_sheet_views_and_zoom_200
|
30
30
|
@worksheet.select
|
31
|
-
@worksheet.
|
31
|
+
@worksheet.zoom = 200
|
32
32
|
@worksheet.__send__('write_sheet_views')
|
33
33
|
result = @worksheet.instance_variable_get(:@writer).string
|
34
34
|
expected = '<sheetViews><sheetView tabSelected="1" zoomScale="200" zoomScaleNormal="200" workbookViewId="0"/></sheetViews>'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: write_xlsx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.64.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-03-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubyzip
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirement: &83702490 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,12 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
24
|
+
version_requirements: *83702490
|
30
25
|
description: ! "write_xlsx s a gem to create a new file in the Excel 2007+ XLSX format,
|
31
26
|
and you can use the same interface as writeexcel gem.\nThe WriteXLSX supports the
|
32
27
|
following features:\n * Multiple worksheets\n * Strings and numbers\n * Unicode
|
@@ -62,6 +57,7 @@ files:
|
|
62
57
|
- examples/chart_bar.rb
|
63
58
|
- examples/chart_column.rb
|
64
59
|
- examples/chart_data_table.rb
|
60
|
+
- examples/chart_data_tools.rb
|
65
61
|
- examples/chart_line.rb
|
66
62
|
- examples/chart_pie.rb
|
67
63
|
- examples/chart_radar.rb
|
@@ -119,6 +115,7 @@ files:
|
|
119
115
|
- lib/write_xlsx.rb
|
120
116
|
- lib/write_xlsx/chart.rb
|
121
117
|
- lib/write_xlsx/chart/area.rb
|
118
|
+
- lib/write_xlsx/chart/axis.rb
|
122
119
|
- lib/write_xlsx/chart/bar.rb
|
123
120
|
- lib/write_xlsx/chart/column.rb
|
124
121
|
- lib/write_xlsx/chart/line.rb
|
@@ -146,10 +143,13 @@ files:
|
|
146
143
|
- lib/write_xlsx/package/vml.rb
|
147
144
|
- lib/write_xlsx/package/xml_writer_simple.rb
|
148
145
|
- lib/write_xlsx/shape.rb
|
146
|
+
- lib/write_xlsx/sparkline.rb
|
149
147
|
- lib/write_xlsx/utility.rb
|
150
148
|
- lib/write_xlsx/version.rb
|
151
149
|
- lib/write_xlsx/workbook.rb
|
152
150
|
- lib/write_xlsx/worksheet.rb
|
151
|
+
- lib/write_xlsx/worksheet/cell_data.rb
|
152
|
+
- lib/write_xlsx/worksheet/print_style.rb
|
153
153
|
- lib/write_xlsx/zip_file_utils.rb
|
154
154
|
- test/chart/test_add_series.rb
|
155
155
|
- test/chart/test_process_names.rb
|
@@ -264,6 +264,7 @@ files:
|
|
264
264
|
- test/perl_output/chart_bar.xlsx
|
265
265
|
- test/perl_output/chart_column.xlsx
|
266
266
|
- test/perl_output/chart_data_table.xlsx
|
267
|
+
- test/perl_output/chart_data_tools.xlsx
|
267
268
|
- test/perl_output/chart_line.xlsx
|
268
269
|
- test/perl_output/chart_pie.xlsx
|
269
270
|
- test/perl_output/chart_radar.xlsx
|
@@ -416,6 +417,17 @@ files:
|
|
416
417
|
- test/regression/test_chart_crossing02.rb
|
417
418
|
- test/regression/test_chart_crossing03.rb
|
418
419
|
- test/regression/test_chart_crossing04.rb
|
420
|
+
- test/regression/test_chart_drop_lines01.rb
|
421
|
+
- test/regression/test_chart_drop_lines02.rb
|
422
|
+
- test/regression/test_chart_drop_lines03.rb
|
423
|
+
- test/regression/test_chart_drop_lines04.rb
|
424
|
+
- test/regression/test_chart_errorbars01.rb
|
425
|
+
- test/regression/test_chart_errorbars02.rb
|
426
|
+
- test/regression/test_chart_errorbars03.rb
|
427
|
+
- test/regression/test_chart_errorbars04.rb
|
428
|
+
- test/regression/test_chart_errorbars05.rb
|
429
|
+
- test/regression/test_chart_errorbars06.rb
|
430
|
+
- test/regression/test_chart_errorbars07.rb
|
419
431
|
- test/regression/test_chart_font01.rb
|
420
432
|
- test/regression/test_chart_font02.rb
|
421
433
|
- test/regression/test_chart_font03.rb
|
@@ -458,6 +470,12 @@ files:
|
|
458
470
|
- test/regression/test_chart_order02.rb
|
459
471
|
- test/regression/test_chart_order03.rb
|
460
472
|
- test/regression/test_chart_pie01.rb
|
473
|
+
- test/regression/test_chart_points01.rb
|
474
|
+
- test/regression/test_chart_points02.rb
|
475
|
+
- test/regression/test_chart_points03.rb
|
476
|
+
- test/regression/test_chart_points04.rb
|
477
|
+
- test/regression/test_chart_points05.rb
|
478
|
+
- test/regression/test_chart_points06.rb
|
461
479
|
- test/regression/test_chart_radar01.rb
|
462
480
|
- test/regression/test_chart_radar02.rb
|
463
481
|
- test/regression/test_chart_radar03.rb
|
@@ -736,6 +754,17 @@ files:
|
|
736
754
|
- test/regression/xlsx_files/chart_crossing02.xlsx
|
737
755
|
- test/regression/xlsx_files/chart_crossing03.xlsx
|
738
756
|
- test/regression/xlsx_files/chart_crossing04.xlsx
|
757
|
+
- test/regression/xlsx_files/chart_drop_lines01.xlsx
|
758
|
+
- test/regression/xlsx_files/chart_drop_lines02.xlsx
|
759
|
+
- test/regression/xlsx_files/chart_drop_lines03.xlsx
|
760
|
+
- test/regression/xlsx_files/chart_drop_lines04.xlsx
|
761
|
+
- test/regression/xlsx_files/chart_errorbars01.xlsx
|
762
|
+
- test/regression/xlsx_files/chart_errorbars02.xlsx
|
763
|
+
- test/regression/xlsx_files/chart_errorbars03.xlsx
|
764
|
+
- test/regression/xlsx_files/chart_errorbars04.xlsx
|
765
|
+
- test/regression/xlsx_files/chart_errorbars05.xlsx
|
766
|
+
- test/regression/xlsx_files/chart_errorbars06.xlsx
|
767
|
+
- test/regression/xlsx_files/chart_errorbars07.xlsx
|
739
768
|
- test/regression/xlsx_files/chart_font01.xlsx
|
740
769
|
- test/regression/xlsx_files/chart_font02.xlsx
|
741
770
|
- test/regression/xlsx_files/chart_font03.xlsx
|
@@ -777,6 +806,12 @@ files:
|
|
777
806
|
- test/regression/xlsx_files/chart_order01.xlsx
|
778
807
|
- test/regression/xlsx_files/chart_order03.xlsx
|
779
808
|
- test/regression/xlsx_files/chart_pie01.xlsx
|
809
|
+
- test/regression/xlsx_files/chart_points01.xlsx
|
810
|
+
- test/regression/xlsx_files/chart_points02.xlsx
|
811
|
+
- test/regression/xlsx_files/chart_points03.xlsx
|
812
|
+
- test/regression/xlsx_files/chart_points04.xlsx
|
813
|
+
- test/regression/xlsx_files/chart_points05.xlsx
|
814
|
+
- test/regression/xlsx_files/chart_points06.xlsx
|
780
815
|
- test/regression/xlsx_files/chart_radar01.xlsx
|
781
816
|
- test/regression/xlsx_files/chart_radar02.xlsx
|
782
817
|
- test/regression/xlsx_files/chart_radar03.xlsx
|
@@ -1094,7 +1129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1094
1129
|
version: '0'
|
1095
1130
|
requirements: []
|
1096
1131
|
rubyforge_project:
|
1097
|
-
rubygems_version: 1.8.
|
1132
|
+
rubygems_version: 1.8.10
|
1098
1133
|
signing_key:
|
1099
1134
|
specification_version: 3
|
1100
1135
|
summary: write_xlsx is a gem to create a new file in the Excel 2007+ XLSX format.
|
@@ -1212,6 +1247,7 @@ test_files:
|
|
1212
1247
|
- test/perl_output/chart_bar.xlsx
|
1213
1248
|
- test/perl_output/chart_column.xlsx
|
1214
1249
|
- test/perl_output/chart_data_table.xlsx
|
1250
|
+
- test/perl_output/chart_data_tools.xlsx
|
1215
1251
|
- test/perl_output/chart_line.xlsx
|
1216
1252
|
- test/perl_output/chart_pie.xlsx
|
1217
1253
|
- test/perl_output/chart_radar.xlsx
|
@@ -1364,6 +1400,17 @@ test_files:
|
|
1364
1400
|
- test/regression/test_chart_crossing02.rb
|
1365
1401
|
- test/regression/test_chart_crossing03.rb
|
1366
1402
|
- test/regression/test_chart_crossing04.rb
|
1403
|
+
- test/regression/test_chart_drop_lines01.rb
|
1404
|
+
- test/regression/test_chart_drop_lines02.rb
|
1405
|
+
- test/regression/test_chart_drop_lines03.rb
|
1406
|
+
- test/regression/test_chart_drop_lines04.rb
|
1407
|
+
- test/regression/test_chart_errorbars01.rb
|
1408
|
+
- test/regression/test_chart_errorbars02.rb
|
1409
|
+
- test/regression/test_chart_errorbars03.rb
|
1410
|
+
- test/regression/test_chart_errorbars04.rb
|
1411
|
+
- test/regression/test_chart_errorbars05.rb
|
1412
|
+
- test/regression/test_chart_errorbars06.rb
|
1413
|
+
- test/regression/test_chart_errorbars07.rb
|
1367
1414
|
- test/regression/test_chart_font01.rb
|
1368
1415
|
- test/regression/test_chart_font02.rb
|
1369
1416
|
- test/regression/test_chart_font03.rb
|
@@ -1406,6 +1453,12 @@ test_files:
|
|
1406
1453
|
- test/regression/test_chart_order02.rb
|
1407
1454
|
- test/regression/test_chart_order03.rb
|
1408
1455
|
- test/regression/test_chart_pie01.rb
|
1456
|
+
- test/regression/test_chart_points01.rb
|
1457
|
+
- test/regression/test_chart_points02.rb
|
1458
|
+
- test/regression/test_chart_points03.rb
|
1459
|
+
- test/regression/test_chart_points04.rb
|
1460
|
+
- test/regression/test_chart_points05.rb
|
1461
|
+
- test/regression/test_chart_points06.rb
|
1409
1462
|
- test/regression/test_chart_radar01.rb
|
1410
1463
|
- test/regression/test_chart_radar02.rb
|
1411
1464
|
- test/regression/test_chart_radar03.rb
|
@@ -1684,6 +1737,17 @@ test_files:
|
|
1684
1737
|
- test/regression/xlsx_files/chart_crossing02.xlsx
|
1685
1738
|
- test/regression/xlsx_files/chart_crossing03.xlsx
|
1686
1739
|
- test/regression/xlsx_files/chart_crossing04.xlsx
|
1740
|
+
- test/regression/xlsx_files/chart_drop_lines01.xlsx
|
1741
|
+
- test/regression/xlsx_files/chart_drop_lines02.xlsx
|
1742
|
+
- test/regression/xlsx_files/chart_drop_lines03.xlsx
|
1743
|
+
- test/regression/xlsx_files/chart_drop_lines04.xlsx
|
1744
|
+
- test/regression/xlsx_files/chart_errorbars01.xlsx
|
1745
|
+
- test/regression/xlsx_files/chart_errorbars02.xlsx
|
1746
|
+
- test/regression/xlsx_files/chart_errorbars03.xlsx
|
1747
|
+
- test/regression/xlsx_files/chart_errorbars04.xlsx
|
1748
|
+
- test/regression/xlsx_files/chart_errorbars05.xlsx
|
1749
|
+
- test/regression/xlsx_files/chart_errorbars06.xlsx
|
1750
|
+
- test/regression/xlsx_files/chart_errorbars07.xlsx
|
1687
1751
|
- test/regression/xlsx_files/chart_font01.xlsx
|
1688
1752
|
- test/regression/xlsx_files/chart_font02.xlsx
|
1689
1753
|
- test/regression/xlsx_files/chart_font03.xlsx
|
@@ -1725,6 +1789,12 @@ test_files:
|
|
1725
1789
|
- test/regression/xlsx_files/chart_order01.xlsx
|
1726
1790
|
- test/regression/xlsx_files/chart_order03.xlsx
|
1727
1791
|
- test/regression/xlsx_files/chart_pie01.xlsx
|
1792
|
+
- test/regression/xlsx_files/chart_points01.xlsx
|
1793
|
+
- test/regression/xlsx_files/chart_points02.xlsx
|
1794
|
+
- test/regression/xlsx_files/chart_points03.xlsx
|
1795
|
+
- test/regression/xlsx_files/chart_points04.xlsx
|
1796
|
+
- test/regression/xlsx_files/chart_points05.xlsx
|
1797
|
+
- test/regression/xlsx_files/chart_points06.xlsx
|
1728
1798
|
- test/regression/xlsx_files/chart_radar01.xlsx
|
1729
1799
|
- test/regression/xlsx_files/chart_radar02.xlsx
|
1730
1800
|
- test/regression/xlsx_files/chart_radar03.xlsx
|