writeexcel 0.6.11 → 0.6.12

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.11
1
+ 0.6.12
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rubygems'
4
+ require 'writeexcel'
5
+
6
+ # Create a new workbook called simple.xls and add a worksheet
7
+ workbook = WriteExcel.new('store_formula.xls')
8
+ worksheet = workbook.add_worksheet()
9
+
10
+ formula = worksheet.store_formula('=A1 * 3 + 50')
11
+ (0 .. 999).each do |row|
12
+ worksheet.repeat_formula(row, 1, formula, nil, 'A1', "A#{row + 1}")
13
+ end
14
+
15
+ workbook.close
@@ -2847,6 +2847,61 @@ def write_formula(*args)
2847
2847
  0
2848
2848
  end
2849
2849
 
2850
+ #
2851
+ # :call-seq:
2852
+ # store_formula(formula) # formula : text string of formula
2853
+ #
2854
+ # Pre-parse a formula. This is used in conjunction with repeat_formula()
2855
+ # to repetitively rewrite a formula without re-parsing it.
2856
+ #
2857
+ # The store_formula() method is used in conjunction with repeat_formula()
2858
+ # to speed up the generation of repeated formulas. See
2859
+ # "Improving performance when working with formulas" in
2860
+ # "FORMULAS AND FUNCTIONS IN EXCEL".
2861
+ #
2862
+ # The store_formula() method pre-parses a textual representation of a
2863
+ # formula and stores it for use at a later stage by the repeat_formula()
2864
+ # method.
2865
+ #
2866
+ # store_formula() carries the same speed penalty as write_formula(). However,
2867
+ # in practice it will be used less frequently.
2868
+ #
2869
+ # The return value of this method is a scalar that can be thought of as a
2870
+ # reference to a formula.
2871
+ #
2872
+ # sin = worksheet.store_formula('=SIN(A1)')
2873
+ # cos = worksheet.store_formula('=COS(A1)')
2874
+ #
2875
+ # worksheet.repeat_formula('B1', sin, format, 'A1', 'A2')
2876
+ # worksheet.repeat_formula('C1', cos, format, 'A1', 'A2')
2877
+ #
2878
+ # Although store_formula() is a worksheet method the return value can be used
2879
+ # in any worksheet:
2880
+ #
2881
+ # now = worksheet.store_formula('=NOW()')
2882
+ #
2883
+ # worksheet1.repeat_formula('B1', now)
2884
+ # worksheet2.repeat_formula('B1', now)
2885
+ # worksheet3.repeat_formula('B1', now)
2886
+ #
2887
+ def store_formula(formula) #:nodoc:
2888
+ # Strip the = sign at the beginning of the formula string
2889
+ formula.sub!(/^=/, '')
2890
+
2891
+ # In order to raise formula errors from the point of view of the calling
2892
+ # program we use an eval block and re-raise the error from here.
2893
+ #
2894
+ tokens = parser.parse_formula(formula)
2895
+
2896
+ # if ($@) {
2897
+ # $@ =~ s/\n$// # Strip the \n used in the Formula.pm die()
2898
+ # croak $@ # Re-raise the error
2899
+ # }
2900
+
2901
+ # Return the parsed tokens in an anonymous array
2902
+ [*tokens]
2903
+ end
2904
+
2850
2905
  #
2851
2906
  # :call-seq:
2852
2907
  # repeat_formula(row, col, formula, format, pat, rep, (pat2, rep2,, ...) -> Fixnum
@@ -4620,61 +4675,6 @@ def display_zeros?
4620
4675
  !@hide_zeros
4621
4676
  end
4622
4677
 
