writeexcel 0.1.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. data/README +26 -31
  2. data/examples/a_simple.rb +42 -42
  3. data/examples/{autofilters.rb → autofilter.rb} +264 -266
  4. data/examples/bigfile.rb +29 -0
  5. data/examples/chart_area.rb +120 -0
  6. data/examples/chart_bar.rb +119 -0
  7. data/examples/chart_column.rb +119 -0
  8. data/examples/chart_line.rb +119 -0
  9. data/examples/chart_pie.rb +107 -0
  10. data/examples/chart_scatter.rb +120 -0
  11. data/examples/chart_stock.rb +147 -0
  12. data/examples/copyformat.rb +51 -51
  13. data/examples/data_validate.rb +278 -278
  14. data/examples/date_time.rb +86 -86
  15. data/examples/defined_name.rb +31 -0
  16. data/examples/demo.rb +120 -118
  17. data/examples/diag_border.rb +35 -35
  18. data/examples/formats.rb +489 -489
  19. data/examples/header.rb +136 -136
  20. data/examples/hidden.rb +28 -28
  21. data/examples/hyperlink.rb +42 -42
  22. data/examples/images.rb +52 -52
  23. data/examples/merge1.rb +39 -39
  24. data/examples/merge2.rb +44 -44
  25. data/examples/merge3.rb +65 -65
  26. data/examples/merge4.rb +82 -82
  27. data/examples/merge5.rb +79 -79
  28. data/examples/properties.rb +33 -0
  29. data/examples/properties_jp.rb +32 -0
  30. data/examples/protection.rb +46 -46
  31. data/examples/regions.rb +52 -52
  32. data/examples/repeat.rb +42 -42
  33. data/examples/stats.rb +75 -75
  34. data/examples/stocks.rb +80 -80
  35. data/examples/tab_colors.rb +30 -30
  36. data/examples/write_arrays.rb +82 -0
  37. data/lib/writeexcel.rb +1134 -18
  38. data/lib/writeexcel/biffwriter.rb +273 -260
  39. data/lib/writeexcel/chart.rb +2306 -217
  40. data/lib/writeexcel/charts/area.rb +152 -0
  41. data/lib/writeexcel/charts/bar.rb +177 -0
  42. data/lib/writeexcel/charts/column.rb +156 -0
  43. data/lib/writeexcel/charts/external.rb +61 -0
  44. data/lib/writeexcel/charts/line.rb +152 -0
  45. data/lib/writeexcel/charts/pie.rb +169 -0
  46. data/lib/writeexcel/charts/scatter.rb +192 -0
  47. data/lib/writeexcel/charts/stock.rb +211 -0
  48. data/lib/writeexcel/excelformulaparser.rb +208 -195
  49. data/lib/writeexcel/format.rb +1697 -1108
  50. data/lib/writeexcel/formula.rb +1050 -986
  51. data/lib/writeexcel/olewriter.rb +322 -322
  52. data/lib/writeexcel/properties.rb +251 -250
  53. data/lib/writeexcel/storage_lite.rb +968 -0
  54. data/lib/writeexcel/workbook.rb +3294 -2630
  55. data/lib/writeexcel/worksheet.rb +9012 -6377
  56. data/test/excelfile/Chart1.xls +0 -0
  57. data/test/excelfile/Chart2.xls +0 -0
  58. data/test/excelfile/Chart3.xls +0 -0
  59. data/test/excelfile/Chart4.xls +0 -0
  60. data/test/excelfile/Chart5.xls +0 -0
  61. data/test/perl_output/Chart1.xls.data +0 -0
  62. data/test/perl_output/Chart2.xls.data +0 -0
  63. data/test/perl_output/Chart3.xls.data +0 -0
  64. data/test/perl_output/Chart4.xls.data +0 -0
  65. data/test/perl_output/Chart5.xls.data +0 -0
  66. data/test/perl_output/a_simple.xls +0 -0
  67. data/test/perl_output/autofilter.xls +0 -0
  68. data/test/perl_output/chart_area.xls +0 -0
  69. data/test/perl_output/chart_bar.xls +0 -0
  70. data/test/perl_output/chart_column.xls +0 -0
  71. data/test/perl_output/chart_line.xls +0 -0
  72. data/test/perl_output/data_validate.xls +0 -0
  73. data/test/perl_output/date_time.xls +0 -0
  74. data/test/perl_output/demo.xls +0 -0
  75. data/test/perl_output/demo101.bin +0 -0
  76. data/test/perl_output/demo201.bin +0 -0
  77. data/test/perl_output/demo301.bin +0 -0
  78. data/test/perl_output/demo401.bin +0 -0
  79. data/test/perl_output/demo501.bin +0 -0
  80. data/test/perl_output/diag_border.xls +0 -0
  81. data/test/perl_output/headers.xls +0 -0
  82. data/test/perl_output/hyperlink.xls +0 -0
  83. data/test/perl_output/images.xls +0 -0
  84. data/test/perl_output/merge1.xls +0 -0
  85. data/test/perl_output/merge2.xls +0 -0
  86. data/test/perl_output/merge3.xls +0 -0
  87. data/test/perl_output/merge4.xls +0 -0
  88. data/test/perl_output/merge5.xls +0 -0
  89. data/test/perl_output/protection.xls +0 -0
  90. data/test/perl_output/regions.xls +0 -0
  91. data/test/perl_output/stats.xls +0 -0
  92. data/test/perl_output/stocks.xls +0 -0
  93. data/test/perl_output/tab_colors.xls +0 -0
  94. data/test/perl_output/unicode_cyrillic.xls +0 -0
  95. data/test/perl_output/workbook1.xls +0 -0
  96. data/test/perl_output/workbook2.xls +0 -0
  97. data/test/tc_all.rb +32 -31
  98. data/test/tc_biff.rb +104 -104
  99. data/test/tc_chart.rb +22 -22
  100. data/test/tc_example_match.rb +1944 -1280
  101. data/test/tc_format.rb +1254 -1267
  102. data/test/tc_formula.rb +63 -63
  103. data/test/tc_ole.rb +110 -110
  104. data/test/tc_storage_lite.rb +149 -0
  105. data/test/tc_workbook.rb +140 -115
  106. data/test/tc_worksheet.rb +115 -115
  107. data/test/test_00_IEEE_double.rb +14 -14
  108. data/test/test_01_add_worksheet.rb +12 -12
  109. data/test/test_02_merge_formats.rb +58 -58
  110. data/test/test_04_dimensions.rb +397 -397
  111. data/test/test_05_rows.rb +182 -182
  112. data/test/test_06_extsst.rb +80 -80
  113. data/test/test_11_date_time.rb +484 -484
  114. data/test/test_12_date_only.rb +506 -506
  115. data/test/test_13_date_seconds.rb +486 -486
  116. data/test/test_21_escher.rb +642 -629
  117. data/test/test_22_mso_drawing_group.rb +750 -739
  118. data/test/test_23_note.rb +78 -78
  119. data/test/test_24_txo.rb +80 -80
  120. data/test/test_25_position_object.rb +82 -0
  121. data/test/test_26_autofilter.rb +327 -327
  122. data/test/test_27_autofilter.rb +144 -144
  123. data/test/test_28_autofilter.rb +174 -174
  124. data/test/test_29_process_jpg.rb +681 -131
  125. data/test/test_30_validation_dval.rb +82 -82
  126. data/test/test_31_validation_dv_strings.rb +131 -131
  127. data/test/test_32_validation_dv_formula.rb +211 -211
  128. data/test/test_40_property_types.rb +191 -191
  129. data/test/test_41_properties.rb +238 -238
  130. data/test/test_42_set_properties.rb +442 -419
  131. data/test/test_50_name_stored.rb +305 -0
  132. data/test/test_51_name_print_area.rb +363 -0
  133. data/test/test_52_name_print_titles.rb +460 -0
  134. data/test/test_53_autofilter.rb +209 -0
  135. data/test/test_60_chart_generic.rb +576 -0
  136. data/test/test_61_chart_subclasses.rb +97 -0
  137. data/test/test_62_chart_formats.rb +270 -0
  138. data/test/test_63_chart_area_formats.rb +647 -0
  139. data/test/test_chartex.rb +35 -0
  140. data/test/ts_all.rb +46 -34
  141. data/writeexcel.gemspec +18 -0
  142. data/writeexcel.rdoc +583 -0
  143. metadata +162 -108
