spreadsheet 0.8.9 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +7 -1
- data/{GUIDE.txt → GUIDE.md} +174 -118
- data/Gemfile +7 -1
- data/Gemfile.lock +8 -11
- data/{History.txt → History.md} +62 -51
- data/Manifest.txt +5 -3
- data/{README.txt → README.md} +18 -18
- data/bin/xlsopcodes +12 -14
- data/lib/spreadsheet.rb +1 -1
- data/lib/spreadsheet/excel/internals.rb +1 -0
- data/lib/spreadsheet/excel/reader.rb +21 -0
- data/lib/spreadsheet/excel/worksheet.rb +8 -0
- data/lib/spreadsheet/excel/writer/worksheet.rb +25 -0
- data/lib/spreadsheet/workbook.rb +5 -0
- data/lib/spreadsheet/worksheet.rb +12 -1
- data/spreadsheet.gemspec +2 -2
- data/test/data/test_margin.xls +0 -0
- data/test/data/test_pagesetup.xls +0 -0
- data/test/integration.rb +47 -0
- data/test/workbook.rb +11 -0
- metadata +87 -76
data/Gemfile.lock
CHANGED
@@ -1,20 +1,17 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
spreadsheet (0.8.6)
|
5
|
-
ruby-ole
|
6
|
-
|
7
1
|
GEM
|
8
2
|
remote: https://rubygems.org/
|
9
3
|
specs:
|
10
|
-
hoe (3.
|
4
|
+
hoe (3.7.1)
|
11
5
|
rake (>= 0.8, < 11.0)
|
12
|
-
rake (10.0
|
13
|
-
ruby-ole (1.2.11.
|
6
|
+
rake (10.1.0)
|
7
|
+
ruby-ole (1.2.11.7)
|
8
|
+
spreadsheet (0.8.9)
|
9
|
+
ruby-ole (>= 1.0)
|
14
10
|
|
15
11
|
PLATFORMS
|
16
12
|
ruby
|
17
13
|
|
18
14
|
DEPENDENCIES
|
19
|
-
hoe
|
20
|
-
|
15
|
+
hoe (>= 3.4)
|
16
|
+
ruby-ole
|
17
|
+
spreadsheet
|
data/{History.txt → History.md}
RENAMED
@@ -1,11 +1,21 @@
|
|
1
|
-
|
1
|
+
### 0.9.0 / 16.09.2013
|
2
|
+
|
3
|
+
* Author: Pavel <pavel.evst@gmail.com>
|
4
|
+
Date: Mon Sep 16 14:02:49 2013 +0700
|
5
|
+
|
6
|
+
* Test cases for Worksheet#margins, Worksheet#pagesetup, Workbook#delete_worksheet. Fix bugs related to it.
|
7
|
+
* Page margins reader/writter
|
8
|
+
* Markdownify GUIDE
|
9
|
+
* Add page setup options (landscape or portrait and adjust_to)
|
10
|
+
|
11
|
+
### 0.8.9 / 24.08.2013
|
2
12
|
|
3
13
|
Author: Doug Renn <renn@nestegg.com>
|
4
14
|
Date: Fri Aug 23 17:10:24 2013 -0600
|
5
15
|
|
6
16
|
* Work around to handle number formats that are being mistaken time formats
|
7
17
|
|
8
|
-
|
18
|
+
### 0.8.8 / 02.08.2013
|
9
19
|
|
10
20
|
Author: Nathan Colgate <nathancolgate@gmail.com>
|
11
21
|
Date: Thu Aug 1 15:01:57 2013 -0500
|
@@ -13,7 +23,7 @@ Date: Thu Aug 1 15:01:57 2013 -0500
|
|
13
23
|
* Update excel/internals.rb to reference a valid Encoding type
|
14
24
|
* Encoding.find("MACINTOSH") was throwing an error. Encoding.find("MACROMAN") does not.
|
15
25
|
|
16
|
-
|
26
|
+
### 0.8.7 / 24.07.2013
|
17
27
|
|
18
28
|
Author: Yasuhiro Asaka <yasaka@ywesee.com>
|
19
29
|
Date: Wed Jul 24 11:31:12 2013 +0900
|
@@ -26,31 +36,31 @@ Date: Wed Jul 24 11:31:12 2013 +0900
|
|
26
36
|
* The source :rubygems is deprecated because HTTP
|
27
37
|
* requests are insecure. (Gemfile)
|
28
38
|
|
29
|
-
|
39
|
+
### 0.8.6 / 11.07.2013
|
30
40
|
|
31
41
|
Author: Arjun Anand and Robert Stern <dev+arjuna+rstern@reenhanced.com>
|
32
42
|
Date: Wed Jul 10 13:45:30 2013 -0400
|
33
43
|
|
34
44
|
* Allow editing of an existing worksheet.
|
35
45
|
|
36
|
-
|
46
|
+
### 0.8.5 / 24.04.2013
|
37
47
|
|
38
48
|
* Applied Patch by Joao Almeida: When editing an existing sheet, cells merge was not working.
|
39
49
|
* https://github.com/voraz/spreadsheet/pull/14.patch
|
40
50
|
|
41
|
-
|
51
|
+
### 0.8.4 / 20.04.2013
|
42
52
|
|
43
53
|
* Applied Patch by boss@airbladesoftware.com
|
44
54
|
* https://groups.google.com/d/msg/rubyspreadsheet/73IoEwSx69w/barE7uVnIzwJ
|
45
55
|
|
46
|
-
|
56
|
+
### 0.8.3 / 12.03.2013
|
47
57
|
|
48
58
|
Author: Keith Walsh <keith.walsh@adtegrity.com>
|
49
59
|
Date: Mon Mar 11 16:48:25 2013 -0400
|
50
60
|
|
51
61
|
* Typo correction in guide example.
|
52
62
|
|
53
|
-
|
63
|
+
### 0.8.2 / 28.02.2013
|
54
64
|
|
55
65
|
Author: Roque Pinel <roque.pinel@infotechfl.com>
|
56
66
|
Date: Wed Feb 27 12:10:29 2013 -0500
|
@@ -59,16 +69,16 @@ Date: Wed Feb 27 12:10:29 2013 -0500
|
|
59
69
|
* Made API friendly to BigDecimal precision.
|
60
70
|
* Changes introduced by the user 'valeriusjames'.
|
61
71
|
|
62
|
-
|
72
|
+
### 0.8.1 / 18.02.2013
|
63
73
|
|
64
74
|
* Updated Manifest.txt to include lib/spreadsheet/excel/rgb.rb
|
65
75
|
|
66
|
-
|
76
|
+
### 0.8.0 / 18.02.2013
|
67
77
|
|
68
78
|
* Adding support for converting color palette values to RGB values (not vice-versa..yet)
|
69
79
|
* by https://github.com/dancaugherty/spreadsheet/compare/master...rgb
|
70
80
|
|
71
|
-
|
81
|
+
### 0.7.9 / 06.02.2013
|
72
82
|
|
73
83
|
Author: Eugeniy Belyaev (zhekanax)
|
74
84
|
|
@@ -77,7 +87,7 @@ Author: Eugeniy Belyaev (zhekanax)
|
|
77
87
|
nevertheless it makes it possible.
|
78
88
|
* https://github.com/zdavatz/spreadsheet/pull/27
|
79
89
|
|
80
|
-
|
90
|
+
### 0.7.8 / 06.02.2013
|
81
91
|
|
82
92
|
Author: Kenichi Kamiya <kachick1@gmail.com>
|
83
93
|
Date: Wed Feb 6 11:23:35 2013 +0900
|
@@ -87,7 +97,7 @@ Date: Wed Feb 6 11:23:35 2013 +0900
|
|
87
97
|
* Remove warnings "assigned but unused variable"
|
88
98
|
* Enable $VERBOSE flag when running test
|
89
99
|
|
90
|
-
|
100
|
+
### 0.7.7 / 22.01.2013
|
91
101
|
|
92
102
|
Author: DeTeam <timur.deteam@gmail.com>
|
93
103
|
Date: Tue Jan 22 19:11:52 2013 +0400
|
@@ -101,7 +111,7 @@ Date: Tue Jan 22 19:11:52 2013 +0400
|
|
101
111
|
|
102
112
|
also see: https://github.com/zdavatz/spreadsheet/pull/24
|
103
113
|
|
104
|
-
|
114
|
+
### 0.7.6 / 15.01.2013
|
105
115
|
|
106
116
|
Author: Kenichi Kamiya <kachick1@gmail.com>
|
107
117
|
Date: Tue Jan 15 15:52:58 2013 +0900
|
@@ -113,28 +123,28 @@ Date: Tue Jan 15 15:52:58 2013 +0900
|
|
113
123
|
|
114
124
|
also see: https://github.com/zdavatz/spreadsheet/pull/21
|
115
125
|
|
116
|
-
|
126
|
+
### 0.7.5 / 06.12.2012
|
117
127
|
|
118
128
|
* Add error tolerant values for Iconv when writing spreadsheet
|
119
129
|
* by andrea@spaghetticode.it
|
120
130
|
|
121
|
-
|
131
|
+
### 0.7.4 / 06.10.2012
|
122
132
|
|
123
133
|
* Adds Spreadsheet::Excel::Row#to_a method to properly decode Date and DateTime data.
|
124
134
|
* patches by https://github.com/mdgreenfield/spreadsheet
|
125
135
|
|
126
|
-
|
136
|
+
### 0.7.3 / 26.06.2012
|
127
137
|
|
128
138
|
* Fix Format borders
|
129
139
|
* see https://github.com/zdavatz/spreadsheet/pull/6 for full details.
|
130
140
|
* patches by uraki66@gmail.com
|
131
141
|
|
132
|
-
|
142
|
+
### 0.7.2 / 14.06.2012
|
133
143
|
|
134
144
|
* many changes by Mina Naguib <mina.git@naguib.ca>
|
135
145
|
* see git log for full details
|
136
146
|
|
137
|
-
|
147
|
+
### 0.7.1 / 08.05.2012
|
138
148
|
|
139
149
|
* Author: Artem Ignatiev <zazubrik@gmail.com>
|
140
150
|
* remove require and rake altogether
|
@@ -143,7 +153,7 @@ also see: https://github.com/zdavatz/spreadsheet/pull/21
|
|
143
153
|
* add rake as development dependency
|
144
154
|
* Somehow it broken rake on my other project
|
145
155
|
|
146
|
-
|
156
|
+
### 0.7.0 / 07.05.2012
|
147
157
|
|
148
158
|
* Author: Artem Ignatiev <zazubrik@gmail.com>
|
149
159
|
* use both ruby 1.8 and 1.9 compatible way of getting character code when hashing
|
@@ -153,37 +163,37 @@ also see: https://github.com/zdavatz/spreadsheet/pull/21
|
|
153
163
|
not a gem specification built, refuses to load the gem.
|
154
164
|
* Testing worksheet protection
|
155
165
|
|
156
|
-
|
166
|
+
### 0.6.9 / 28.04.2012
|
157
167
|
|
158
168
|
* Yield is more simple here too.
|
159
169
|
* No need to capture the block in Spreadsheet.open
|
160
170
|
* Rather than extending a core class, let's just use #rcompact from a helper module
|
161
171
|
|
162
|
-
|
172
|
+
### 0.6.8 / 20.01.2012
|
163
173
|
|
164
174
|
* adds the fix to allow the writing of empty rows, by ClemensP.
|
165
175
|
* Test also by ClemensP.
|
166
176
|
|
167
|
-
|
177
|
+
### 0.6.7 / 18.01.2012
|
168
178
|
|
169
179
|
* http://dev.ywesee.com/wiki.php/Gem/Spreadsheet points point 2.
|
170
180
|
* Tests by Michal
|
171
181
|
* Patches by Timon
|
172
182
|
|
173
|
-
|
183
|
+
### 0.6.6 / 18.01.2012
|
174
184
|
|
175
185
|
* http://dev.ywesee.com/wiki.php/Gem/Spreadsheet points 8 and 9.
|
176
186
|
* Fixes byjsaak@napalm.hu
|
177
187
|
* Patches by Vitaly Klimov
|
178
188
|
|
179
|
-
|
189
|
+
### 0.6.5.9 / 7.9.2011
|
180
190
|
|
181
191
|
* Fixed a frozen string bug thanks to dblock (Daniel Doubrovkine),
|
182
192
|
* dblock@dblock.org
|
183
193
|
|
184
194
|
* https://github.com/dblock/spreadsheet/commit/164dcfbb24097728f1a7453702c270107e725b7c
|
185
195
|
|
186
|
-
|
196
|
+
### 0.6.5.8 / 30.8.2011
|
187
197
|
|
188
198
|
* This patch is about adding a sheet_count method to workbook so that it returns
|
189
199
|
* the total no of worksheets for easy access. Please check. By
|
@@ -191,50 +201,50 @@ also see: https://github.com/zdavatz/spreadsheet/pull/21
|
|
191
201
|
|
192
202
|
* https://gist.github.com/1180625
|
193
203
|
|
194
|
-
|
204
|
+
### 0.6.5.7 / 20.7.2011
|
195
205
|
|
196
206
|
* Fixed the bug introduced by Roel van der Hoorn and updated the test cases.
|
197
207
|
|
198
208
|
* https://github.com/vanderhoorn/spreadsheet/commit/c79ab14dcf40dee1d6d5ad2b174f3fe31414ca28
|
199
209
|
|
200
|
-
|
210
|
+
### 0.6.5.6 / 20.7.2011
|
201
211
|
|
202
212
|
* Added a fix from Roel van der Hoorn to sanitize_worksheets if 'sheets' is empty.
|
203
213
|
|
204
214
|
* https://github.com/vanderhoorn/spreadsheet/commit/c109f2ac5486f9a38a6d93267daf560ab4b9473e
|
205
215
|
|
206
|
-
|
216
|
+
### 0.6.5.5 / 24.6.2011
|
207
217
|
|
208
218
|
* updated the color code for orange to 0x0034 => :orange, thanks to the hint of Jonty
|
209
219
|
|
210
220
|
* https://gist.github.com/1044700
|
211
221
|
|
212
|
-
|
222
|
+
### 0.6.5.4 / 18.4.2011
|
213
223
|
|
214
224
|
* Updated worksheet.rb according to the Patch of Björn Andersson.
|
215
225
|
|
216
226
|
* https://gist.github.com/925007#file_test.patch
|
217
227
|
* http://url.ba/09p9
|
218
228
|
|
219
|
-
|
229
|
+
### 0.6.5.3 / 23.3.2011
|
220
230
|
|
221
231
|
* Updated Txt lib/spreadsheet/excel/writer/biff8.rb with a Patch from Alexandre Bini
|
222
232
|
|
223
233
|
* See this for full detail: http://url.ba/6r1z
|
224
234
|
|
225
|
-
|
235
|
+
### 0.6.5.2 / 14.2.2011
|
226
236
|
|
227
237
|
* Updated test/integration.rb to work with Ruby ruby 1.9.2p136 (2010-12-25 revision 30365) [i686-linux]
|
228
238
|
|
229
239
|
* Thanks for the hint tomiacannondale@gmail.com
|
230
240
|
|
231
|
-
|
241
|
+
### 0.6.5.1 / 17.1.2011
|
232
242
|
|
233
243
|
* One enhancement thanks to Qiong Peng, Moo Yu, and Thierry Thelliez
|
234
244
|
|
235
245
|
* http://dev.ywesee.com/wiki.php/Gem/Spreadsheet
|
236
246
|
|
237
|
-
|
247
|
+
### 0.6.5 / 07.12.2010
|
238
248
|
|
239
249
|
* 2 Enhancements courtesy to ISS AG.
|
240
250
|
|
@@ -246,7 +256,7 @@ also see: https://github.com/zdavatz/spreadsheet/pull/21
|
|
246
256
|
* Both of above two points is now possible by creating a new Excel File from
|
247
257
|
scratch or editing an existing XLS and adding groups or hiding lines to it.
|
248
258
|
|
249
|
-
|
259
|
+
### 0.6.4.1 / 2009-09-17
|
250
260
|
|
251
261
|
* 3 Bugfixes
|
252
262
|
|
@@ -274,7 +284,7 @@ also see: https://github.com/zdavatz/spreadsheet/pull/21
|
|
274
284
|
http://rubyforge.org/tracker/index.php?func=detail&aid=26513&group_id=678&atid=2677
|
275
285
|
|
276
286
|
|
277
|
-
|
287
|
+
### 0.6.4 / 2009-07-03
|
278
288
|
|
279
289
|
* 5 Bugfixes
|
280
290
|
|
@@ -306,7 +316,7 @@ also see: https://github.com/zdavatz/spreadsheet/pull/21
|
|
306
316
|
|
307
317
|
* Spreadsheet now runs on Ruby 1.9
|
308
318
|
|
309
|
-
|
319
|
+
### 0.6.3.1 / 2009-02-13
|
310
320
|
|
311
321
|
* 3 Bugfixes
|
312
322
|
|
@@ -336,7 +346,7 @@ also see: https://github.com/zdavatz/spreadsheet/pull/21
|
|
336
346
|
as requested by Eric Peterson in
|
337
347
|
http://rubyforge.org/forum/forum.php?thread_id=31346&forum_id=2920
|
338
348
|
|
339
|
-
|
349
|
+
### 0.6.3 / 2009-01-14
|
340
350
|
|
341
351
|
* 1 Bugfix
|
342
352
|
|
@@ -354,7 +364,7 @@ also see: https://github.com/zdavatz/spreadsheet/pull/21
|
|
354
364
|
This issue was reported by Spencer Turner in
|
355
365
|
http://rubyforge.org/tracker/index.php?func=detail&aid=23287&group_id=678&atid=2677
|
356
366
|
|
357
|
-
|
367
|
+
### 0.6.2.1 / 2008-12-18
|
358
368
|
|
359
369
|
* 1 Bugfix
|
360
370
|
|
@@ -362,7 +372,7 @@ also see: https://github.com/zdavatz/spreadsheet/pull/21
|
|
362
372
|
Thanks to Eugene Mikhailov for tracking this one down in:
|
363
373
|
http://rubyforge.org/tracker/index.php?func=detail&aid=23085&group_id=678&atid=2677
|
364
374
|
|
365
|
-
|
375
|
+
### 0.6.2 / 2008-12-11
|
366
376
|
|
367
377
|
* 14 Bugfixes
|
368
378
|
|
@@ -429,7 +439,7 @@ also see: https://github.com/zdavatz/spreadsheet/pull/21
|
|
429
439
|
Takes care of http://rubyforge.org/forum/message.php?msg_id=62941
|
430
440
|
Reported by David Chamberlain
|
431
441
|
|
432
|
-
|
442
|
+
### 0.6.1.9 / 2008-11-07
|
433
443
|
|
434
444
|
* 1 Bugfix
|
435
445
|
|
@@ -443,7 +453,7 @@ also see: https://github.com/zdavatz/spreadsheet/pull/21
|
|
443
453
|
* Added support for appending Worksheets to a Workbook
|
444
454
|
(Thanks to Mohammed Rabbani for the report)
|
445
455
|
|
446
|
-
|
456
|
+
### 0.6.1.8 / 2008-10-31
|
447
457
|
|
448
458
|
* 1 Bugfix
|
449
459
|
|
@@ -451,7 +461,7 @@ also see: https://github.com/zdavatz/spreadsheet/pull/21
|
|
451
461
|
lead to data from the wrong Sheet being returned.
|
452
462
|
(Thanks to Bugreporter extraordinaire Bjørn Hjelle)
|
453
463
|
|
454
|
-
|
464
|
+
### 0.6.1.7 / 2008-10-30
|
455
465
|
|
456
466
|
* 1 Bugfix
|
457
467
|
|
@@ -463,7 +473,7 @@ also see: https://github.com/zdavatz/spreadsheet/pull/21
|
|
463
473
|
* Allow the substitution of an IO object with a StringIO.
|
464
474
|
(Thanks to luxor for the report)
|
465
475
|
|
466
|
-
|
476
|
+
### 0.6.1.6 / 2008-10-28
|
467
477
|
|
468
478
|
* 2 Bugfixes
|
469
479
|
|
@@ -478,7 +488,7 @@ also see: https://github.com/zdavatz/spreadsheet/pull/21
|
|
478
488
|
value
|
479
489
|
(Thanks to Bjørn Hjelle for the report)
|
480
490
|
|
481
|
-
|
491
|
+
### 0.6.1.5 / 2008-10-24
|
482
492
|
|
483
493
|
* 2 Bugfixes
|
484
494
|
|
@@ -488,7 +498,7 @@ also see: https://github.com/zdavatz/spreadsheet/pull/21
|
|
488
498
|
* Handle empty Worksheets
|
489
499
|
(Thanks to Charles Lowe for the Patches)
|
490
500
|
|
491
|
-
|
501
|
+
### 0.6.1.4 / 2008-10-23
|
492
502
|
|
493
503
|
* 1 Bugfix
|
494
504
|
|
@@ -499,7 +509,7 @@ also see: https://github.com/zdavatz/spreadsheet/pull/21
|
|
499
509
|
|
500
510
|
* Read/Write functionality for Links (only URLs can be written as of now)
|
501
511
|
|
502
|
-
|
512
|
+
### 0.6.1.3 / 2008-10-21
|
503
513
|
|
504
514
|
* 2 Bugfixes
|
505
515
|
|
@@ -509,7 +519,7 @@ also see: https://github.com/zdavatz/spreadsheet/pull/21
|
|
509
519
|
no DBCELL records terminating the Rowblocks.
|
510
520
|
(Thanks to Bjørn Hjelle for the Bugreport)
|
511
521
|
|
512
|
-
|
522
|
+
### 0.6.1.2 / 2008-10-20
|
513
523
|
|
514
524
|
* 2 Bugfixes
|
515
525
|
|
@@ -519,13 +529,13 @@ also see: https://github.com/zdavatz/spreadsheet/pull/21
|
|
519
529
|
Settings when reading the SST, fixing a problem where the presence of
|
520
530
|
Richtext could lead to an incomplete SST.
|
521
531
|
|
522
|
-
|
532
|
+
### 0.6.1.1 / 2008-10-20
|
523
533
|
|
524
534
|
* 1 Bugfix
|
525
535
|
|
526
536
|
* Corrected the Manifest - included column.rb
|
527
537
|
|
528
|
-
|
538
|
+
### 0.6.1 / 2008-10-17
|
529
539
|
|
530
540
|
* 3 minor enhancements
|
531
541
|
|
@@ -533,7 +543,7 @@ also see: https://github.com/zdavatz/spreadsheet/pull/21
|
|
533
543
|
* Reads and writes correct Fonts (Font-indices > 3 appear to be 1-based)
|
534
544
|
* Reads xf data
|
535
545
|
|
536
|
-
|
546
|
+
### 0.6.0 / 2008-10-13
|
537
547
|
|
538
548
|
* 1 major enhancement
|
539
549
|
|
@@ -541,3 +551,4 @@ also see: https://github.com/zdavatz/spreadsheet/pull/21
|
|
541
551
|
grueling labor in the dark binary mines of Little-Endian Biff and long
|
542
552
|
hours spent polishing the surfaces of documentation.
|
543
553
|
|
554
|
+
|
data/Manifest.txt
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
.gitignore
|
2
2
|
.travis.yml
|
3
|
-
GUIDE.
|
3
|
+
GUIDE.md
|
4
4
|
Gemfile
|
5
5
|
Gemfile.lock
|
6
|
-
History.
|
6
|
+
History.md
|
7
7
|
LICENSE.txt
|
8
8
|
Manifest.txt
|
9
|
-
README.
|
9
|
+
README.md
|
10
10
|
Rakefile
|
11
11
|
bin/xlsopcodes
|
12
12
|
lib/parseexcel.rb
|
@@ -56,9 +56,11 @@ test/data/test_datetime.xls
|
|
56
56
|
test/data/test_empty.xls
|
57
57
|
test/data/test_formula.xls
|
58
58
|
test/data/test_long_sst_record.xls
|
59
|
+
test/data/test_margin.xls
|
59
60
|
test/data/test_merged_and_protected.xls
|
60
61
|
test/data/test_merged_cells.xls
|
61
62
|
test/data/test_missing_row.xls
|
63
|
+
test/data/test_pagesetup.xls
|
62
64
|
test/data/test_version_excel5.xls
|
63
65
|
test/data/test_version_excel95.xls
|
64
66
|
test/data/test_version_excel97.xls
|