4623
- #
4624
- # :call-seq:
4625
- # store_formula(formula) # formula : text string of formula
4626
- #
4627
- # Pre-parse a formula. This is used in conjunction with repeat_formula()
4628
- # to repetitively rewrite a formula without re-parsing it.
4629
- #
4630
- # The store_formula() method is used in conjunction with repeat_formula()
4631
- # to speed up the generation of repeated formulas. See
4632
- # "Improving performance when working with formulas" in
4633
- # "FORMULAS AND FUNCTIONS IN EXCEL".
4634
- #
4635
- # The store_formula() method pre-parses a textual representation of a
4636
- # formula and stores it for use at a later stage by the repeat_formula()
4637
- # method.
4638
- #
4639
- # store_formula() carries the same speed penalty as write_formula(). However,
4640
- # in practice it will be used less frequently.
4641
- #
4642
- # The return value of this method is a scalar that can be thought of as a
4643
- # reference to a formula.
4644
- #
4645
- # sin = worksheet.store_formula('=SIN(A1)')
4646
- # cos = worksheet.store_formula('=COS(A1)')
4647
- #
4648
- # worksheet.repeat_formula('B1', sin, format, 'A1', 'A2')
4649
- # worksheet.repeat_formula('C1', cos, format, 'A1', 'A2')
4650
- #
4651
- # Although store_formula() is a worksheet method the return value can be used
4652
- # in any worksheet:
4653
- #
4654
- # now = worksheet.store_formula('=NOW()')
4655
- #
4656
- # worksheet1.repeat_formula('B1', now)
4657
- # worksheet2.repeat_formula('B1', now)
4658
- # worksheet3.repeat_formula('B1', now)
4659
- #
4660
- def store_formula(formula) #:nodoc:
4661
- # Strip the = sign at the beginning of the formula string
4662
- formula.sub!(/^=/, '')
4663
-
4664
- # In order to raise formula errors from the point of view of the calling
4665
- # program we use an eval block and re-raise the error from here.
4666
- #
4667
- tokens = parser.parse_formula(formula)
4668
-
4669
- # if ($@) {
4670
- # $@ =~ s/\n$// # Strip the \n used in the Formula.pm die()
4671
- # croak $@ # Re-raise the error
4672
- # }
4673
-
4674
- # Return the parsed tokens in an anonymous array
4675
- [*tokens]
4676
- end
4677
-
4678
4678
  def set_header_footer_common(type, string, margin, encoding) # :nodoc:
4679
4679
  ruby_19 { string = convert_to_ascii_if_ascii(string) }
4680
4680
 
@@ -3228,4 +3228,19 @@ def test_set_first_sheet
3228
3228
  # do assertion
3229
3229
  compare_file("#{PERL_OUTDIR}/set_first_sheet.xls", @file)
3230
3230
  end
3231
+
3232
+ def test_store_formula
3233
+ workbook = WriteExcel.new(@file)
3234
+ worksheet = workbook.add_worksheet()
3235
+
3236
+ formula = worksheet.store_formula('=A1 * 3 + 50')
3237
+ (0 .. 999).each do |row|
3238
+ worksheet.repeat_formula(row, 1, formula, nil, 'A1', "A#{row + 1}")
3239
+ end
3240
+
3241
+ workbook.close
3242
+
3243
+ # do assertion
3244
+ compare_file("#{PERL_OUTDIR}/store_formula.xls", @file)
3245
+ end
3231
3246
  end
