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 +1 -1
- data/examples/store_formula.rb +15 -0
- data/lib/writeexcel/worksheet.rb +55 -55
- data/test/perl_output/store_formula.xls +0 -0
- data/test/test_example_match.rb +15 -0
- data/writeexcel.gemspec +278 -276
- metadata +24 -39
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
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
|
data/lib/writeexcel/worksheet.rb
CHANGED
@@ -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
|
|
Binary file
|
data/test/test_example_match.rb
CHANGED
@@ -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
|
data/writeexcel.gemspec
CHANGED
@@ -1,276 +1,278 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.6.
|
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 =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
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/
|
84
|
-
"examples/
|
85
|
-
"examples/
|
86
|
-
"
|
87
|
-
"html/
|
88
|
-
"html/images/
|
89
|
-
"html/images/
|
90
|
-
"html/images/
|
91
|
-
"html/images/
|
92
|
-
"html/images/
|
93
|
-
"html/images/
|
94
|
-
"html/images/
|
95
|
-
"html/images/
|
96
|
-
"html/images/
|
97
|
-
"html/images/
|
98
|
-
"html/images/
|
99
|
-
"html/images/
|
100
|
-
"html/
|
101
|
-
"html/
|
102
|
-
"
|
103
|
-
"lib/writeexcel
|
104
|
-
"lib/writeexcel/
|
105
|
-
"lib/writeexcel/
|
106
|
-
"lib/writeexcel/
|
107
|
-
"lib/writeexcel/
|
108
|
-
"lib/writeexcel/charts/
|
109
|
-
"lib/writeexcel/charts/
|
110
|
-
"lib/writeexcel/charts/
|
111
|
-
"lib/writeexcel/charts/
|
112
|
-
"lib/writeexcel/charts/
|
113
|
-
"lib/writeexcel/charts/
|
114
|
-
"lib/writeexcel/charts/
|
115
|
-
"lib/writeexcel/
|
116
|
-
"lib/writeexcel/
|
117
|
-
"lib/writeexcel/
|
118
|
-
"lib/writeexcel/
|
119
|
-
"lib/writeexcel/
|
120
|
-
"lib/writeexcel/
|
121
|
-
"lib/writeexcel/
|
122
|
-
"lib/writeexcel/
|
123
|
-
"lib/writeexcel/
|
124
|
-
"lib/writeexcel/
|
125
|
-
"lib/writeexcel/
|
126
|
-
"lib/writeexcel/
|
127
|
-
"lib/writeexcel/
|
128
|
-
"lib/writeexcel/
|
129
|
-
"lib/writeexcel/
|
130
|
-
"lib/writeexcel/
|
131
|
-
"lib/writeexcel/
|
132
|
-
"lib/writeexcel/
|
133
|
-
"lib/writeexcel/
|
134
|
-
"lib/writeexcel/
|
135
|
-
"lib/writeexcel/
|
136
|
-
"lib/writeexcel/
|
137
|
-
"lib/writeexcel/
|
138
|
-
"
|
139
|
-
"test/excelfile/
|
140
|
-
"test/excelfile/
|
141
|
-
"test/excelfile/
|
142
|
-
"test/excelfile/
|
143
|
-
"test/
|
144
|
-
"test/
|
145
|
-
"test/perl_output/
|
146
|
-
"test/perl_output/
|
147
|
-
"test/perl_output/
|
148
|
-
"test/perl_output/
|
149
|
-
"test/perl_output/
|
150
|
-
"test/perl_output/
|
151
|
-
"test/perl_output/
|
152
|
-
"test/perl_output/
|
153
|
-
"test/perl_output/
|
154
|
-
"test/perl_output/
|
155
|
-
"test/perl_output/
|
156
|
-
"test/perl_output/
|
157
|
-
"test/perl_output/
|
158
|
-
"test/perl_output/
|
159
|
-
"test/perl_output/
|
160
|
-
"test/perl_output/
|
161
|
-
"test/perl_output/
|
162
|
-
"test/perl_output/
|
163
|
-
"test/perl_output/
|
164
|
-
"test/perl_output/
|
165
|
-
"test/perl_output/
|
166
|
-
"test/perl_output/
|
167
|
-
"test/perl_output/
|
168
|
-
"test/perl_output/
|
169
|
-
"test/perl_output/
|
170
|
-
"test/perl_output/
|
171
|
-
"test/perl_output/
|
172
|
-
"test/perl_output/
|
173
|
-
"test/perl_output/
|
174
|
-
"test/perl_output/
|
175
|
-
"test/perl_output/
|
176
|
-
"test/perl_output/
|
177
|
-
"test/perl_output/
|
178
|
-
"test/perl_output/
|
179
|
-
"test/perl_output/
|
180
|
-
"test/perl_output/
|
181
|
-
"test/perl_output/
|
182
|
-
"test/perl_output/
|
183
|
-
"test/perl_output/
|
184
|
-
"test/perl_output/
|
185
|
-
"test/perl_output/
|
186
|
-
"test/perl_output/
|
187
|
-
"test/perl_output/
|
188
|
-
"test/perl_output/
|
189
|
-
"test/perl_output/
|
190
|
-
"test/perl_output/
|
191
|
-
"test/perl_output/
|
192
|
-
"test/perl_output/
|
193
|
-
"test/perl_output/
|
194
|
-
"test/perl_output/
|
195
|
-
"test/perl_output/
|
196
|
-
"test/perl_output/
|
197
|
-
"test/perl_output/
|
198
|
-
"test/perl_output/
|
199
|
-
"test/perl_output/
|
200
|
-
"test/perl_output/
|
201
|
-
"test/perl_output/
|
202
|
-
"test/perl_output/
|
203
|
-
"test/perl_output/
|
204
|
-
"test/perl_output/
|
205
|
-
"test/perl_output/
|
206
|
-
"test/perl_output/
|
207
|
-
"test/perl_output/
|
208
|
-
"test/perl_output/
|
209
|
-
"test/perl_output/
|
210
|
-
"test/perl_output/
|
211
|
-
"test/perl_output/
|
212
|
-
"test/perl_output/
|
213
|
-
"test/perl_output/
|
214
|
-
"test/perl_output/
|
215
|
-
"test/
|
216
|
-
"test/
|
217
|
-
"test/
|
218
|
-
"test/
|
219
|
-
"test/
|
220
|
-
"test/
|
221
|
-
"test/
|
222
|
-
"test/
|
223
|
-
"test/
|
224
|
-
"test/
|
225
|
-
"test/
|
226
|
-
"test/
|
227
|
-
"test/
|
228
|
-
"test/
|
229
|
-
"test/
|
230
|
-
"test/
|
231
|
-
"test/
|
232
|
-
"test/
|
233
|
-
"test/
|
234
|
-
"test/
|
235
|
-
"test/
|
236
|
-
"test/
|
237
|
-
"test/
|
238
|
-
"test/
|
239
|
-
"test/
|
240
|
-
"test/
|
241
|
-
"test/
|
242
|
-
"test/
|
243
|
-
"test/
|
244
|
-
"test/
|
245
|
-
"test/
|
246
|
-
"test/
|
247
|
-
"test/
|
248
|
-
"test/
|
249
|
-
"test/
|
250
|
-
"test/
|
251
|
-
"test/
|
252
|
-
"test/
|
253
|
-
"test/
|
254
|
-
"test/
|
255
|
-
"test/
|
256
|
-
"test/
|
257
|
-
"test/
|
258
|
-
"
|
259
|
-
"
|
260
|
-
"
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
s.
|
265
|
-
s.
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
286
|
-
|
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
|
-
|
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.
|
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
|
-
|