metadata CHANGED
@@ -1,27 +1,23 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: writeexcel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 3
8
+ - 0
9
+ version: 0.3.0
5
10
  platform: ruby
6
11
  authors:
7
- - Hideo Nakamura
12
+ - Hideo NAKAMURA
8
13
  autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-03-25 00:00:00 +09:00
17
+ date: 2010-04-05 00:00:00 +09:00
13
18
  default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: ruby-ole
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: 1.2.8.2
24
- version:
19
+ dependencies: []
20
+
25
21
  description:
26
22
  email: cxn03651@msj.biglobe.ne.jp
27
23
  executables: []
@@ -31,140 +27,198 @@ extensions: []
31
27
  extra_rdoc_files: []
32
28
 
33
29
  files:
34
- - examples/merge5.rb
35
- - examples/header.rb
36
- - examples/regions.rb
37
- - examples/merge2.rb
38
- - examples/formats.rb
39
- - examples/stocks.rb
40
- - examples/images.rb
41
- - examples/hidden.rb
42
- - examples/date_time.rb
30
+ - examples/autofilter.rb
43
31
  - examples/a_simple.rb
44
- - examples/merge3.rb
45
- - examples/merge1.rb
46
- - examples/autofilters.rb
32
+ - examples/bigfile.rb
33
+ - examples/chart_area.rb
34
+ - examples/chart_bar.rb
35
+ - examples/chart_column.rb
36
+ - examples/chart_line.rb
37
+ - examples/chart_pie.rb
38
+ - examples/chart_scatter.rb
39
+ - examples/chart_stock.rb
40
+ - examples/copyformat.rb
41
+ - examples/data_validate.rb
42
+ - examples/date_time.rb
43
+ - examples/defined_name.rb
47
44
  - examples/demo.rb
