writeexcel 0.6.6 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.document +0 -0
- data/.gitattributes +0 -0
- data/README.rdoc +9 -35
- data/Rakefile +0 -0
- data/VERSION +1 -1
- data/charts/chartex.rb +0 -0
- data/charts/demo1.rb +0 -0
- data/charts/demo101.bin +0 -0
- data/charts/demo2.rb +0 -0
- data/charts/demo201.bin +0 -0
- data/charts/demo3.rb +0 -0
- data/charts/demo301.bin +0 -0
- data/charts/demo4.rb +0 -0
- data/charts/demo401.bin +0 -0
- data/charts/demo5.rb +0 -0
- data/charts/demo501.bin +0 -0
- data/examples/a_simple.rb +0 -0
- data/examples/autofilter.rb +0 -0
- data/examples/bigfile.rb +0 -0
- data/examples/chart_area.rb +0 -0
- data/examples/chart_bar.rb +0 -0
- data/examples/chart_column.rb +0 -0
- data/examples/chart_line.rb +0 -0
- data/examples/chart_pie.rb +0 -0
- data/examples/chart_scatter.rb +0 -0
- data/examples/chart_stock.rb +0 -0
- data/examples/chess.rb +0 -0
- data/examples/colors.rb +0 -0
- data/examples/comments1.rb +0 -0
- data/examples/comments2.rb +0 -0
- data/examples/copyformat.rb +0 -0
- data/examples/data_validate.rb +0 -0
- data/examples/date_time.rb +0 -0
- data/examples/defined_name.rb +0 -0
- data/examples/demo.rb +0 -0
- data/examples/diag_border.rb +0 -0
- data/examples/formats.rb +0 -0
- data/examples/formula_result.rb +0 -0
- data/examples/header.rb +0 -0
- data/examples/hide_sheet.rb +0 -0
- data/examples/hyperlink.rb +0 -0
- data/examples/images.rb +0 -0
- data/examples/indent.rb +0 -0
- data/examples/merge1.rb +0 -0
- data/examples/merge2.rb +0 -0
- data/examples/merge3.rb +0 -0
- data/examples/merge4.rb +0 -0
- data/examples/merge5.rb +0 -0
- data/examples/merge6.rb +0 -0
- data/examples/outline.rb +0 -0
- data/examples/outline_collapsed.rb +0 -0
- data/examples/panes.rb +0 -0
- data/examples/properties.rb +0 -0
- data/examples/properties_jp.rb +0 -0
- data/examples/protection.rb +0 -0
- data/examples/regions.rb +0 -0
- data/examples/repeat.rb +0 -0
- data/examples/republic.png +0 -0
- data/examples/right_to_left.rb +0 -0
- data/examples/row_wrap.rb +0 -0
- data/examples/set_first_sheet.rb +14 -0
- data/examples/stats.rb +0 -0
- data/examples/stocks.rb +0 -0
- data/examples/tab_colors.rb +0 -0
- data/examples/utf8.rb +0 -0
- data/examples/write_arrays.rb +0 -0
- data/html/en/doc_en.html +5941 -0
- data/html/images/a_simple.jpg +0 -0
- data/html/images/area1.jpg +0 -0
- data/html/images/bar1.jpg +0 -0
- data/html/images/chart_area.xls +0 -0
- data/html/images/column1.jpg +0 -0
- data/html/images/data_validation.jpg +0 -0
- data/html/images/line1.jpg +0 -0
- data/html/images/pie1.jpg +0 -0
- data/html/images/regions.jpg +0 -0
- data/html/images/scatter1.jpg +0 -0
- data/html/images/stats.jpg +0 -0
- data/html/images/stock1.jpg +0 -0
- data/html/images/stocks.jpg +0 -0
- data/html/index.html +16 -0
- data/html/style.css +433 -0
- data/lib/writeexcel/biffwriter.rb +5 -0
- data/lib/writeexcel/caller_info.rb +0 -0
- data/lib/writeexcel/chart.rb +8 -219
- data/lib/writeexcel/charts/area.rb +0 -0
- data/lib/writeexcel/charts/bar.rb +0 -0
- data/lib/writeexcel/charts/column.rb +0 -0
- data/lib/writeexcel/charts/external.rb +0 -0
- data/lib/writeexcel/charts/line.rb +0 -0
- data/lib/writeexcel/charts/pie.rb +0 -0
- data/lib/writeexcel/charts/scatter.rb +0 -0
- data/lib/writeexcel/charts/stock.rb +0 -0
- data/lib/writeexcel/colors.rb +4 -0
- data/lib/writeexcel/compatibility.rb +0 -0
- data/lib/writeexcel/debug_info.rb +0 -0
- data/lib/writeexcel/excelformula.y +0 -0
- data/lib/writeexcel/excelformulaparser.rb +0 -0
- data/lib/writeexcel/format.rb +2 -28
- data/lib/writeexcel/formula.rb +4 -70
- data/lib/writeexcel/helper.rb +0 -0
- data/lib/writeexcel/image.rb +158 -0
- data/lib/writeexcel/olewriter.rb +0 -0
- data/lib/writeexcel/properties.rb +0 -0
- data/lib/writeexcel/storage_lite.rb +0 -0
- data/lib/writeexcel/workbook.rb +434 -824
- data/lib/writeexcel/worksheet.rb +4194 -4718
- data/lib/writeexcel/write_file.rb +0 -0
- data/lib/writeexcel.rb +0 -0
- data/test/excelfile/Chart1.xls +0 -0
- data/test/excelfile/Chart2.xls +0 -0
- data/test/excelfile/Chart3.xls +0 -0
- data/test/excelfile/Chart4.xls +0 -0
- data/test/excelfile/Chart5.xls +0 -0
- data/test/helper.rb +0 -0
- data/test/perl_output/Chart1.xls.data +0 -0
- data/test/perl_output/Chart2.xls.data +0 -0
- data/test/perl_output/Chart3.xls.data +0 -0
- data/test/perl_output/Chart4.xls.data +0 -0
- data/test/perl_output/Chart5.xls.data +0 -0
- data/test/perl_output/README +0 -0
- data/test/perl_output/a_simple.xls +0 -0
- data/test/perl_output/autofilter.xls +0 -0
- data/test/perl_output/biff_add_continue_testdata +0 -0
- data/test/perl_output/chart_area.xls +0 -0
- data/test/perl_output/chart_bar.xls +0 -0
- data/test/perl_output/chart_column.xls +0 -0
- data/test/perl_output/chart_line.xls +0 -0
- data/test/perl_output/chess.xls +0 -0
- data/test/perl_output/colors.xls +0 -0
- data/test/perl_output/comments1.xls +0 -0
- data/test/perl_output/comments2.xls +0 -0
- data/test/perl_output/data_validate.xls +0 -0
- data/test/perl_output/date_time.xls +0 -0
- data/test/perl_output/defined_name.xls +0 -0
- data/test/perl_output/demo.xls +0 -0
- data/test/perl_output/demo101.bin +0 -0
- data/test/perl_output/demo201.bin +0 -0
- data/test/perl_output/demo301.bin +0 -0
- data/test/perl_output/demo401.bin +0 -0
- data/test/perl_output/demo501.bin +0 -0
- data/test/perl_output/diag_border.xls +0 -0
- data/test/perl_output/f_font_biff +0 -0
- data/test/perl_output/f_font_key +0 -0
- data/test/perl_output/f_xf_biff +0 -0
- data/test/perl_output/file_font_biff +0 -0
- data/test/perl_output/file_font_key +0 -0
- data/test/perl_output/file_xf_biff +0 -0
- data/test/perl_output/formula_result.xls +0 -0
- data/test/perl_output/headers.xls +0 -0
- data/test/perl_output/hidden.xls +0 -0
- data/test/perl_output/hide_zero.xls +0 -0
- data/test/perl_output/hyperlink.xls +0 -0
- data/test/perl_output/images.xls +0 -0
- data/test/perl_output/indent.xls +0 -0
- data/test/perl_output/merge1.xls +0 -0
- data/test/perl_output/merge2.xls +0 -0
- data/test/perl_output/merge3.xls +0 -0
- data/test/perl_output/merge4.xls +0 -0
- data/test/perl_output/merge5.xls +0 -0
- data/test/perl_output/merge6.xls +0 -0
- data/test/perl_output/ole_write_header +0 -0
- data/test/perl_output/outline.xls +0 -0
- data/test/perl_output/outline_collapsed.xls +0 -0
- data/test/perl_output/panes.xls +0 -0
- data/test/perl_output/protection.xls +0 -0
- data/test/perl_output/regions.xls +0 -0
- data/test/perl_output/right_to_left.xls +0 -0
- data/test/perl_output/set_first_sheet.xls +0 -0
- data/test/perl_output/stats.xls +0 -0
- data/test/perl_output/stocks.xls +0 -0
- data/test/perl_output/tab_colors.xls +0 -0
- data/test/perl_output/unicode_cyrillic.xls +0 -0
- data/test/perl_output/utf8.xls +0 -0
- data/test/perl_output/workbook1.xls +0 -0
- data/test/perl_output/workbook2.xls +0 -0
- data/test/perl_output/ws_colinfo +0 -0
- data/test/perl_output/ws_store_colinfo +0 -0
- data/test/perl_output/ws_store_dimensions +0 -0
- data/test/perl_output/ws_store_filtermode +0 -0
- data/test/perl_output/ws_store_filtermode_off +0 -0
- data/test/perl_output/ws_store_filtermode_on +0 -0
- data/test/perl_output/ws_store_selection +0 -0
- data/test/perl_output/ws_store_window2 +0 -0
- data/test/republic.png +0 -0
- data/test/test_00_IEEE_double.rb +0 -0
- data/test/test_01_add_worksheet.rb +0 -0
- data/test/test_02_merge_formats.rb +0 -0
- data/test/test_04_dimensions.rb +27 -27
- data/test/test_05_rows.rb +0 -0
- data/test/test_06_extsst.rb +1 -1
- data/test/test_11_date_time.rb +3 -3
- data/test/test_12_date_only.rb +7 -14
- data/test/test_13_date_seconds.rb +5 -5
- data/test/test_21_escher.rb +138 -138
- data/test/test_22_mso_drawing_group.rb +0 -0
- data/test/test_23_note.rb +4 -4
- data/test/test_24_txo.rb +3 -3
- data/test/test_25_position_object.rb +1 -1
- data/test/test_26_autofilter.rb +3 -3
- data/test/test_27_autofilter.rb +1 -1
- data/test/test_28_autofilter.rb +2 -2
- data/test/test_29_process_jpg.rb +16 -29
- data/test/test_30_validation_dval.rb +3 -3
- data/test/test_31_validation_dv_strings.rb +6 -6
- data/test/test_32_validation_dv_formula.rb +12 -12
- data/test/test_40_property_types.rb +0 -0
- data/test/test_41_properties.rb +0 -0
- data/test/test_42_set_properties.rb +0 -0
- data/test/test_50_name_stored.rb +8 -8
- data/test/test_51_name_print_area.rb +18 -18
- data/test/test_52_name_print_titles.rb +27 -27
- data/test/test_53_autofilter.rb +6 -6
- data/test/test_60_chart_generic.rb +1 -1
- data/test/test_61_chart_subclasses.rb +7 -14
- data/test/test_62_chart_formats.rb +0 -0
- data/test/test_63_chart_area_formats.rb +0 -0
- data/test/test_biff.rb +0 -0
- data/test/test_compatibility.rb +0 -0
- data/test/test_example_match.rb +31 -0
- data/test/test_format.rb +0 -0
- data/test/test_formula.rb +0 -0
- data/test/test_ole.rb +0 -0
- data/test/test_storage_lite.rb +0 -0
- data/test/test_workbook.rb +6 -0
- data/test/test_worksheet.rb +5 -5
- data/utils/add_magic_comment.rb +0 -0
- data/writeexcel.gemspec +263 -243
- data/writeexcel.rdoc +3 -3
- metadata +42 -39
data/.document
CHANGED
|
File without changes
|
data/.gitattributes
CHANGED
|
File without changes
|
data/README.rdoc
CHANGED
|
@@ -4,7 +4,7 @@ Write to a cross-platform Excel binary file.
|
|
|
4
4
|
|
|
5
5
|
== Description
|
|
6
6
|
|
|
7
|
-
This library is converted from
|
|
7
|
+
This library is converted from Spreadsheet::WriteExcel module of Perl.
|
|
8
8
|
http://search.cpan.org/~jmcnamara/Spreadsheet-WriteExcel-2.37/
|
|
9
9
|
|
|
10
10
|
Some examples written in perl was successfully converted to Ruby. But
|
|
@@ -15,7 +15,7 @@ Original description is below:
|
|
|
15
15
|
The Spreadsheet::WriteExcel module can be used to create a cross-
|
|
16
16
|
platform Excel binary file. Multiple worksheets can be added to a
|
|
17
17
|
workbook and formatting can be applied to cells. Text, numbers,
|
|
18
|
-
formulas, hyperlinks and
|
|
18
|
+
formulas, hyperlinks, images and charts can be written to the cells.
|
|
19
19
|
|
|
20
20
|
TThe Excel file produced by this module is compatible with 97,
|
|
21
21
|
2000, 2002, 2003 and 2007.
|
|
@@ -28,7 +28,7 @@ Original description is below:
|
|
|
28
28
|
|
|
29
29
|
== Usage
|
|
30
30
|
|
|
31
|
-
See rdoc's WriteExcel class document.
|
|
31
|
+
See rdoc's WriteExcel class document or Reference http://writeexcel.web.fc2.com/ .
|
|
32
32
|
You must save source file in UTF8 and run ruby with -Ku option or set $KCODE='u'.
|
|
33
33
|
|
|
34
34
|
Example Code:
|
|
@@ -75,11 +75,13 @@ Example Code:
|
|
|
75
75
|
You must save source file in UTF8 and run ruby with -Ku option or set $KCODE='u'
|
|
76
76
|
when use urf8 string data.
|
|
77
77
|
|
|
78
|
-
== Dependencies
|
|
79
|
-
|
|
80
|
-
* ruby 1.8, ruby 1.9.1, ruby 1.9.2
|
|
81
|
-
|
|
82
78
|
== Recent Changes
|
|
79
|
+
|
|
80
|
+
v0.6.7
|
|
81
|
+
* Bug fix. Worksheet#set_first_sheet doesn't work well.
|
|
82
|
+
* Bug fix. Worksheet#hide_zero doesn't work well.
|
|
83
|
+
* Bug fix. Worksheet#set_column - col width doesn't set to zero when pass hidden 1.
|
|
84
|
+
'
|
|
83
85
|
v0.6.6
|
|
84
86
|
* add private method to avoid warning: private attribute?
|
|
85
87
|
|
|
@@ -98,34 +100,6 @@ v0.6.1
|
|
|
98
100
|
v0.6.0
|
|
99
101
|
* Bug fix. to avoid destroy to_json method when using with Rails 3
|
|
100
102
|
|
|
101
|
-
v0.5.0
|
|
102
|
-
* use 1.9-compatible Encoding interface for Ruby 1.8 encodings class; support US-ASCII and ASCII-8BIT. by Jeremy Weathers
|
|
103
|
-
The original project by cxn03651 has its own odd encoding scheme that is not compatible with other
|
|
104
|
-
software (e.g. nokogiri) that expects strings encodings to be compatible with Ruby 1.9 Encodings.
|
|
105
|
-
The purpose of this fork is to make the encoding system for Ruby 1.8 compatible with the Ruby 1.9 encoding system.
|
|
106
|
-
|
|
107
|
-
v0.4.3
|
|
108
|
-
* test passed under Ruby 1.9.2
|
|
109
|
-
* Bug fix. Format#set_format_properties, Formula#convert_number found under Ruby 1.9.2
|
|
110
|
-
* Bug fix in test_set_rolation().
|
|
111
|
-
|
|
112
|
-
v0.4.2
|
|
113
|
-
* use namespace 'Writeexcel::' to Chart(::*), Colors, Format, Formula, Worksheet.
|
|
114
|
-
* add_chart() parameter of :type changed . ex) Chart::Bar => 'Chart::Bar'
|
|
115
|
-
* almost complete japanese document : writeexcel.doc
|
|
116
|
-
* Bug fix. typo in Worksheet#set_zoom()
|
|
117
|
-
* some refactoring.
|
|
118
|
-
|
|
119
|
-
v0.4.1
|
|
120
|
-
* Bug fix. Workbook#add_format() doesn't work when received two or more parameters.
|
|
121
|
-
* Bug fix. Worksheet#write_formula() doesn't work when formula contains utf8 string.
|
|
122
|
-
|
|
123
|
-
v0.4.0
|
|
124
|
-
* works also on Ruby 1.9.1.
|
|
125
|
-
* modify README.rdoc below.
|
|
126
|
-
* write source and run in utf8.
|
|
127
|
-
* unary minus supported. but -1 --> -1*1, -SIN() --> -1*SIN()
|
|
128
|
-
|
|
129
103
|
== Author
|
|
130
104
|
|
|
131
105
|
Original was written in Perl by John McNamara (jmcnamara@cpan.org).
|
data/Rakefile
CHANGED
|
File without changes
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.6.
|
|
1
|
+
0.6.7
|
data/charts/chartex.rb
CHANGED
|
File without changes
|
data/charts/demo1.rb
CHANGED
|
File without changes
|
data/charts/demo101.bin
CHANGED
|
File without changes
|
data/charts/demo2.rb
CHANGED
|
File without changes
|
data/charts/demo201.bin
CHANGED
|
File without changes
|
data/charts/demo3.rb
CHANGED
|
File without changes
|
data/charts/demo301.bin
CHANGED
|
File without changes
|
data/charts/demo4.rb
CHANGED
|
File without changes
|
data/charts/demo401.bin
CHANGED
|
File without changes
|
data/charts/demo5.rb
CHANGED
|
File without changes
|
data/charts/demo501.bin
CHANGED
|
File without changes
|
data/examples/a_simple.rb
CHANGED
|
File without changes
|
data/examples/autofilter.rb
CHANGED
|
File without changes
|
data/examples/bigfile.rb
CHANGED
|
File without changes
|
data/examples/chart_area.rb
CHANGED
|
File without changes
|
data/examples/chart_bar.rb
CHANGED
|
File without changes
|
data/examples/chart_column.rb
CHANGED
|
File without changes
|
data/examples/chart_line.rb
CHANGED
|
File without changes
|
data/examples/chart_pie.rb
CHANGED
|
File without changes
|
data/examples/chart_scatter.rb
CHANGED
|
File without changes
|
data/examples/chart_stock.rb
CHANGED
|
File without changes
|
data/examples/chess.rb
CHANGED
|
File without changes
|
data/examples/colors.rb
CHANGED
|
File without changes
|
data/examples/comments1.rb
CHANGED
|
File without changes
|
data/examples/comments2.rb
CHANGED
|
File without changes
|
data/examples/copyformat.rb
CHANGED
|
File without changes
|
data/examples/data_validate.rb
CHANGED
|
File without changes
|
data/examples/date_time.rb
CHANGED
|
File without changes
|
data/examples/defined_name.rb
CHANGED
|
File without changes
|
data/examples/demo.rb
CHANGED
|
File without changes
|
data/examples/diag_border.rb
CHANGED
|
File without changes
|
data/examples/formats.rb
CHANGED
|
File without changes
|
data/examples/formula_result.rb
CHANGED
|
File without changes
|
data/examples/header.rb
CHANGED
|
File without changes
|
data/examples/hide_sheet.rb
CHANGED
|
File without changes
|
data/examples/hyperlink.rb
CHANGED
|
File without changes
|
data/examples/images.rb
CHANGED
|
File without changes
|
data/examples/indent.rb
CHANGED
|
File without changes
|
data/examples/merge1.rb
CHANGED
|
File without changes
|
data/examples/merge2.rb
CHANGED
|
File without changes
|
data/examples/merge3.rb
CHANGED
|
File without changes
|
data/examples/merge4.rb
CHANGED
|
File without changes
|
data/examples/merge5.rb
CHANGED
|
File without changes
|
data/examples/merge6.rb
CHANGED
|
File without changes
|
data/examples/outline.rb
CHANGED
|
File without changes
|
|
File without changes
|
data/examples/panes.rb
CHANGED
|
File without changes
|
data/examples/properties.rb
CHANGED
|
File without changes
|
data/examples/properties_jp.rb
CHANGED
|
File without changes
|
data/examples/protection.rb
CHANGED
|
File without changes
|
data/examples/regions.rb
CHANGED
|
File without changes
|
data/examples/repeat.rb
CHANGED
|
File without changes
|
data/examples/republic.png
CHANGED
|
File without changes
|
data/examples/right_to_left.rb
CHANGED
|
File without changes
|
data/examples/row_wrap.rb
CHANGED
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/ruby -w
|
|
2
|
+
# -*- coding:utf-8 -*-
|
|
3
|
+
|
|
4
|
+
require 'rubygems'
|
|
5
|
+
require 'writeexcel'
|
|
6
|
+
|
|
7
|
+
workbook = WriteExcel.new('set_first_sheet.xls')
|
|
8
|
+
20.times { workbook.add_worksheet }
|
|
9
|
+
worksheet21 = workbook.add_worksheet
|
|
10
|
+
worksheet22 = workbook.add_worksheet
|
|
11
|
+
|
|
12
|
+
worksheet21.set_first_sheet
|
|
13
|
+
worksheet22.activate
|
|
14
|
+
workbook.close
|
data/examples/stats.rb
CHANGED
|
File without changes
|
data/examples/stocks.rb
CHANGED
|
File without changes
|
data/examples/tab_colors.rb
CHANGED
|
File without changes
|
data/examples/utf8.rb
CHANGED
|
File without changes
|
data/examples/write_arrays.rb
CHANGED
|
File without changes
|