@@ -1,276 +1,278 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{writeexcel}
8
- s.version = "0.6.11"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Hideo NAKAMURA"]
12
- s.date = %q{2011-11-22}
13
- s.description = %q{Multiple worksheets can be added to a workbook and formatting can be applied to cells. Text, numbers, formulas, hyperlinks and images can be written to the cells.}
14
- s.email = %q{cxn03651@msj.biglobe.ne.jp}
15
- s.extra_rdoc_files = [
16
- "README.rdoc"
17
- ]
18
- s.files = [
19
- ".document",
20
- ".gitattributes",
21
- "README.rdoc",
22
- "Rakefile",
23
- "VERSION",
24
- "charts/chartex.rb",
25
- "charts/demo1.rb",
26
- "charts/demo101.bin",
27
- "charts/demo2.rb",
28
- "charts/demo201.bin",
29
- "charts/demo3.rb",
30
- "charts/demo301.bin",
31
- "charts/demo4.rb",
32
- "charts/demo401.bin",
33
- "charts/demo5.rb",
34
- "charts/demo501.bin",
35
- "examples/a_simple.rb",
36
- "examples/autofilter.rb",
37
- "examples/bigfile.rb",
38
- "examples/chart_area.rb",
39
- "examples/chart_bar.rb",
40
- "examples/chart_column.rb",
41
- "examples/chart_line.rb",
42
- "examples/chart_pie.rb",
43
- "examples/chart_scatter.rb",
44
- "examples/chart_stock.rb",
45
- "examples/chess.rb",
46
- "examples/colors.rb",
47
- "examples/comments1.rb",
48
- "examples/comments2.rb",
49
- "examples/copyformat.rb",
50
- "examples/data_validate.rb",
51
- "examples/date_time.rb",
52
- "examples/defined_name.rb",
53
- "examples/demo.rb",
54
- "examples/diag_border.rb",
55
- "examples/formats.rb",
56
- "examples/formula_result.rb",
57
- "examples/header.rb",
58
- "examples/hide_sheet.rb",
59
- "examples/hyperlink.rb",
60
- "examples/images.rb",
61
- "examples/indent.rb",
62
- "examples/merge1.rb",
63
- "examples/merge2.rb",
64
- "examples/merge3.rb",
65
- "examples/merge4.rb",
66
- "examples/merge5.rb",
67
- "examples/merge6.rb",
68
- "examples/outline.rb",
69
- "examples/outline_collapsed.rb",
70
- "examples/panes.rb",
71
- "examples/password_protection.rb",
72
- "examples/properties.rb",
73
- "examples/properties_jp.rb",
74
- "examples/protection.rb",
75
- "examples/regions.rb",
76
- "examples/repeat.rb",
77
- "examples/republic.png",
78
- "examples/right_to_left.rb",
79
- "examples/row_wrap.rb",
80
- "examples/set_first_sheet.rb",
81
- "examples/stats.rb",
82
- "examples/stocks.rb",
83
- "examples/tab_colors.rb",
84
- "examples/utf8.rb",
85
- "examples/write_arrays.rb",
86
- "html/en/doc_en.html",
87
- "html/images/a_simple.jpg",
88
- "html/images/area1.jpg",
89
- "html/images/bar1.jpg",
90
- "html/images/chart_area.xls",
91
- "html/images/column1.jpg",
92
- "html/images/data_validation.jpg",
93
- "html/images/line1.jpg",
94
- "html/images/pie1.jpg",
95
- "html/images/regions.jpg",
96
- "html/images/scatter1.jpg",
97
- "html/images/stats.jpg",
98
- "html/images/stock1.jpg",
99
- "html/images/stocks.jpg",
100
- "html/index.html",
101
- "html/style.css",
102
- "lib/writeexcel.rb",
103
- "lib/writeexcel/biffwriter.rb",
104
- "lib/writeexcel/caller_info.rb",
105
- "lib/writeexcel/cell_range.rb",
106
- "lib/writeexcel/chart.rb",
107
- "lib/writeexcel/charts/area.rb",
108
- "lib/writeexcel/charts/bar.rb",
109
- "lib/writeexcel/charts/column.rb",
110
- "lib/writeexcel/charts/external.rb",
111
- "lib/writeexcel/charts/line.rb",
112
- "lib/writeexcel/charts/pie.rb",
113
- "lib/writeexcel/charts/scatter.rb",
114
- "lib/writeexcel/charts/stock.rb",
115
- "lib/writeexcel/col_info.rb",
116
- "lib/writeexcel/colors.rb",
117
- "lib/writeexcel/comments.rb",
118
- "lib/writeexcel/compatibility.rb",
119
- "lib/writeexcel/convert_date_time.rb",
120
- "lib/writeexcel/data_validations.rb",
121
- "lib/writeexcel/debug_info.rb",
122
- "lib/writeexcel/embedded_chart.rb",
123
- "lib/writeexcel/excelformula.y",
124
- "lib/writeexcel/excelformulaparser.rb",
125
- "lib/writeexcel/format.rb",
126
- "lib/writeexcel/formula.rb",
127
- "lib/writeexcel/helper.rb",
128
- "lib/writeexcel/image.rb",
129
- "lib/writeexcel/olewriter.rb",
130
- "lib/writeexcel/outline.rb",
131
- "lib/writeexcel/properties.rb",
132
- "lib/writeexcel/shared_string_table.rb",
133
- "lib/writeexcel/storage_lite.rb",
134
- "lib/writeexcel/workbook.rb",
135
- "lib/writeexcel/worksheet.rb",
136
- "lib/writeexcel/worksheets.rb",
137
- "lib/writeexcel/write_file.rb",
138
- "test/excelfile/Chart1.xls",
139
- "test/excelfile/Chart2.xls",
140
- "test/excelfile/Chart3.xls",
141
- "test/excelfile/Chart4.xls",
142
- "test/excelfile/Chart5.xls",
143
- "test/helper.rb",
144
- "test/perl_output/Chart1.xls.data",
145
- "test/perl_output/Chart2.xls.data",
146
- "test/perl_output/Chart3.xls.data",
147
- "test/perl_output/Chart4.xls.data",
148
- "test/perl_output/Chart5.xls.data",
149
- "test/perl_output/README",
150
- "test/perl_output/a_simple.xls",
151
- "test/perl_output/autofilter.xls",
152
- "test/perl_output/biff_add_continue_testdata",
153
- "test/perl_output/chart_area.xls",
154
- "test/perl_output/chart_bar.xls",
155
- "test/perl_output/chart_column.xls",
156
- "test/perl_output/chart_line.xls",
157
- "test/perl_output/chess.xls",
158
- "test/perl_output/colors.xls",
159
- "test/perl_output/comments0.xls",
160
- "test/perl_output/comments1.xls",
161
- "test/perl_output/comments2.xls",
162
- "test/perl_output/data_validate.xls",
163
- "test/perl_output/date_time.xls",
164
- "test/perl_output/defined_name.xls",
165
- "test/perl_output/demo.xls",
166
- "test/perl_output/demo101.bin",
167
- "test/perl_output/demo201.bin",
168
- "test/perl_output/demo301.bin",
169
- "test/perl_output/demo401.bin",
170
- "test/perl_output/demo501.bin",
171
- "test/perl_output/diag_border.xls",
172
- "test/perl_output/f_font_biff",
173
- "test/perl_output/f_font_key",
174
- "test/perl_output/f_xf_biff",
175
- "test/perl_output/file_font_biff",
176
- "test/perl_output/file_font_key",
177
- "test/perl_output/file_xf_biff",
178
- "test/perl_output/formula_result.xls",
179
- "test/perl_output/headers.xls",
180
- "test/perl_output/hidden.xls",
181
- "test/perl_output/hide_zero.xls",
182
- "test/perl_output/hyperlink.xls",
183
- "test/perl_output/images.xls",
184
- "test/perl_output/indent.xls",
185
- "test/perl_output/merge1.xls",
186
- "test/perl_output/merge2.xls",
187
- "test/perl_output/merge3.xls",
188
- "test/perl_output/merge4.xls",
189
- "test/perl_output/merge5.xls",
190
- "test/perl_output/merge6.xls",
191
- "test/perl_output/ole_write_header",
192
- "test/perl_output/outline.xls",
193
- "test/perl_output/outline_collapsed.xls",
194
- "test/perl_output/panes.xls",
195
- "test/perl_output/password_protection.xls",
196
- "test/perl_output/protection.xls",
197
- "test/perl_output/regions.xls",
198
- "test/perl_output/right_to_left.xls",
199
- "test/perl_output/set_first_sheet.xls",
200
- "test/perl_output/stats.xls",
201
- "test/perl_output/stocks.xls",
202
- "test/perl_output/tab_colors.xls",
203
- "test/perl_output/unicode_cyrillic.xls",
204
- "test/perl_output/utf8.xls",
205
- "test/perl_output/workbook1.xls",
206
- "test/perl_output/workbook2.xls",
207
- "test/perl_output/ws_colinfo",
208
- "test/perl_output/ws_store_colinfo",
209
- "test/perl_output/ws_store_dimensions",
210
- "test/perl_output/ws_store_filtermode",
211
- "test/perl_output/ws_store_filtermode_off",
212
- "test/perl_output/ws_store_filtermode_on",
213
- "test/perl_output/ws_store_selection",
214
- "test/perl_output/ws_store_window2",
215
- "test/republic.png",
216
- "test/test_00_IEEE_double.rb",
217
- "test/test_01_add_worksheet.rb",
218
- "test/test_02_merge_formats.rb",
219
- "test/test_04_dimensions.rb",
220
- "test/test_05_rows.rb",
221
- "test/test_06_extsst.rb",
222
- "test/test_11_date_time.rb",
223
- "test/test_12_date_only.rb",
224
- "test/test_13_date_seconds.rb",
225
- "test/test_21_escher.rb",
226
- "test/test_22_mso_drawing_group.rb",
227
- "test/test_23_note.rb",
228
- "test/test_24_txo.rb",
229
- "test/test_25_position_object.rb",
230
- "test/test_26_autofilter.rb",
231
- "test/test_27_autofilter.rb",
232
- "test/test_28_autofilter.rb",
233
- "test/test_29_process_jpg.rb",
234
- "test/test_30_validation_dval.rb",
235
- "test/test_31_validation_dv_strings.rb",
236
- "test/test_32_validation_dv_formula.rb",
237
- "test/test_40_property_types.rb",
238
- "test/test_41_properties.rb",
239
- "test/test_42_set_properties.rb",
240
- "test/test_50_name_stored.rb",
241
- "test/test_51_name_print_area.rb",
242
- "test/test_52_name_print_titles.rb",
243
- "test/test_53_autofilter.rb",
244
- "test/test_60_chart_generic.rb",
245
- "test/test_61_chart_subclasses.rb",
246
- "test/test_62_chart_formats.rb",
247
- "test/test_63_chart_area_formats.rb",
248
- "test/test_biff.rb",
249
- "test/test_big_workbook.rb",
250
- "test/test_compatibility.rb",
251
- "test/test_example_match.rb",
252
- "test/test_format.rb",
253
- "test/test_formula.rb",
254
- "test/test_ole.rb",
255
- "test/test_storage_lite.rb",
256
- "test/test_workbook.rb",
257
- "test/test_worksheet.rb",
258
- "utils/add_magic_comment.rb",
259
- "writeexcel.gemspec",
260
- "writeexcel.rdoc"
261
- ]
262
- s.homepage = %q{http://wiki.github.com/cxn03651/writeexcel/}
263
- s.require_paths = ["lib"]
264
- s.rubygems_version = %q{1.7.2}
265
- s.summary = %q{Write to a cross-platform Excel binary file.}
266
-
267
- if s.respond_to? :specification_version then
268
- s.specification_version = 3
269
-
270
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
271
- else
272
- end
273
- else
274
- end
275
- end
276
-
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "writeexcel"
8
+ s.version = "0.6.12"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Hideo NAKAMURA"]
12
+ s.date = "2011-12-21"
13
+ s.description = "Multiple worksheets can be added to a workbook and formatting can be applied to cells. Text, numbers, formulas, hyperlinks and images can be written to the cells."
14
+ s.email = "cxn03651@msj.biglobe.ne.jp"
15
+ s.extra_rdoc_files = [
16
+ "README.rdoc"
17
+ ]
18
+ s.files = [
19
+ ".document",
20
+ ".gitattributes",
21
+ "README.rdoc",
22
+ "Rakefile",
23
+ "VERSION",
24
+ "charts/chartex.rb",
25
+ "charts/demo1.rb",
26
+ "charts/demo101.bin",
27
+ "charts/demo2.rb",
28
+ "charts/demo201.bin",
29
+ "charts/demo3.rb",
30
+ "charts/demo301.bin",
31
+ "charts/demo4.rb",
32
+ "charts/demo401.bin",
33
+ "charts/demo5.rb",
34
+ "charts/demo501.bin",
35
+ "examples/a_simple.rb",
36
+ "examples/autofilter.rb",
37
+ "examples/bigfile.rb",
38
+ "examples/chart_area.rb",
39
+ "examples/chart_bar.rb",
40
+ "examples/chart_column.rb",
41
+ "examples/chart_line.rb",
42
+ "examples/chart_pie.rb",
43
+ "examples/chart_scatter.rb",
44
+ "examples/chart_stock.rb",
45
+ "examples/chess.rb",
46
+ "examples/colors.rb",
47
+ "examples/comments1.rb",
48
+ "examples/comments2.rb",
49
+ "examples/copyformat.rb",
50
+ "examples/data_validate.rb",
51
+ "examples/date_time.rb",
52
+ "examples/defined_name.rb",
53
+ "examples/demo.rb",
54
+ "examples/diag_border.rb",
55
+ "examples/formats.rb",
56
+ "examples/formula_result.rb",
57
+ "examples/header.rb",
58
+ "examples/hide_sheet.rb",
59
+ "examples/hyperlink.rb",
60
+ "examples/images.rb",
61
+ "examples/indent.rb",
62
+ "examples/merge1.rb",
63
+ "examples/merge2.rb",
64
+ "examples/merge3.rb",
65
+ "examples/merge4.rb",
66
+ "examples/merge5.rb",
67
+ "examples/merge6.rb",
68
+ "examples/outline.rb",
69
+ "examples/outline_collapsed.rb",
70
+ "examples/panes.rb",
71
+ "examples/password_protection.rb",
72
+ "examples/properties.rb",
73
+ "examples/properties_jp.rb",
74
+ "examples/protection.rb",
75
+ "examples/regions.rb",
76
+ "examples/repeat.rb",
77
+ "examples/republic.png",
78
+ "examples/right_to_left.rb",
79
+ "examples/row_wrap.rb",
80
+ "examples/set_first_sheet.rb",
81
+ "examples/stats.rb",
82
+ "examples/stocks.rb",
83
+ "examples/store_formula.rb",
84
+ "examples/tab_colors.rb",
85
+ "examples/utf8.rb",
86
+ "examples/write_arrays.rb",
87
+ "html/en/doc_en.html",
88
+ "html/images/a_simple.jpg",
89
+ "html/images/area1.jpg",
90
+ "html/images/bar1.jpg",
91
+ "html/images/chart_area.xls",
92
+ "html/images/column1.jpg",
93
+ "html/images/data_validation.jpg",
94
+ "html/images/line1.jpg",
95
+ "html/images/pie1.jpg",
96
+ "html/images/regions.jpg",
97
+ "html/images/scatter1.jpg",
98
+ "html/images/stats.jpg",
99
+ "html/images/stock1.jpg",
100
+ "html/images/stocks.jpg",
101
+ "html/index.html",
102
+ "html/style.css",
103
+ "lib/writeexcel.rb",
104
+ "lib/writeexcel/biffwriter.rb",
105
+ "lib/writeexcel/caller_info.rb",
106
+ "lib/writeexcel/cell_range.rb",
107
+ "lib/writeexcel/chart.rb",
108
+ "lib/writeexcel/charts/area.rb",
109
+ "lib/writeexcel/charts/bar.rb",
110
+ "lib/writeexcel/charts/column.rb",
111
+ "lib/writeexcel/charts/external.rb",
112
+ "lib/writeexcel/charts/line.rb",
113
+ "lib/writeexcel/charts/pie.rb",
114
+ "lib/writeexcel/charts/scatter.rb",
115
+ "lib/writeexcel/charts/stock.rb",
116
+ "lib/writeexcel/col_info.rb",
117
+ "lib/writeexcel/colors.rb",
118
+ "lib/writeexcel/comments.rb",
119
+ "lib/writeexcel/compatibility.rb",
120
+ "lib/writeexcel/convert_date_time.rb",
121
+ "lib/writeexcel/data_validations.rb",
122
+ "lib/writeexcel/debug_info.rb",
123
+ "lib/writeexcel/embedded_chart.rb",
124
+ "lib/writeexcel/excelformula.y",
125
+ "lib/writeexcel/excelformulaparser.rb",
126
+ "lib/writeexcel/format.rb",
127
+ "lib/writeexcel/formula.rb",
128
+ "lib/writeexcel/helper.rb",
129
+ "lib/writeexcel/image.rb",
130
+ "lib/writeexcel/olewriter.rb",
131
+ "lib/writeexcel/outline.rb",
132
+ "lib/writeexcel/properties.rb",
133
+ "lib/writeexcel/shared_string_table.rb",
134
+ "lib/writeexcel/storage_lite.rb",
135
+ "lib/writeexcel/workbook.rb",
136
+ "lib/writeexcel/worksheet.rb",
137
+ "lib/writeexcel/worksheets.rb",
138
+ "lib/writeexcel/write_file.rb",
139
+ "test/excelfile/Chart1.xls",
140
+ "test/excelfile/Chart2.xls",
141
+ "test/excelfile/Chart3.xls",
142
+ "test/excelfile/Chart4.xls",
143
+ "test/excelfile/Chart5.xls",
144
+ "test/helper.rb",
145
+ "test/perl_output/Chart1.xls.data",
146
+ "test/perl_output/Chart2.xls.data",
147
+ "test/perl_output/Chart3.xls.data",
148
+ "test/perl_output/Chart4.xls.data",
149
+ "test/perl_output/Chart5.xls.data",
150
+ "test/perl_output/README",
151
+ "test/perl_output/a_simple.xls",
152
+ "test/perl_output/autofilter.xls",
153
+ "test/perl_output/biff_add_continue_testdata",
154
+ "test/perl_output/chart_area.xls",
155
+ "test/perl_output/chart_bar.xls",
156
+ "test/perl_output/chart_column.xls",
157
+ "test/perl_output/chart_line.xls",
158
+ "test/perl_output/chess.xls",
159
+ "test/perl_output/colors.xls",
160
+ "test/perl_output/comments0.xls",
161
+ "test/perl_output/comments1.xls",
162
+ "test/perl_output/comments2.xls",
163
+ "test/perl_output/data_validate.xls",
164
+ "test/perl_output/date_time.xls",
165
+ "test/perl_output/defined_name.xls",
166
+ "test/perl_output/demo.xls",
167
+ "test/perl_output/demo101.bin",
168
+ "test/perl_output/demo201.bin",
169
+ "test/perl_output/demo301.bin",
170
+ "test/perl_output/demo401.bin",
171
+ "test/perl_output/demo501.bin",
172
+ "test/perl_output/diag_border.xls",
173
+ "test/perl_output/f_font_biff",
174
+ "test/perl_output/f_font_key",
175
+ "test/perl_output/f_xf_biff",
176
+ "test/perl_output/file_font_biff",
177
+ "test/perl_output/file_font_key",
178
+ "test/perl_output/file_xf_biff",
179
+ "test/perl_output/formula_result.xls",
180
+ "test/perl_output/headers.xls",
181
+ "test/perl_output/hidden.xls",
182
+ "test/perl_output/hide_zero.xls",
183
+ "test/perl_output/hyperlink.xls",
184
+ "test/perl_output/images.xls",
185
+ "test/perl_output/indent.xls",
186
+ "test/perl_output/merge1.xls",
187
+ "test/perl_output/merge2.xls",
188
+ "test/perl_output/merge3.xls",
189
+ "test/perl_output/merge4.xls",
190
+ "test/perl_output/merge5.xls",
191
+ "test/perl_output/merge6.xls",
192
+ "test/perl_output/ole_write_header",
193
+ "test/perl_output/outline.xls",
194
+ "test/perl_output/outline_collapsed.xls",
195
+ "test/perl_output/panes.xls",
196
+ "test/perl_output/password_protection.xls",
197
+ "test/perl_output/protection.xls",
198
+ "test/perl_output/regions.xls",
199
+ "test/perl_output/right_to_left.xls",
200
+ "test/perl_output/set_first_sheet.xls",
201
+ "test/perl_output/stats.xls",
202
+ "test/perl_output/stocks.xls",
203
+ "test/perl_output/store_formula.xls",
204
+ "test/perl_output/tab_colors.xls",
205
+ "test/perl_output/unicode_cyrillic.xls",
206
+ "test/perl_output/utf8.xls",
207
+ "test/perl_output/workbook1.xls",
208
+ "test/perl_output/workbook2.xls",
209
+ "test/perl_output/ws_colinfo",
210
+ "test/perl_output/ws_store_colinfo",
211
+ "test/perl_output/ws_store_dimensions",
212
+ "test/perl_output/ws_store_filtermode",
213
+ "test/perl_output/ws_store_filtermode_off",
214
+ "test/perl_output/ws_store_filtermode_on",
215
+ "test/perl_output/ws_store_selection",
216
+ "test/perl_output/ws_store_window2",
217
+ "test/republic.png",
218
+ "test/test_00_IEEE_double.rb",
219
+ "test/test_01_add_worksheet.rb",
220
+ "test/test_02_merge_formats.rb",
221
+ "test/test_04_dimensions.rb",
222
+ "test/test_05_rows.rb",
223
+ "test/test_06_extsst.rb",
224
+ "test/test_11_date_time.rb",
225
+ "test/test_12_date_only.rb",
226
+ "test/test_13_date_seconds.rb",
227
+ "test/test_21_escher.rb",
228
+ "test/test_22_mso_drawing_group.rb",
229
+ "test/test_23_note.rb",
230
+ "test/test_24_txo.rb",
231
+ "test/test_25_position_object.rb",
232
+ "test/test_26_autofilter.rb",
233
+ "test/test_27_autofilter.rb",
234
+ "test/test_28_autofilter.rb",
235
+ "test/test_29_process_jpg.rb",
236
+ "test/test_30_validation_dval.rb",
237
+ "test/test_31_validation_dv_strings.rb",
238
+ "test/test_32_validation_dv_formula.rb",
239
+ "test/test_40_property_types.rb",
240
+ "test/test_41_properties.rb",
241
+ "test/test_42_set_properties.rb",
242
+ "test/test_50_name_stored.rb",
243
+ "test/test_51_name_print_area.rb",
244
+ "test/test_52_name_print_titles.rb",
245
+ "test/test_53_autofilter.rb",
246
+ "test/test_60_chart_generic.rb",
247
+ "test/test_61_chart_subclasses.rb",
248
+ "test/test_62_chart_formats.rb",
249
+ "test/test_63_chart_area_formats.rb",
250
+ "test/test_biff.rb",
251
+ "test/test_big_workbook.rb",
252
+ "test/test_compatibility.rb",
253
+ "test/test_example_match.rb",
254
+ "test/test_format.rb",
255
+ "test/test_formula.rb",
256
+ "test/test_ole.rb",
257
+ "test/test_storage_lite.rb",
258
+ "test/test_workbook.rb",
259
+ "test/test_worksheet.rb",
260
+ "utils/add_magic_comment.rb",
261
+ "writeexcel.gemspec",
262
+ "writeexcel.rdoc"
263
+ ]
264
+ s.homepage = "http://wiki.github.com/cxn03651/writeexcel/"
265
+ s.require_paths = ["lib"]
266
+ s.rubygems_version = "1.8.10"
267
+ s.summary = "Write to a cross-platform Excel binary file."
268
+
269
+ if s.respond_to? :specification_version then
270
+ s.specification_version = 3
271
+
272
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
273
+ else
274
+ end
275
+ else
276
+ end
277
+ end
278
+
metadata CHANGED
@@ -1,32 +1,25 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: writeexcel
3
- version: !ruby/object:Gem::Version
4
- hash: 17
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.12
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 6
9
- - 11
10
- version: 0.6.11
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Hideo NAKAMURA
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-11-22 00:00:00 Z
12
+ date: 2011-12-21 00:00:00.000000000Z
19
13
  dependencies: []
20
-
21
- description: Multiple worksheets can be added to a workbook and formatting can be applied to cells. Text, numbers, formulas, hyperlinks and images can be written to the cells.
14
+ description: Multiple worksheets can be added to a workbook and formatting can be
15
+ applied to cells. Text, numbers, formulas, hyperlinks and images can be written
16
+ to the cells.
22
17
  email: cxn03651@msj.biglobe.ne.jp
23
18
  executables: []
24
-
25
19
  extensions: []
26
-
27
- extra_rdoc_files:
20
+ extra_rdoc_files:
28
21
  - README.rdoc
29
- files:
22
+ files:
30
23
  - .document
31
24
  - .gitattributes
32
25
  - README.rdoc
@@ -91,6 +84,7 @@ files:
91
84
  - examples/set_first_sheet.rb
92
85
  - examples/stats.rb
93
86
  - examples/stocks.rb
87
+ - examples/store_formula.rb
94
88
  - examples/tab_colors.rb
95
89
  - examples/utf8.rb
96
90
  - examples/write_arrays.rb
@@ -210,6 +204,7 @@ files:
210
204
  - test/perl_output/set_first_sheet.xls
211
205
  - test/perl_output/stats.xls
212
206
  - test/perl_output/stocks.xls
207
+ - test/perl_output/store_formula.xls
213
208
  - test/perl_output/tab_colors.xls
214
209
  - test/perl_output/unicode_cyrillic.xls
215
210
  - test/perl_output/utf8.xls
@@ -271,36 +266,26 @@ files:
271
266
  - writeexcel.rdoc
272
267
  homepage: http://wiki.github.com/cxn03651/writeexcel/
273
268
  licenses: []
274
-
275
269
  post_install_message:
276
270
  rdoc_options: []
277
-
278
- require_paths:
271
+ require_paths:
279
272
  - lib
280
- required_ruby_version: !ruby/object:Gem::Requirement
273
+ required_ruby_version: !ruby/object:Gem::Requirement
281
274
  none: false
282
- requirements:
283
- - - ">="
284
- - !ruby/object:Gem::Version
285
- hash: 3
286
- segments:
287
- - 0
288
- version: "0"
289
- required_rubygems_version: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - ! '>='
277
+ - !ruby/object:Gem::Version
278
+ version: '0'
279
+ required_rubygems_version: !ruby/object:Gem::Requirement
290
280
  none: false
291
- requirements:
292
- - - ">="
293
- - !ruby/object:Gem::Version
294
- hash: 3
295
- segments:
296
- - 0
297
- version: "0"
281
+ requirements:
282
+ - - ! '>='
283
+ - !ruby/object:Gem::Version
284
+ version: '0'
298
285
  requirements: []
299
-
300
286
  rubyforge_project:
301
- rubygems_version: 1.7.2
287
+ rubygems_version: 1.8.10
302
288
  signing_key:
303
289
  specification_version: 3
304
290
  summary: Write to a cross-platform Excel binary file.
305
291
  test_files: []
306
-