48
- - examples/hyperlink.rb
49
45
  - examples/diag_border.rb
46
+ - examples/formats.rb
47
+ - examples/header.rb
48
+ - examples/hidden.rb
49
+ - examples/hyperlink.rb
50
+ - examples/images.rb
51
+ - examples/merge1.rb
52
+ - examples/merge2.rb
53
+ - examples/merge3.rb
54
+ - examples/merge4.rb
55
+ - examples/merge5.rb
56
+ - examples/properties.rb
57
+ - examples/properties_jp.rb
50
58
  - examples/protection.rb
51
- - examples/copyformat.rb
59
+ - examples/regions.rb
60
+ - examples/repeat.rb
52
61
  - examples/republic.png
53
62
  - examples/stats.rb
63
+ - examples/stocks.rb
54
64
  - examples/tab_colors.rb
55
- - examples/merge4.rb
56
- - examples/data_validate.rb
57
- - examples/repeat.rb
58
- - lib/writeexcel.rb
59
- - lib/writeexcel/olewriter.rb
60
- - lib/writeexcel/properties.rb
65
+ - examples/write_arrays.rb
66
+ - lib/writeexcel/biffwriter.rb
61
67
  - lib/writeexcel/chart.rb
62
- - lib/writeexcel/formula.rb
68
+ - lib/writeexcel/charts/area.rb
69
+ - lib/writeexcel/charts/bar.rb
70
+ - lib/writeexcel/charts/column.rb
71
+ - lib/writeexcel/charts/external.rb
72
+ - lib/writeexcel/charts/line.rb
73
+ - lib/writeexcel/charts/pie.rb
74
+ - lib/writeexcel/charts/scatter.rb
75
+ - lib/writeexcel/charts/stock.rb
76
+ - lib/writeexcel/excelformulaparser.rb
63
77
  - lib/writeexcel/format.rb
64
- - lib/writeexcel/biffwriter.rb
78
+ - lib/writeexcel/formula.rb
79
+ - lib/writeexcel/olewriter.rb
80
+ - lib/writeexcel/properties.rb
81
+ - lib/writeexcel/storage_lite.rb
65
82
  - lib/writeexcel/workbook.rb
66
83
  - lib/writeexcel/worksheet.rb
67
- - lib/writeexcel/excelformulaparser.rb
84
+ - lib/writeexcel.rb
68
85
  - README
