ruh-roo 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +677 -0
  3. data/Gemfile +24 -0
  4. data/LICENSE +24 -0
  5. data/README.md +315 -0
  6. data/lib/roo/base.rb +607 -0
  7. data/lib/roo/constants.rb +7 -0
  8. data/lib/roo/csv.rb +141 -0
  9. data/lib/roo/errors.rb +11 -0
  10. data/lib/roo/excelx/cell/base.rb +108 -0
  11. data/lib/roo/excelx/cell/boolean.rb +30 -0
  12. data/lib/roo/excelx/cell/date.rb +28 -0
  13. data/lib/roo/excelx/cell/datetime.rb +107 -0
  14. data/lib/roo/excelx/cell/empty.rb +20 -0
  15. data/lib/roo/excelx/cell/number.rb +89 -0
  16. data/lib/roo/excelx/cell/string.rb +19 -0
  17. data/lib/roo/excelx/cell/time.rb +44 -0
  18. data/lib/roo/excelx/cell.rb +110 -0
  19. data/lib/roo/excelx/comments.rb +55 -0
  20. data/lib/roo/excelx/coordinate.rb +19 -0
  21. data/lib/roo/excelx/extractor.rb +39 -0
  22. data/lib/roo/excelx/format.rb +71 -0
  23. data/lib/roo/excelx/images.rb +26 -0
  24. data/lib/roo/excelx/relationships.rb +33 -0
  25. data/lib/roo/excelx/shared.rb +39 -0
  26. data/lib/roo/excelx/shared_strings.rb +151 -0
  27. data/lib/roo/excelx/sheet.rb +151 -0
  28. data/lib/roo/excelx/sheet_doc.rb +248 -0
  29. data/lib/roo/excelx/styles.rb +64 -0
  30. data/lib/roo/excelx/workbook.rb +63 -0
  31. data/lib/roo/excelx.rb +480 -0
  32. data/lib/roo/font.rb +17 -0
  33. data/lib/roo/formatters/base.rb +15 -0
  34. data/lib/roo/formatters/csv.rb +84 -0
  35. data/lib/roo/formatters/matrix.rb +23 -0
  36. data/lib/roo/formatters/xml.rb +31 -0
  37. data/lib/roo/formatters/yaml.rb +40 -0
  38. data/lib/roo/helpers/default_attr_reader.rb +20 -0
  39. data/lib/roo/helpers/weak_instance_cache.rb +41 -0
  40. data/lib/roo/libre_office.rb +4 -0
  41. data/lib/roo/link.rb +34 -0
  42. data/lib/roo/open_office.rb +628 -0
  43. data/lib/roo/spreadsheet.rb +39 -0
  44. data/lib/roo/tempdir.rb +21 -0
  45. data/lib/roo/utils.rb +128 -0
  46. data/lib/roo/version.rb +3 -0
  47. data/lib/roo.rb +36 -0
  48. data/roo.gemspec +28 -0
  49. metadata +189 -0