69
- - test/tc_all.rb
70
- - test/tc_chart.rb
71
- - test/tc_ole.rb
72
- - test/test_40_property_types.rb
73
- - test/tc_formula.rb
74
- - test/test_00_IEEE_double.rb
75
- - test/test_32_validation_dv_formula.rb
76
- - test/test_11_date_time.rb
77
- - test/test_29_process_jpg.rb
78
- - test/ts_all.rb
79
- - test/test_24_txo.rb
80
- - test/tc_worksheet.rb
81
- - test/test_22_mso_drawing_group.rb
82
- - test/perl_output
83
- - test/test_41_properties.rb
84
- - test/test_27_autofilter.rb
85
- - test/tc_biff.rb
86
- - test/test_26_autofilter.rb
87
- - test/test_12_date_only.rb
88
- - test/test_23_note.rb
89
- - test/test_30_validation_dval.rb
90
- - test/tc_format.rb
91
- - test/test_31_validation_dv_strings.rb
92
- - test/test_28_autofilter.rb
93
- - test/test_01_add_worksheet.rb
94
- - test/test_04_dimensions.rb
95
- - test/republic.png
96
- - test/test_42_set_properties.rb
97
- - test/test_13_date_seconds.rb
98
- - test/tc_example_match.rb
99
- - test/test_02_merge_formats.rb
100
- - test/tc_workbook.rb
101
- - test/test_05_rows.rb
102
- - test/test_06_extsst.rb
103
- - test/test_21_escher.rb
104
- - test/perl_output/ws_store_colinfo
105
- - test/perl_output/ws_store_filtermode
106
- - test/perl_output/headers.xls
107
- - test/perl_output/stats.xls
86
+ - writeexcel.gemspec
87
+ - writeexcel.rdoc
88
+ - test/excelfile/Chart1.xls
89
+ - test/excelfile/Chart2.xls
90
+ - test/excelfile/Chart3.xls
91
+ - test/excelfile/Chart4.xls
92
+ - test/excelfile/Chart5.xls
93
+ - test/perl_output/autofilter.xls
94
+ - test/perl_output/a_simple.xls
95
+ - test/perl_output/biff_add_continue_testdata
96
+ - test/perl_output/Chart1.xls.data
97
+ - test/perl_output/Chart2.xls.data
98
+ - test/perl_output/Chart3.xls.data
99
+ - test/perl_output/Chart4.xls.data
100
+ - test/perl_output/Chart5.xls.data
101
+ - test/perl_output/chart_area.xls
102
+ - test/perl_output/chart_bar.xls
103
+ - test/perl_output/chart_column.xls
104
+ - test/perl_output/chart_line.xls
105
+ - test/perl_output/data_validate.xls
106
+ - test/perl_output/date_time.xls
108
107
  - test/perl_output/demo.xls
108
+ - test/perl_output/demo101.bin
109
+ - test/perl_output/demo201.bin
110
+ - test/perl_output/demo301.bin
111
+ - test/perl_output/demo401.bin
112
+ - test/perl_output/demo501.bin
113
+ - test/perl_output/diag_border.xls
114
+ - test/perl_output/file_font_biff
109
115
  - test/perl_output/file_font_key
110
- - test/perl_output/hyperlink.xls
111
- - test/perl_output/a_simple.xls
112
- - test/perl_output/f_font_key
116
+ - test/perl_output/file_xf_biff
113
117
  - test/perl_output/f_font_biff
114
- - test/perl_output/merge5.xls
115
- - test/perl_output/ws_store_filtermode_on
116
- - test/perl_output/regions.xls
118
+ - test/perl_output/f_font_key
119
+ - test/perl_output/f_xf_biff
120
+ - test/perl_output/headers.xls
117
121
  - test/perl_output/hidden.xls
118
- - test/perl_output/ws_store_selection
122
+ - test/perl_output/hyperlink.xls
119
123
  - test/perl_output/images.xls
120
- - test/perl_output/unicode_cyrillic.xls
121
- - test/perl_output/workbook2.xls
122
124
  - test/perl_output/merge1.xls
123
- - test/perl_output/ws_store_filtermode_off
124
- - test/perl_output/data_validate.xls
125
+ - test/perl_output/merge2.xls
126
+ - test/perl_output/merge3.xls
125
127
  - test/perl_output/merge4.xls
126
- - test/perl_output/date_time.xls
127
- - test/perl_output/ws_store_dimensions
128
+ - test/perl_output/merge5.xls
128
129
  - test/perl_output/ole_write_header
129
- - test/perl_output/biff_add_continue_testdata
130
- - test/perl_output/ws_colinfo
131
- - test/perl_output/ws_store_window2
132
- - test/perl_output/merge3.xls
133
- - test/perl_output/file_xf_biff
134
- - test/perl_output/workbook1.xls
135
- - test/perl_output/diag_border.xls
136
- - test/perl_output/README
137
- - test/perl_output/file_font_biff
138
- - test/perl_output/merge2.xls
139
130
  - test/perl_output/protection.xls
140
- - test/perl_output/tab_colors.xls
131
+ - test/perl_output/README
132
+ - test/perl_output/regions.xls
133
+ - test/perl_output/stats.xls
141
134
  - test/perl_output/stocks.xls
142
- - test/perl_output/f_xf_biff
143
- has_rdoc: false
135
+ - test/perl_output/tab_colors.xls
136
+ - test/perl_output/unicode_cyrillic.xls
137
+ - test/perl_output/workbook1.xls
138
+ - test/perl_output/workbook2.xls
139
+ - test/perl_output/ws_colinfo
140
+ - test/perl_output/ws_store_colinfo
141
+ - test/perl_output/ws_store_dimensions
142
+ - test/perl_output/ws_store_filtermode
143
+ - test/perl_output/ws_store_filtermode_off
144
+ - test/perl_output/ws_store_filtermode_on
145
+ - test/perl_output/ws_store_selection
146
+ - test/perl_output/ws_store_window2
147
+ - test/republic.png
148
+ - test/tc_all.rb
149
+ - test/tc_biff.rb
150
+ - test/tc_chart.rb
151
+ - test/tc_example_match.rb
152
+ - test/tc_format.rb
153
+ - test/tc_formula.rb
154
+ - test/tc_ole.rb
155
+ - test/tc_storage_lite.rb
156
+ - test/tc_workbook.rb
157
+ - test/tc_worksheet.rb
158
+ - test/test_00_IEEE_double.rb
159
+ - test/test_01_add_worksheet.rb
160
+ - test/test_02_merge_formats.rb
161
+ - test/test_04_dimensions.rb
162
+ - test/test_05_rows.rb
163
+ - test/test_06_extsst.rb
164
+ - test/test_11_date_time.rb
165
+ - test/test_12_date_only.rb
166
+ - test/test_13_date_seconds.rb
167
+ - test/test_21_escher.rb
168
+ - test/test_22_mso_drawing_group.rb
169
+ - test/test_23_note.rb
170
+ - test/test_24_txo.rb
171
+ - test/test_25_position_object.rb
172
+ - test/test_26_autofilter.rb
173
+ - test/test_27_autofilter.rb
174
+ - test/test_28_autofilter.rb
175
+ - test/test_29_process_jpg.rb
176
+ - test/test_30_validation_dval.rb
177
+ - test/test_31_validation_dv_strings.rb
178
+ - test/test_32_validation_dv_formula.rb
179
+ - test/test_40_property_types.rb
180
+ - test/test_41_properties.rb
181
+ - test/test_42_set_properties.rb
182
+ - test/test_50_name_stored.rb
183
+ - test/test_51_name_print_area.rb
184
+ - test/test_52_name_print_titles.rb
185
+ - test/test_53_autofilter.rb
186
+ - test/test_60_chart_generic.rb
187
+ - test/test_61_chart_subclasses.rb
188
+ - test/test_62_chart_formats.rb
189
+ - test/test_63_chart_area_formats.rb
190
+ - test/test_chartex.rb
191
+ - test/ts_all.rb
192
+ has_rdoc: true
144
193
  homepage:
145
- post_install_message:
146
- rdoc_options: []
194
+ licenses: []
147
195
 
196
+ post_install_message:
197
+ rdoc_options:
198
+ - README
148
199
  require_paths:
149
200
  - lib
150
201
  required_ruby_version: !ruby/object:Gem::Requirement
151
202
  requirements:
152
203
  - - ">="
153
204
  - !ruby/object:Gem::Version
205
+ segments:
206
+ - 1
207
+ - 8
154
208
  version: "1.8"
155
- version:
156
209
  required_rubygems_version: !ruby/object:Gem::Requirement
157
210
  requirements:
158
211
  - - ">="
159
212
  - !ruby/object:Gem::Version
213
+ segments:
214
+ - 0
160
215
  version: "0"
161
- version:
162
216
  requirements: []
163
217
 
164
218
  rubyforge_project:
165
- rubygems_version: 1.3.1
219
+ rubygems_version: 1.3.6
166
220
  signing_key:
167
- specification_version: 2
221
+ specification_version: 3
168
222
  summary: Write to a cross-platform Excel binary file.
169
223
  test_files:
170
224
  - test/ts_all.rb