data/CHANGELOG.md ADDED
@@ -0,0 +1,677 @@
1
+ ## Unreleased
2
+
3
+ ## [2.8.3] 2020-02-03
4
+ ### Changed/Added
5
+ - Updated rubyzip version. Now minimal version is 1.3.0 [515](https://github.com/roo-rb/roo/pull/515) - [CVE-2019-16892](https://github.com/rubyzip/rubyzip/pull/403)
6
+
7
+ ## [2.8.2] 2019-02-01
8
+ ### Changed/Added
9
+ - Support range cell for Excelx's links [490](https://github.com/roo-rb/roo/pull/490)
10
+ - Skip `extract_hyperlinks` if not required [488](https://github.com/roo-rb/roo/pull/488)
11
+
12
+ ### Fixed
13
+ - Fixed error for invalid link [492](https://github.com/roo-rb/roo/pull/492)
14
+
15
+ ## [2.8.1] 2019-01-21
16
+ ### Fixed
17
+ - Fixed error if excelx's cell have empty children [487](https://github.com/roo-rb/roo/pull/487)
18
+
19
+ ## [2.8.0] 2019-01-18
20
+ ### Fixed
21
+ - Fixed inconsistent column length for CSV [375](https://github.com/roo-rb/roo/pull/375)
22
+ - Fixed formatted_value with `%` for Excelx [416](https://github.com/roo-rb/roo/pull/416)
23
+ - Improved Memory consumption and performance [434](https://github.com/roo-rb/roo/pull/434) [449](https://github.com/roo-rb/roo/pull/449) [454](https://github.com/roo-rb/roo/pull/454) [456](https://github.com/roo-rb/roo/pull/456) [458](https://github.com/roo-rb/roo/pull/458) [462](https://github.com/roo-rb/roo/pull/462) [466](https://github.com/roo-rb/roo/pull/466)
24
+ - Accept both Transitional and Strict Type for Excelx's worksheets [441](https://github.com/roo-rb/roo/pull/441)
25
+ - Fixed ruby warnings [442](https://github.com/roo-rb/roo/pull/442) [476](https://github.com/roo-rb/roo/pull/476)
26
+ - Restore support for URL as file identifier for CSV [462](https://github.com/roo-rb/roo/pull/462)
27
+ - Fixed missing location for Excelx's links [482](https://github.com/roo-rb/roo/pull/482)
28
+
29
+ ### Changed / Added
30
+ - Drop support for ruby 2.2.x and lower
31
+ - Updated rubyzip version for fixing security issue. Now minimal version is 1.2.1
32
+ - Roo::Excelx::Coordinate now inherits Array [458](https://github.com/roo-rb/roo/pull/458)
33
+ - Improved Roo::HeaderRowNotFoundError exception's message [461](https://github.com/roo-rb/roo/pull/461)
34
+ - Added `empty_cell` option which by default disable allocation for Roo::Excelx::Cell::Empty [464](https://github.com/roo-rb/roo/pull/464)
35
+ - Added support for variable number of decimals for Excelx's formatted_value [387](https://github.com/roo-rb/roo/pull/387)
36
+ - Added `disable_html_injection` option to disable html injection for shared string in `Roo::Excelx` [392](https://github.com/roo-rb/roo/pull/392)
37
+ - Added image extraction for Excelx [414](https://github.com/roo-rb/roo/pull/414) [397](https://github.com/roo-rb/roo/pull/397)
38
+ - Added support for `1e6` as scientific notation for Excelx [433](https://github.com/roo-rb/roo/pull/433)
39
+ - Added support for Integer as 0 based index for Excelx's `sheet_for` [455](https://github.com/roo-rb/roo/pull/455)
40
+ - Extended `no_hyperlinks` option for non streaming Excelx methods [459](https://github.com/roo-rb/roo/pull/459)
41
+ - Added `empty_cell` option to disable Roo::Excelx::Cell::Empty allocation for Excelx [464](https://github.com/roo-rb/roo/pull/464)
42
+ - Added support for Integer with leading zero for Roo:Excelx [479](https://github.com/roo-rb/roo/pull/479)
43
+ - Refactored Excelx code [453](https://github.com/roo-rb/roo/pull/453) [477](https://github.com/roo-rb/roo/pull/477) [483](https://github.com/roo-rb/roo/pull/483) [484](https://github.com/roo-rb/roo/pull/484)
44
+
45
+ ### Deprecations
46
+ - Roo::Excelx::Sheet#present_cells is deprecated [454](https://github.com/roo-rb/roo/pull/454)
47
+ - Roo::Utils.split_coordinate is deprecated [458](https://github.com/roo-rb/roo/pull/458)
48
+ - Roo::Excelx::Cell::Base#link is deprecated [457](https://github.com/roo-rb/roo/pull/457)
49
+
50
+ ## [2.7.1] 2017-01-03
51
+ ### Fixed
52
+ - Fixed regression where a CSV's encoding was being ignored [372](https://github.com/roo-rb/roo/pull/372)
53
+
54
+ ## [2.7.0] 2016-12-31
55
+ ### Fixed
56
+ - Added rack server for testing Roo's download capabilities [365](https://github.com/roo-rb/roo/pull/365)
57
+ - Refactored tests into different formats [365](https://github.com/roo-rb/roo/pull/365)
58
+ - Fixed OpenOffice for JRuby [362](https://github.com/roo-rb/roo/pull/362)
59
+ - Added '0.000000' => '%.6f' number format [354](https://github.com/roo-rb/roo/pull/354)
60
+ - Add additional formula cell types for to_csv [367][https://github.com/roo-rb/roo/pull/367]
61
+
62
+ ### Added
63
+ - Extracted formatters from Roo::Base#to_* methods [364](https://github.com/roo-rb/roo/pull/364)
64
+
65
+ ## [2.6.0] 2016-12-28
66
+ ### Fixed
67
+ - Fixed error if sheet name starts with a slash [348](https://github.com/roo-rb/roo/pull/348)
68
+ - Fixed loading to support files on ftp [355](https://github.com/roo-rb/roo/pull/355)
69
+ - Fixed Ruby 2.4.0 deprecation warnings [356](https://github.com/roo-rb/roo/pull/356)
70
+ - properly return date as string [359](https://github.com/roo-rb/roo/pull/359)
71
+
72
+ ### Added
73
+ - Cell values can be set in a CSV [350](https://github.com/roo-rb/roo/pull/350/)
74
+ - Raise an error Roo::Excelx::Extractor document is missing [358](https://github.com/roo-rb/roo/pull/358/)
75
+
76
+ ## [2.5.1] 2016-08-26
77
+ ### Fixed
78
+ - Fixed NameError. [337](https://github.com/roo-rb/roo/pull/337)
79
+
80
+ ## [2.5.0] 2016-08-21
81
+ ### Fixed
82
+ - Remove temporary directories via finalizers on garbage collection. This cleans them up in all known cases, rather than just when the #close method is called. The #close method can be used to cleanup early. [329](https://github.com/roo-rb/roo/pull/329)
83
+ - Fixed README.md typo [318](https://github.com/roo-rb/roo/pull/318)
84
+ - Parse sheets in ODS files once to improve performance [320](https://github.com/roo-rb/roo/pull/320)
85
+ - Fix some Cell conversion issues [324](https://github.com/roo-rb/roo/pull/324) and [331](https://github.com/roo-rb/roo/pull/331)
86
+ - Improved memory performance [332](https://github.com/roo-rb/roo/pull/332)
87
+ - Added `no_hyperlinks` option to improve streamig performance [319](https://github.com/roo-rb/roo/pull/319) and [333](https://github.com/roo-rb/roo/pull/333)
88
+
89
+ ### Deprecations
90
+ - Roo::Base::TEMP_PREFIX should be accessed via Roo::TEMP_PREFIX
91
+ - The private Roo::Base#make_tempdir is now available at the class level in
92
+ classes that use temporary directories, added via Roo::Tempdir
93
+ =======
94
+ ### Added
95
+ - Discard hyperlinks lookups to allow streaming parsing without loading whole files
96
+
97
+ ## [2.4.0] 2016-05-14
98
+ ### Fixed
99
+ - Fixed opening spreadsheets with charts [315](https://github.com/roo-rb/roo/pull/315)
100
+ - Fixed memory issues for Roo::Utils.number_to_letter [308](https://github.com/roo-rb/roo/pull/308)
101
+ - Fixed Roo::Excelx::Cell::Number to recognize floating point numbers [306](https://github.com/roo-rb/roo/pull/306)
102
+ - Fixed version number in Readme.md [304](https://github.com/roo-rb/roo/pull/304)
103
+
104
+ ### Added
105
+ - Added initial support for HTML formatting [278](https://github.com/roo-rb/roo/pull/278)
106
+
107
+ ## [2.3.2] 2016-02-18
108
+ ### Fixed
109
+ - Handle url with long query params (ex. S3 secure url) [302](https://github.com/roo-rb/roo/pull/302)
110
+ - Allow streaming for Roo::CSV [297](https://github.com/roo-rb/roo/pull/297)
111
+ - Export Fixnums to Added csv [295](https://github.com/roo-rb/roo/pull/295)
112
+ - Removed various Ruby warnings [289](https://github.com/roo-rb/roo/pull/289)
113
+ - Fix incorrect example result in Readme.md [293](https://github.com/roo-rb/roo/pull/293)
114
+
115
+ ## [2.3.1] - 2016-01-08
116
+ ### Fixed
117
+ - Properly parse scientific-notation number like 1E-3 [#288](https://github.com/roo-rb/roo/pull/288)
118
+ - Include all tests in default rake run [#283](https://github.com/roo-rb/roo/pull/283)
119
+ - Fix zero-padded numbers for Excelx [#282](https://github.com/roo-rb/roo/pull/282)
120
+
121
+ ### Changed
122
+ - Moved `ERROR_VALUES` from Excelx::Cell::Number ~> Excelx. [#280](https://github.com/roo-rb/roo/pull/280)
123
+
124
+ ## [2.3.0] - 2015-12-10
125
+ ### Changed
126
+ - Excelx::Cell::Number will return a String instead of an Integer or Float if the cell has an error like #DIV/0, etc. [#273](https://github.com/roo-rb/roo/pull/273)
127
+
128
+ ### Fixed
129
+ - Excelx::Cell::Number now handles cell errors. [#273](https://github.com/roo-rb/roo/pull/273)
130
+
131
+ ## [2.2.0] - 2015-10-31
132
+ ### Added
133
+ - Added support for returning Integers values to Roo::OpenOffice [#258](https://github.com/roo-rb/roo/pull/258)
134
+ - A missing Header Raises `Roo::HeaderRowNotFoundError` [#247](https://github.com/roo-rb/roo/pull/247)
135
+ - Roo::Excelx::Shared class to pass shared data to Roo::Excelx sheets [#220](https://github.com/roo-rb/roo/pull/220)
136
+ - Proper Type support to Roo::Excelx [#240](https://github.com/roo-rb/roo/pull/240)
137
+ - Added Roo::HeaderRowNotFoundError [#247](https://github.com/roo-rb/roo/pull/247)
138
+
139
+ ### Changed
140
+ - Made spelling/grammar corrections in the README[260](https://github.com/roo-rb/roo/pull/260)
141
+ - Moved Roo::Excelx::Format module [#259](https://github.com/roo-rb/roo/pull/259)
142
+ - Updated README with details about `Roo::Excelx#each_with_streaming` method [#250](https://github.com/roo-rb/roo/pull/250)
143
+
144
+ ### Fixed
145
+ - Fixed Base64 not found issue in Open Office [#267](https://github.com/roo-rb/roo/pull/267)
146
+ - Fixed Regexp to allow method access to cells with multiple digits [#255](https://github.com/roo-rb/roo/pull/255), [#268](https://github.com/roo-rb/roo/pull/268)
147
+
148
+ ## [2.1.1] - 2015-08-02
149
+ ### Fixed invalid new lines with _x000D_ character[#231](https://github.com/roo-rb/roo/pull/231)
150
+ ### Fixed missing URI issue. [#245](https://github.com/roo-rb/roo/pull/245)
151
+
152
+ ## [2.1.0] - 2015-07-18
153
+ ### Added
154
+ - Added support for Excel 2007 `xlsm` files. [#232](https://github.com/roo-rb/roo/pull/232)
155
+ - Roo::Excelx returns an enumerator when calling each_row_streaming without a block. [#224](https://github.com/roo-rb/roo/pull/224)
156
+ - Returns an enumerator when calling `each` without a block. [#219](https://github.com/roo-rb/roo/pull/219)
157
+
158
+ ### Fixed
159
+ - Removed tabs and windows CRLF. [#235](https://github.com/roo-rb/roo/pull/235), [#234](https://github.com/roo-rb/roo/pull/234)
160
+ - Fixed Regexp to only check for valid URI's when opening a spreadsheet. [#229](https://github.com/roo-rb/roo/pull/228)
161
+ - Open streams in Roo:Excelx correctly. [#222](https://github.com/roo-rb/roo/pull/222)
162
+
163
+ ## [2.0.1] - 2015-06-01
164
+ ### Added
165
+ - Return an enumerator when calling '#each' without a block [#219](https://github.com/roo-rb/roo/pull/219)
166
+ - Added Roo::Base#close to delete any temp directories[#211](https://github.com/roo-rb/roo/pull/211)
167
+ - Offset option for excelx #each_row. [#214](https://github.com/roo-rb/roo/pull/214)
168
+ - Allow Roo::Excelx to open streams [#209](https://github.com/roo-rb/roo/pull/209)
169
+
170
+ ### Fixed
171
+ - Use gsub instead of tr for double quote escaping [#212](https://github.com/roo-rb/roo/pull/212), [#212-patch](https://github.com/roo-rb/roo/commit/fcc9a015868ebf9d42cbba5b6cfdaa58b81ecc01)
172
+ - Fixed Changelog links and release data. [#204](https://github.com/roo-rb/roo/pull/204), [#206](https://github.com/roo-rb/roo/pull/206)
173
+ - Allow Pathnames to be used when opening files. [#207](https://github.com/roo-rb/roo/pull/207)
174
+
175
+ ### Removed
176
+ - Removed the scripts folder. [#213](https://github.com/roo-rb/roo/pull/213)
177
+
178
+ ## [2.0.0] - 2015-04-24
179
+ ### Added
180
+ - Added optional support for hidden sheets in Excelx and LibreOffice files [#177](https://github.com/roo-rb/roo/pull/177)
181
+ - Roo::OpenOffice can be used to open encrypted workbooks. [#157](https://github.com/roo-rb/roo/pull/157)
182
+ - Added streaming for parsing of large Excelx Sheets. [#69](https://github.com/roo-rb/roo/pull/69)
183
+ - Added Roo::Base#first_last_row_col_for_sheet [a0dd800](https://github.com/roo-rb/roo/commit/a0dd800d5cf0de052583afa91bf82f8802ede9a0)
184
+ - Added Roo::Base#collect_last_row_col_for_sheet [a0dd800](https://github.com/roo-rb/roo/commit/a0dd800d5cf0de052583afa91bf82f8802ede9a0)
185
+ - Added Roo::Base::MAX_ROW_COL, Roo::Base::MIN_ROW_COL [a0dd800](https://github.com/roo-rb/roo/commit/a0dd800d5cf0de052583afa91bf82f8802ede9a0)
186
+ - Extract Roo::Font to replace equivalent uses in Excelx and OpenOffice. [23e19de](https://github.com/roo-rb/roo/commit/23e19de1ccc64b2b02a80090ff6666008a29c43b)
187
+ - Roo::Utils [3169a0e](https://github.com/roo-rb/roo/commit/3169a0e803ce742d2cbf9be834d27a5098a68638)
188
+ - Roo::ExcelxComments [0a43341](https://github.com/roo-rb/roo/commit/0a433413210b5559dc92d743a72a1f38ee775f5f)
189
+ [0a43341](https://github.com/roo-rb/roo/commit/0a433413210b5559dc92d743a72a1f38ee775f5f)
190
+ - Roo::Excelx::Relationships [0a43341](https://github.com/roo-rb/roo/commit/0a433413210b5559dc92d743a72a1f38ee775f5f)
191
+ - Roo::Excelx::SheetDoc [0a43341](https://github.com/roo-rb/roo/commit/0a433413210b5559dc92d743a72a1f38ee775f5f)
192
+ [c2bb7b8](https://github.com/roo-rb/roo/commit/c2bb7b8614f4ff1dff6b7bdbda0ded125ae549c7)
193
+ +- Roo::Excelx::Styles [c2bb7b8](https://github.com/roo-rb/roo/commit/c2bb7b8614f4ff1dff6b7bdbda0ded125ae549c7)
194
+ +- Roo::Excelx::Workbook [c2bb7b8](https://github.com/roo-rb/roo/commit/c2bb7b8614f4ff1dff6b7bdbda0ded125ae549c7)
195
+ - Switch from Spreadsheet::Link to Roo::Link [ee67321](https://github.com/roo-rb/roo/commit/ee6732144f3616631d19ade0c5490e1678231ce2)
196
+ - Roo::Base#to_csv: Added separator parameter (defaults to ",") [#102](https://github.com/roo-rb/roo/pull/102)
197
+ - Added development development gems [#104](https://github.com/roo-rb/roo/pull/104)
198
+
199
+ ### Changed
200
+ - Reduced size of published gem. [#194](https://github.com/roo-rb/roo/pull/194)
201
+ - Stream the reading of the dimensions [#192](https://github.com/roo-rb/roo/pull/192)
202
+ - Return `nil` when a querying a cell that doesn't exist (instead of a NoMethodError) [#192](https://github.com/roo-rb/roo/pull/192), [#165](https://github.com/roo-rb/roo/pull/165)
203
+ - Roo::OpenOffice#formula? now returns a `Boolean` instead of a `String` or `nil` [#191](https://github.com/roo-rb/roo/pull/191)
204
+ - Added a less verbose Roo::Base#inspect. It no longer returns the entire object. [#188](https://github.com/roo-rb/roo/pull/188), [#186](https://github.com/roo-rb/roo/pull/186)
205
+ - Memoize Roo::Utils.split_coordinate [#180](https://github.com/roo-rb/roo/pull/180)
206
+ - Roo::Base: use regular expressions for extracting headers [#173](https://github.com/roo-rb/roo/pull/173)
207
+ - Roo::Base: memoized `first_row`/`last_row` `first_column`/`last_column` and changed the default value of the `sheet` argument from `nil` to `default_sheet` [a0dd800](https://github.com/roo-rb/roo/commit/a0dd800d5cf0de052583afa91bf82f8802ede9a0)
208
+ - Roo::Base: changed the order of arguments for `to_csv` to (filename = nil, separator = ',', sheet = default_sheet) from (filename=nil,sheet=nil) [1e82a21](https://github.com/roo-rb/roo/commit/1e82a218087ba34379ae7312214911b104333e2c)
209
+ - In OpenOffice / LibreOffice, load the content xml lazily. Leave the tmpdir open so that reading may take place after initialize. The OS will be responsible for cleaning it up. [adb204b](https://github.com/roo-rb/roo/commit/a74157adb204bc93d289c5708e8e79e143d09037)
210
+ - Lazily initialize @default_sheet, to avoid reading the sheets earlier than necessary. Use the #default_sheet accessor instead. [704e3dc](https://github.com/roo-rb/roo/commit/704e3dca1692d84ac4877f04a7e46238772d423b)
211
+ - Roo::Base#default_sheet is no longer an attr_reader [704e3dc](https://github.com/roo-rb/roo/commit/704e3dca1692d84ac4877f04a7e46238772d423b)
212
+ - In Excelx, load styles, shared strings and the workbook lazily. Leave the tmpdir open so that reading may take place after initialize. The OS will be responsible for cleaning it up. [a973237](https://github.com/roo-rb/roo/commit/a9732372f531e435a3330d8ab5bd44ce2cb57b0b), [4834e20c](https://github.com/roo-rb/roo/commit/4834e20c6c4d2086414c43f8b0cc2d1413b45a61), [e49a1da](https://github.com/roo-rb/roo/commit/e49a1da22946918992873e8cd5bacc15ea2c73c4)
213
+ - Change the tmpdir prefix from oo_ to roo_ [102d5fc](https://github.com/roo-rb/roo/commit/102d5fce30b46e928807bc60f607f81956ed898b)
214
+ - Accept the tmpdir_root option in Roo::Excelx [0e325b6](https://github.com/roo-rb/roo/commit/0e325b68f199ff278b26bd621371ed42fa999f24)
215
+ - Refactored Excelx#comment? [0fb90ec](https://github.com/roo-rb/roo/commit/0fb90ecf6a8f422ef16a7105a1d2c42d611556c3)
216
+ - Refactored Roo::Base#find, #find_by_row, #find_by_conditions. [1ccedab](https://github.com/roo-rb/roo/commit/1ccedab3fb656f4614f0a85e9b0a286ad83f5c1e)
217
+ - Extended Roo::Spreadsheet.open so that it accepts Tempfiles and other arguments responding to `path`. Note they require an :extension option to be declared, as the tempfile mangles the extension. [#84](https://github.com/roo-rb/roo/pull/84).
218
+
219
+ ### Fixed
220
+ - Process sheets from Numbers 3.1 xlsx files in the right order. [#196](https://github.com/roo-rb/roo/pull/196), [#181](https://github.com/roo-rb/roo/pull/181), [#114](https://github.com/roo-rb/roo/pull/114)
221
+ - Fixed comments for xlsx files exported from Google [#197](https://github.com/roo-rb/roo/pull/197)
222
+ - Fixed Roo::Excelx#celltype to return :link when appropriate.
223
+ - Fixed type coercion of ids. [#192](https://github.com/roo-rb/roo/pull/192)
224
+ - Clean option only removes spaces and control characters instead of removing all characters outside of the ASCII range. [#176](https://github.com/roo-rb/roo/pull/176)
225
+ - Fixed parse method with `clean` option [#184](https://github.com/roo-rb/roo/pull/184)
226
+ - Fixed some memory issues.
227
+ - Fixed Roo::Utils.number_to_letter [#180](https://github.com/roo-rb/roo/pull/180)
228
+ - Fixed merged cells return value. Instead of only the top-left cell returning a value, all merged cells return that value instead of returning nil. [#171](https://github.com/roo-rb/roo/pull/171)
229
+ - Handle headers with brackets [#162](https://github.com/roo-rb/roo/pull/162)
230
+ - Roo::Base#sheet method was not returning the sheet specified when using either an index or name [#160](https://github.com/roo-rb/roo/pull/160)
231
+ - Properly process paths with spaces. [#142](https://github.com/roo-rb/roo/pull/142), [#121](https://github.com/roo-rb/roo/pull/121), [#94](https://github.com/roo-rb/roo/pull/94), [4e7d7d1](https://github.com/roo-rb/roo/commit/4e7d7d18d37654b0c73b229f31ea0d305c7e90ff)
232
+ - Disambiguate #open call in Excelx#extract_file. [#125](https://github.com/roo-rb/roo/pull/125)
233
+ - Fixed that #parse-ing with a hash of columns not in the document would fail mysteriously. [#129](https://github.com/roo-rb/roo/pull/129)
234
+ - Fixed Excelx issue when reading hyperlinks [#123](https://github.com/roo-rb/roo/pull/123)
235
+ - Fixed invalid test case [#124](https://github.com/roo-rb/roo/pull/124)
236
+ - Fixed error in test helper file_diff [56e2e61](https://github.com/roo-rb/roo/commit/56e2e61d1ad9185d8ab0d4af4b32928f07fdaad0)
237
+ - Stopped `inspect` from being called recursively. [#115](https://github.com/roo-rb/roo/pull/115)
238
+ - Fixes for Excelx Datetime cells. [#104](https://github.com/roo-rb/roo/pull/104), [#120](https://github.com/roo-rb/roo/pull/120)
239
+ - Prevent ArgumentError when using `find` [#100](https://github.com/roo-rb/roo/pull/100)
240
+ - Export to_csv converts link cells to url [#93](https://github.com/roo-rb/roo/pull/93), [#108](https://github.com/roo-rb/roo/pull/108)
241
+
242
+ ### Removed
243
+ - Roo::Excel - Extracted to roo-xls gem. [a7edbec](https://github.com/roo-rb/roo/commit/a7edbec2eb44344611f82cff89a82dac31ec0d79)
244
+ - Roo::Excel2003XML - Extracted to roo-xls gem. [a7edbec](https://github.com/roo-rb/roo/commit/a7edbec2eb44344611f82cff89a82dac31ec0d79)
245
+ - Roo::Google - Extracted to roo-google gem. [a7edbec](https://github.com/roo-rb/roo/commit/a7edbec2eb44344611f82cff89a82dac31ec0d79)
246
+ - Roo::OpenOffice::Font - Refactored into Roo::Font
247
+ - Removed Roo::OpenOffice.extract_content [a74157a](https://github.com/roo-rb/roo/commit/a74157adb204bc93d289c5708e8e79e143d09037)
248
+ - Removed OpenOffice.process_zipfile [835368e](https://github.com/roo-rb/roo/commit/835368e1d29c1530f00bf9caa07704b17370e38f)
249
+ - Roo::OpenOffice#comment?
250
+ - Roo::ZipFile - Removed the Roo::ZipFile abstraction. Roo now depends on rubyzip 1.0.0+ [d466950](https://github.com/roo-rb/roo/commit/d4669503b5b80c1d30f035177a2b0e4b56fc49ce)
251
+ - SpreadSheet::Worksheet - Extracted to roo-xls gem. [a7edbec](https://github.com/roo-rb/roo/commit/a7edbec2eb44344611f82cff89a82dac31ec0d79)
252
+ - Spreadsheet - Extracted to roo-xls gem. [a7edbec](https://github.com/roo-rb/roo/commit/a7edbec2eb44344611f82cff89a82dac31ec0d79)
253
+
254
+ ## [1.13.2] - 2013-12-23
255
+ ### Fixed
256
+ - Fix that Excelx link-cells would blow up if the value wasn't a string. Due to the way Spreadsheet::Link is implemented the link text must be treated as a string. #92
257
+
258
+ ## [1.13.1] - 2013-12-23
259
+ ### Fixed
260
+ - Fix that Excelx creation could blow up due to nil rels files. #90
261
+
262
+ ## [1.13.0] - 2013-12-05
263
+ ### Changed / Added
264
+ - Support extracting link data from Excel and Excelx spreadsheets,
265
+ via Excel#read_cell() and Excelx#hyperlink(?). #47
266
+ - Support setting the Excel Spreadsheet mode via the :mode option. #88
267
+ - Support Spreadsheet.open with a declared :extension that includes a leading '.'. #73
268
+ - Enable file type detection for URI's with parameters / anchors. #51
269
+
270
+ ### Fixed
271
+ - Fix that CSV#each_row could overwrite the filename when run against a uri. #77
272
+ - Fix that #to_matrix wasn't respecting the sheet argument. #87
273
+
274
+ ## [1.12.2] - 2013-09-11
275
+ ### Changed / Added
276
+ - Support rubyzip >= 1.0.0. #65
277
+ - Fix typo in deprecation notices. #63
278
+
279
+ ## [1.12.1] - 2013-08-18
280
+ ### Changed / Added
281
+ - Support :boolean fields for CSV export via #cell_to_csv. #59
282
+
283
+ ### Fixed
284
+ - Fix that Excelx would error on files with gaps in the numbering of their
285
+ internal sheet#.xml files. #58
286
+ - Fix that Base#info to preserve the original value of #default_sheet. #44
287
+
288
+ ## [1.12.0] - 2013-08-18
289
+ ### Deprecated
290
+ - Rename Openoffice -> OpenOffice, Libreoffice -> LibreOffice, Csv -> CSV, and redirect the old names to the new constants
291
+ - Enable Roo::Excel, Excel2003XML, Excelx, OpenOffice to accept an options hash, and deprecate the old method argument based approach to supplying them options
292
+ - Roo's roo_rails_helper, aka the `spreadsheet` html-generating view method is currently deprecated with no replacement. If you find it helpful, tell http://github.com/Empact or extract it yourself.
293
+
294
+ ### Changed / Added
295
+ - Add Roo::Excelx#load_xml so that people can customize to their data, e.g. #23
296
+ - Enable passing csv_options to Roo::CSV, which are passed through to the underlying CSV call.
297
+ - Enable passing options through from Roo::Spreadsheet to any Roo type.
298
+ - Enable passing an :extension option to Roo::Spreadsheet.new, which will override the extension detected on in the path #15
299
+ - Switch from google-spreadsheet-ruby to google_drive for Roo::Google access #40
300
+ - Make all the classes consistent in that #read_cells is only effective if the sheet has not been read.
301
+ - Roo::Google supports login via oauth :access_token. #61
302
+ - Roo::Excel now exposes its Spreadsheet workbook via #workbook
303
+ - Pull #load_xml down into Roo::Base, and use it in Excel2003XML and OpenOffice.
304
+
305
+ ### Changed
306
+ - #formula? now returns truthy or falsey, rather than true/false.
307
+ - Base#longest_sheet was moved to Excel, as it only worked under Excel
308
+
309
+ ### Fixed
310
+ - Fix that Roo::CSV#parse(headers: true) would blow up. #37
311
+
312
+ ## [1.11.2] - 2013-04-10
313
+
314
+ ### Fixed
315
+ - Fix that Roo::Spreadsheet.open wasn't tolerant to case differences.
316
+ - Fix that Roo::Excel2003XML loading was broken #27
317
+ - Enable loading Roo::Csv files from uris, just as other file types #31
318
+ - Fix that Excelx "m/d/yy h:mm" was improperly being interpreted as date rather
319
+ than datetime #29
320
+
321
+ ## [1.11.1] - 2013-03-18
322
+ ### Fixed
323
+ - Exclude test/log/roo.log test log file from the gemspec in order to avoid a
324
+ rubygems warning: #26
325
+
326
+ ## [1.11.0] - 2013-03-14
327
+ ### Changed / Added
328
+ - Support ruby 2.0.0 by replacing Iconv with String#encode #19
329
+ - Excelx: Loosen the format detection rules such that more are
330
+ successfully detected #20
331
+ - Delete the roo binary, which was useless and not declared in the gemspec
332
+
333
+ ### Changed
334
+ - Drop support for ruby 1.8.x or lower. Required in order to easily support 2.0.0.
335
+
336
+ ## [1.10.3] - 2013-03-03
337
+ ### Fixed
338
+ - Support both nokogiri 1.5.5 and 1.5.6 (Karsten Richter) #18
339
+
340
+ ### Changed / Added
341
+ - Relax our nokogiri dependency back to 1.4.0, as we have no particular reason
342
+ to require a newer version.
343
+
344
+ ## [1.10.2] - 2013-02-03
345
+ ### Fixed
346
+ - Support opening URIs with query strings https://github.com/Empact/roo/commit/abf94bdb59cabc16d4f7764025e88e3661983525
347
+ - Support both http: & https: urls https://github.com/Empact/roo/commit/fc5c5899d96dd5f9fbb68125d0efc8ce9be2c7e1
348
+
349
+ ## [1.10.1] - 2011-11-14
350
+ ### Fixed
351
+ - forgot dependency 'rubyzip'
352
+ - at least one external application does create xlsx-files with different internal file names which differ from the original file names of Excel. Solution: ignore lower-/upper case in file names.
353
+
354
+ ## [1.10.0] - 2011-10-10
355
+ ### Changed / Added
356
+ - New class Csv.
357
+ - Openoffice, Libreoffice: new method 'labels'
358
+ - Excelx: implemented all methods concerning labels
359
+ - Openoffice, Excelx: new methods concerning comments (comment, comment? and comments)
360
+
361
+ ### Fixed
362
+ - XLSX: some cells were not recognized correctly from a spreadsheet file from a windows mobile phone.
363
+ - labels: Moved to a separate methode. There were problems if there was an access to a label before read_cells were called.
364
+
365
+ ## [1.9.7] - 2011-08-27
366
+ ### Fixed
367
+ - Openoffice: Better way for extracting formula strings, some characters were deleted at the formula string.
368
+
369
+ ## [1.9.6] - 2011-08-03
370
+ ### Changed / Added
371
+ - new class Libreoffice (Libreoffice should do exactly the same as the Openoffice
372
+ class. It's just another name. Technically, Libreoffice is inherited from
373
+ the Openoffice class with no new methods.
374
+
375
+ ### Fixed
376
+ - Openoffice: file type check, deletion of temporary files not in ensure clause
377
+ - Cell type :datetime was not handled in the to_csv method
378
+ - Better deletion of temporary directories if something went wrong
379
+
380
+ ## [1.9.5] - 2011-06-25
381
+ ### Changed / Added
382
+ - Method #formulas moved to generic-spreadsheet class (the Excel version is
383
+ overwritten because the spreadsheet gem currently does not support
384
+ formulas.
385
+
386
+ ### Fixed
387
+ - Openoffice/Excelx/Google: #formulas of an empty sheet should not result
388
+ in an error message. Instead it should return an empty array.
389
+ - Openoffice/Excelx/Google: #to_yaml of an empty sheet should not result
390
+ in an error message. Instead it should return an empty string.
391
+ - Openoffice/Excelx/Google: #to_matrix of an empty sheet should not result
392
+ in an error message. Instead it should return an empty matrix.
393
+
394
+ ## [1.9.4] - 2011-06-23
395
+ ### Changed / Added
396
+ - removed gem 'builder'. Functionality goes to gem 'nokogiri'.
397
+
398
+ ### Fixed
399
+ - Excel: remove temporary files if spreadsheed-file is not an excel file
400
+ and an exception was raised
401
+ - Excelx: a referenced cell with a string had the content 0.0 not the
402
+ correct string
403
+ - Fixed a problem with a date cell which was not recognized as a Date
404
+ object (see 2011-05-21 in excelx.rb)
405
+
406
+ ## [1.9.3] - 2010-02-12
407
+ ### Changed / Added
408
+ - new method 'to_matrix'
409
+
410
+ ### Fixed
411
+ - missing dependencies defined
412
+
413
+ ## [1.9.2] - 2009-12-08
414
+ ### Fixed
415
+ - double quoting of '"' fixed
416
+
417
+ ## [1.9.1] - 2009-11-10
418
+ ### Fixed
419
+ - syntax in nokogiri methods
420
+ - missing dependency ...rubyzip
421
+
422
+ ## [1.9.0] - 2009-10-29
423
+ ### Changed / Added
424
+ - Ruby 1.9 compatible
425
+ - oo.aa42 as a shortcut of oo.cell('aa',42)
426
+ - oo.aa42('sheet1') as a shortcut of oo.cell('aa',42,'sheet1')
427
+ - oo.anton as a reference to a cell labelled 'anton' (or any other label name)
428
+ (currently only for Openoffice spreadsheets)
429
+
430
+ ## [1.2.3] - 2009-01-04
431
+ ### Fixed
432
+ - fixed encoding in #cell at exported Google-spreadsheets (.xls)
433
+
434
+ ## [1.2.2] - 2008-12-14
435
+ ### Changed / Added
436
+ - added celltype :datetime in Excelx
437
+ - added celltype :datetime in Google
438
+
439
+ ## [1.2.1] - 2008-11-13
440
+ ### Changed / Added
441
+ - added celltype :datetime in Openoffice and Excel
442
+
443
+ ## [1.2.0] - 2008-08-24
444
+ ### Changed / Added
445
+ - Excelx: improved the detection of cell type and conversion into roo types
446
+ - All: to_csv: changed boundaries from first_row,1..last_row,last_column to 1,1..last_row,last_column
447
+ - All: Environment variable "ROO_TMP" indicate where temporary directories will be created (if not set the default is the current working directory)
448
+
449
+ ### Fixed
450
+ - Excel: improved the detection of last_row/last_column (parseexcel-gem bug?)
451
+ - Excel/Excelx/Openoffice: temporary directories were not removed at opening a file of the wrong type
452
+
453
+ ## [1.1.0] - 2008-07-26
454
+ ### Changed / Added
455
+ - Excel: speed improvements
456
+ - Changed the behavior of reading files with the wrong type
457
+
458
+ ### Fixed
459
+ - Google: added normalize in set_value method
460
+ - Excel: last_row in Excel class did not work properly under some circumstances
461
+ - all: fixed a bug in #to_xml if there is an empty sheet
462
+
463
+ ## [1.0.2] - 2008-07-04
464
+ ### Fixed
465
+ - Excelx: fixed a bug when there are .xml.rels files in the XLSX archive
466
+ - Excelx: fixed a bug with celltype recognition (see comment with "2008-07-03")
467
+
468
+ ## [1.0.1] - 2008-06-30
469
+ ### Fixed
470
+ - Excel: row/column method Fixnum/Float confusion
471
+
472
+ ## [1.0.0] - 2008-05-28
473
+ ### Changed / Added
474
+ - support of Excel's new .xlsx file format
475
+ - method #to_xml for exporting a spreadsheet to an xml representation
476
+
477
+ ### Fixed
478
+ - fixed a bug with excel-spreadsheet character conversion under Macintosh Darwin
479
+
480
+ ## [0.9.4] - 2008-04-22
481
+ ### Fixed
482
+ - fixed a bug with excel-spreadsheet character conversion under Solaris
483
+
484
+ ## [0.9.3] - 2008-03-25
485
+ ### Fixed
486
+ - no more tmp directories if an invalid spreadsheet file was openend
487
+
488
+ ## [0.9.2] - 2008-03-24
489
+ ### Changed / Added
490
+ - new celltype :time
491
+
492
+ ### Fixed
493
+ - time values like '23:15' are handled as seconds from midnight
494
+
495
+ ## [0.9.1] - 2008-03-23
496
+ ### Changed / Added
497
+ - additional 'sheet' parameter in Google#set_value
498
+
499
+ ### Fixed
500
+ - fixed a bug within Google#set_value. thanks to davecahill <dpcahill@gmail.com> for the patch.
501
+
502
+ ## [0.9.0] - 2008-01-24
503
+ ### Changed / Added
504
+ - better support of roo spreadsheets in rails views
505
+
506
+ ## [0.8.5] - 2008-01-16
507
+ ### Fixed
508
+ - fixed a bug within #to_cvs and explicit call of a sheet
509
+
510
+ ## [0.8.4] - 2008-01-01
511
+ ### Fixed
512
+ - fixed 'find_by_condition' for excel sheets (header_line= --> GenericSpredsheet)
513
+
514
+ ## [0.8.3] - 2007-12-31
515
+ ### Fixed
516
+ - another fix for the encoding issue in excel sheet-names
517
+ - reactived the Excel#find method which has been disappeared in the last restructoring, moved to GenericSpreadsheet
518
+
519
+ ## [0.8.2] - 2007-12-28
520
+ ### Changed / Added
521
+ - basename() only in method #info
522
+
523
+ ### Fixed
524
+ - changed logging-method to mysql-database in test code with AR, table column 'class' => 'class_name'
525
+ - reactived the Excel#to_csv method which has been disappeared in the last restructoring
526
+
527
+ ## [0.8.1] - 2007-12-22
528
+ ### Fixed
529
+ - fixed a bug with first/last-row/column in empty sheet
530
+ - #info prints now '- empty -' if a sheet within a document is empty
531
+ - tried to fix the iconv conversion problem
532
+
533
+ ## [0.8.0] - 2007-12-15
534
+ ### Changed / Added
535
+ - Google online spreadsheets were implemented
536
+ - some methods common to more than one class were factored out to the GenericSpreadsheet (virtual) class
537
+
538
+ ## [0.7.0] - 2007-11-23
539
+ ### Changed / Added
540
+ - Openoffice/Excel: the most methods can be called with an option 'sheet'
541
+ parameter which will be used instead of the default sheet
542
+ - Excel: improved the speed of CVS output
543
+ - Openoffice/Excel: new method #column
544
+ - Openoffice/Excel: new method #find
545
+ - Openoffice/Excel: new method #info
546
+ - better exception if a spreadsheet file does not exist
547
+
548
+ ## [0.6.1] - 2007-10-06
549
+ ### Changed / Added
550
+ - Openoffice: percentage-values are now treated as numbers (not strings)
551
+ - Openoffice: refactoring
552
+
553
+ ### Fixed
554
+ - Openoffice: repeating date-values in a line are now handled correctly
555
+
556
+ ## [0.6.0] - 2007-10-06
557
+ ### Changed / Added
558
+ - csv-output to stdout or file
559
+
560
+ ## [0.5.4] - 2007-08-27
561
+ ### Fixed
562
+ - Openoffice: fixed a bug with internal representation of a spreadsheet (thanks to Ric Kamicar for the patch)
563
+
564
+ ## [0.5.3] - 2007-08-26
565
+ ### Changed / Added
566
+ - Openoffice: can now read zip-ed files
567
+ - Openoffice: can now read files from http://-URL over the net
568
+
569
+ ## [0.5.2] - 2007-08-26
570
+ ### Fixed
571
+ - excel: removed debugging output
572
+
573
+ ## [0.5.1] - 2007-08-26
574
+ ### Changed / Added
575
+ - Openoffice: Exception if an illegal sheet-name is selected
576
+ - Openoffice/Excel: no need to set a default_sheet if there is only one in
577
+ the document
578
+ - Excel: can now read zip-ed files
579
+ - Excel: can now read files from http://-URL over the net
580
+
581
+ ## [0.5.0] - 2007-07-20
582
+ ### Changed / Added
583
+ - Excel-objects: the methods default_sheet= and sheets can now handle names instead of numbers
584
+ ### Changedd the celltype methods to return symbols, not strings anymore (possible values are :formula, :float, :string, :date, :percentage (if you need strings you can convert it with .to_s)
585
+ - tests can now run on the client machine (not only my machine), if there are not public released files involved these tests are skipped
586
+
587
+ ## [0.4.1] - 2007-06-27
588
+ ### Fixed
589
+ - there was ONE false require-statement which led to misleading error messageswhen this gem was used
590
+
591
+ ## [0.4.0] - 2007-06-27
592
+ ### Changed / Added
593
+ - robustness: Exception if no default_sheet was set
594
+ - new method reload() implemented
595
+ - about 15 % more method documentation
596
+ - optimization: huge increase of speed (no need to use fixed borders anymore)
597
+ - added the method 'formulas' which gives you all formulas in a spreadsheet
598
+ - added the method 'set' which can set cells to a certain value
599
+ - added the method 'to_yaml' which can produce output for importing in a (rails) database
600
+
601
+ ### Fixed
602
+ - ..row_as_letter methods were nonsense - removed
603
+ - @cells_read should be reset if the default_sheet is changed
604
+ - error in excel-part: strings are now converted to utf-8 (the parsexcel-gem gave me an error with my test data, which could not converted to .to_s using latin1 encoding)
605
+ - fixed bug when default_sheet is changed
606
+
607
+ ## [0.3.0] - 2007-06-20
608
+ ### Changed / Added
609
+ - Openoffice: formula support
610
+
611
+ ## [0.2.7] - 2007-06-20
612
+ ### Fixed
613
+ - Excel: float-numbers were truncated to integer
614
+
615
+ ## [0.2.6] - 2007-06-19
616
+ ### Fixed
617
+ - Openoffice: two or more consecutive cells with string content failed
618
+
619
+ ## [0.2.5] - 2007-06-17
620
+ ### Changed / Added
621
+ - Excel: row method implemented
622
+ - more tests
623
+
624
+ ### Fixed
625
+ - Openoffice: row method fixed
626
+
627
+ ## [0.2.4] - 2007-06-16
628
+ ### Fixed
629
+ - ID 11605 Two cols with same value: crash roo (openoffice version only)
630
+
631
+ ## [0.2.3] - 2007-06-02
632
+ ### Changed / Added
633
+ - more robust call att Excel#default_sheet= when called with a name
634
+ - new method empty?
635
+ - refactoring
636
+
637
+ ### Fixed
638
+ - bugfix in Excel#celltype
639
+ - bugfix (running under windows only) in closing the temp file before removing it
640
+
641
+ ## [0.2.2] - 2007-06-01
642
+ ### Fixed
643
+ - correct pathname for running with windows
644
+
645
+ ## [0.2.2] - 2007-06-01
646
+ ### Fixed
647
+ - incorrect dependencies fixed
648
+
649
+ ## [0.2.0] - 2007-06-01
650
+ ### Changed / Added
651
+ - support for MS-Excel Spreadsheets
652
+
653
+ ## [0.1.2] - 2007-05-31
654
+ ### Changed / Added
655
+ - cells with more than one character, like 'AA' can now be handled
656
+
657
+ ## [0.1.1] - 2007-05-31
658
+ ### Fixed
659
+ - bugfixes in first/last methods
660
+
661
+ ## [0.1.0] - 2007-05-31
662
+ ### Changed / Added
663
+ - new methods first/last row/column
664
+ - new method officeversion
665
+
666
+ ## [0.0.3] - 2007-05-30
667
+ ### Changed / Added
668
+ - new method row()
669
+
670
+ ## [0.0.2] - 2007-05-30
671
+ ### Changed / Added
672
+ - fixed some bugs
673
+ - more ways to access a cell
674
+
675
+ ## [0.0.1] - 2007-05-25
676
+ ### Changed / Added
677
+ - Initial release