culturecode-roo 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. data/.gitignore +1 -0
  2. data/CHANGELOG.md +513 -0
  3. data/README.md +206 -73
  4. data/lib/roo.rb +3 -3
  5. data/lib/roo/base.rb +49 -33
  6. data/lib/roo/csv.rb +10 -0
  7. data/lib/roo/excelx.rb +187 -60
  8. data/lib/roo/excelx/comments.rb +2 -1
  9. data/lib/roo/excelx/sheet_doc.rb +30 -3
  10. data/lib/roo/open_office.rb +250 -221
  11. data/lib/roo/utils.rb +28 -31
  12. data/lib/roo/version.rb +1 -1
  13. data/roo.gemspec +10 -12
  14. data/spec/lib/roo/csv_spec.rb +14 -0
  15. data/spec/lib/roo/excelx_spec.rb +90 -2
  16. data/spec/lib/roo/libreoffice_spec.rb +16 -0
  17. data/spec/lib/roo/openoffice_spec.rb +11 -0
  18. data/spec/lib/roo/utils_spec.rb +5 -4
  19. data/test/test_roo.rb +113 -2
  20. metadata +29 -180
  21. data/CHANGELOG +0 -438
  22. data/scripts/txt2html +0 -67
  23. data/test/files/1900_base.xlsx +0 -0
  24. data/test/files/1904_base.xlsx +0 -0
  25. data/test/files/Bibelbund.csv +0 -3741
  26. data/test/files/Bibelbund.ods +0 -0
  27. data/test/files/Bibelbund.xlsx +0 -0
  28. data/test/files/Bibelbund1.ods +0 -0
  29. data/test/files/Pfand_from_windows_phone.xlsx +0 -0
  30. data/test/files/advanced_header.ods +0 -0
  31. data/test/files/bbu.ods +0 -0
  32. data/test/files/bbu.xlsx +0 -0
  33. data/test/files/bode-v1.ods.zip +0 -0
  34. data/test/files/bode-v1.xls.zip +0 -0
  35. data/test/files/boolean.csv +0 -2
  36. data/test/files/boolean.ods +0 -0
  37. data/test/files/boolean.xlsx +0 -0
  38. data/test/files/borders.ods +0 -0
  39. data/test/files/borders.xlsx +0 -0
  40. data/test/files/bug-numbered-sheet-names.xlsx +0 -0
  41. data/test/files/comments.ods +0 -0
  42. data/test/files/comments.xlsx +0 -0
  43. data/test/files/csvtypes.csv +0 -1
  44. data/test/files/datetime.ods +0 -0
  45. data/test/files/datetime.xlsx +0 -0
  46. data/test/files/dreimalvier.ods +0 -0
  47. data/test/files/emptysheets.ods +0 -0
  48. data/test/files/emptysheets.xlsx +0 -0
  49. data/test/files/encrypted-letmein.ods +0 -0
  50. data/test/files/file_item_error.xlsx +0 -0
  51. data/test/files/formula.ods +0 -0
  52. data/test/files/formula.xlsx +0 -0
  53. data/test/files/formula_string_error.xlsx +0 -0
  54. data/test/files/html-escape.ods +0 -0
  55. data/test/files/link.csv +0 -1
  56. data/test/files/link.xlsx +0 -0
  57. data/test/files/matrix.ods +0 -0
  58. data/test/files/named_cells.ods +0 -0
  59. data/test/files/named_cells.xlsx +0 -0
  60. data/test/files/no_spreadsheet_file.txt +0 -1
  61. data/test/files/numbers-export.xlsx +0 -0
  62. data/test/files/numbers1.csv +0 -18
  63. data/test/files/numbers1.ods +0 -0
  64. data/test/files/numbers1.xlsx +0 -0
  65. data/test/files/numbers1withnull.xlsx +0 -0
  66. data/test/files/numeric-link.xlsx +0 -0
  67. data/test/files/only_one_sheet.ods +0 -0
  68. data/test/files/only_one_sheet.xlsx +0 -0
  69. data/test/files/paragraph.ods +0 -0
  70. data/test/files/paragraph.xlsx +0 -0
  71. data/test/files/ric.ods +0 -0
  72. data/test/files/sheet1.xml +0 -109
  73. data/test/files/simple_spreadsheet.ods +0 -0
  74. data/test/files/simple_spreadsheet.xlsx +0 -0
  75. data/test/files/simple_spreadsheet_from_italo.ods +0 -0
  76. data/test/files/so_datetime.csv +0 -8
  77. data/test/files/style.ods +0 -0
  78. data/test/files/style.xlsx +0 -0
  79. data/test/files/time-test.csv +0 -2
  80. data/test/files/time-test.ods +0 -0
  81. data/test/files/time-test.xlsx +0 -0
  82. data/test/files/type_excel.ods +0 -0
  83. data/test/files/type_excel.xlsx +0 -0
  84. data/test/files/type_excelx.ods +0 -0
  85. data/test/files/type_openoffice.xlsx +0 -0
  86. data/test/files/whitespace.ods +0 -0
  87. data/test/files/whitespace.xlsx +0 -0
data/.gitignore CHANGED
@@ -5,3 +5,4 @@
5
5
  .project
6
6
  *.lock
7
7
  .idea
8
+ *.gem
@@ -0,0 +1,513 @@
1
+ ## [Unreleased] - Unreleased
2
+ ### Added
3
+ - Added Roo::Base#close to delete any temp directories[#211](https://github.com/roo-rb/roo/pull/211)
4
+ - Offset option for excelx #each_row. [#214](https://github.com/roo-rb/roo/pull/214)
5
+ - Allow Roo::Excelx to open streams [#209](https://github.com/roo-rb/roo/pull/209)
6
+
7
+ ### Fixed
8
+ - Fixed Changelog links and release data. [#204](https://github.com/roo-rb/roo/pull/204), [#206](https://github.com/roo-rb/roo/pull/206)
9
+ - Allow Pathnames to be used when opening files. [#207](https://github.com/roo-rb/roo/pull/207)
10
+
11
+ ### Removed
12
+ - Removed the scripts folder. [#213](https://github.com/roo-rb/roo/pull/213)
13
+
14
+ ## [2.0.0] - 2015-04-24
15
+ ### Added
16
+ - Added optional support for hidden sheets in Excelx and LibreOffice files [#177](https://github.com/roo-rb/roo/pull/177)
17
+ - Roo::OpenOffice can be used to open encrypted workbooks. [#157](https://github.com/roo-rb/roo/pull/157)
18
+ - Added streaming for parsing of large Excelx Sheets. [#69](https://github.com/roo-rb/roo/pull/69)
19
+ - Added Roo::Base#first_last_row_col_for_sheet [a0dd800](https://github.com/roo-rb/roo/commit/a0dd800d5cf0de052583afa91bf82f8802ede9a0)
20
+ - Added Roo::Base#collect_last_row_col_for_sheet [a0dd800](https://github.com/roo-rb/roo/commit/a0dd800d5cf0de052583afa91bf82f8802ede9a0)
21
+ - Added Roo::Base::MAX_ROW_COL, Roo::Base::MIN_ROW_COL [a0dd800](https://github.com/roo-rb/roo/commit/a0dd800d5cf0de052583afa91bf82f8802ede9a0)
22
+ - Extract Roo::Font to replace equivalent uses in Excelx and OpenOffice. [23e19de](https://github.com/roo-rb/roo/commit/23e19de1ccc64b2b02a80090ff6666008a29c43b)
23
+ - Roo::Utils [3169a0e](https://github.com/roo-rb/roo/commit/3169a0e803ce742d2cbf9be834d27a5098a68638)
24
+ - Roo::ExcelxComments [0a43341](https://github.com/roo-rb/roo/commit/0a433413210b5559dc92d743a72a1f38ee775f5f)
25
+ [0a43341](https://github.com/roo-rb/roo/commit/0a433413210b5559dc92d743a72a1f38ee775f5f)
26
+ - Roo::Excelx::Relationships [0a43341](https://github.com/roo-rb/roo/commit/0a433413210b5559dc92d743a72a1f38ee775f5f)
27
+ - Roo::Excelx::SheetDoc [0a43341](https://github.com/roo-rb/roo/commit/0a433413210b5559dc92d743a72a1f38ee775f5f)
28
+ [c2bb7b8](https://github.com/roo-rb/roo/commit/c2bb7b8614f4ff1dff6b7bdbda0ded125ae549c7)
29
+ +- Roo::Excelx::Styles [c2bb7b8](https://github.com/roo-rb/roo/commit/c2bb7b8614f4ff1dff6b7bdbda0ded125ae549c7)
30
+ +- Roo::Excelx::Workbook [c2bb7b8](https://github.com/roo-rb/roo/commit/c2bb7b8614f4ff1dff6b7bdbda0ded125ae549c7)
31
+ - Switch from Spreadsheet::Link to Roo::Link [ee67321](https://github.com/roo-rb/roo/commit/ee6732144f3616631d19ade0c5490e1678231ce2)
32
+ - Roo::Base#to_csv: Added separator parameter (defaults to ",") [#102](https://github.com/roo-rb/roo/pull/102)
33
+ - Added development development gems [#104](https://github.com/roo-rb/roo/pull/104)
34
+
35
+ ### Changed
36
+ - Reduced size of published gem. [#194](https://github.com/roo-rb/roo/pull/194)
37
+ - Stream the reading of the dimensions [#192](https://github.com/roo-rb/roo/pull/192)
38
+ - 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)
39
+ - Roo::OpenOffice#formula? now returns a `Boolean` instead of a `String` or `nil` [#191](https://github.com/roo-rb/roo/pull/191)
40
+ - 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)
41
+ - Memoize Roo::Utils.split_coordinate [#180](https://github.com/roo-rb/roo/pull/180)
42
+ - Roo::Base: use regular expressions for extracting headers [#173](https://github.com/roo-rb/roo/pull/173)
43
+ - 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)
44
+ - 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)
45
+ - 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)
46
+ - 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)
47
+ - Roo::Base#default_sheet is no longer an attr_reader [704e3dc](https://github.com/roo-rb/roo/commit/704e3dca1692d84ac4877f04a7e46238772d423b)
48
+ - 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)
49
+ - Change the tmpdir prefix from oo_ to roo_ [102d5fc](https://github.com/roo-rb/roo/commit/102d5fce30b46e928807bc60f607f81956ed898b)
50
+ - Accept the tmpdir_root option in Roo::Excelx [0e325b6](https://github.com/roo-rb/roo/commit/0e325b68f199ff278b26bd621371ed42fa999f24)
51
+ - Refactored Excelx#comment? [0fb90ec](https://github.com/roo-rb/roo/commit/0fb90ecf6a8f422ef16a7105a1d2c42d611556c3)
52
+ - Refactored Roo::Base#find, #find_by_row, #find_by_conditions. [1ccedab](https://github.com/roo-rb/roo/commit/1ccedab3fb656f4614f0a85e9b0a286ad83f5c1e)
53
+ - 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).
54
+
55
+ ### Fixed
56
+ - 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)
57
+ - Fixed comments for xlsx files exported from Google [#197](https://github.com/roo-rb/roo/pull/197)
58
+ - Fixed Roo::Excelx#celltype to return :link when appropriate.
59
+ - Fixed type coercion of ids. [#192](https://github.com/roo-rb/roo/pull/192)
60
+ - 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)
61
+ - Fixed parse method with `clean` option [#184](https://github.com/roo-rb/roo/pull/184)
62
+ - Fixed some memory issues.
63
+ - Fixed Roo::Utils.number_to_letter [#180](https://github.com/roo-rb/roo/pull/180)
64
+ - 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)
65
+ - Handle headers with brackets [#162](https://github.com/roo-rb/roo/pull/162)
66
+ - 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)
67
+ - 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)
68
+ - Disambiguate #open call in Excelx#extract_file. [#125](https://github.com/roo-rb/roo/pull/125)
69
+ - 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)
70
+ - Fixed Excelx issue when reading hyperlinks [#123](https://github.com/roo-rb/roo/pull/123)
71
+ - Fixed invalid test case [#124](https://github.com/roo-rb/roo/pull/124)
72
+ - Fixed error in test helper file_diff [56e2e61](https://github.com/roo-rb/roo/commit/56e2e61d1ad9185d8ab0d4af4b32928f07fdaad0)
73
+ - Stopped `inspect` from being called recursively. [#115](https://github.com/roo-rb/roo/pull/115)
74
+ - Fixes for Excelx Datetime cells. [#104](https://github.com/roo-rb/roo/pull/104), [#120](https://github.com/roo-rb/roo/pull/120)
75
+ - Prevent ArgumentError when using `find` [#100](https://github.com/roo-rb/roo/pull/100)
76
+ - 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)
77
+
78
+ ### Removed
79
+ - Roo::Excel - Extracted to roo-xls gem. [a7edbec](https://github.com/roo-rb/roo/commit/a7edbec2eb44344611f82cff89a82dac31ec0d79)
80
+ - Roo::Excel2003XML - Extracted to roo-xls gem. [a7edbec](https://github.com/roo-rb/roo/commit/a7edbec2eb44344611f82cff89a82dac31ec0d79)
81
+ - Roo::Google - Extracted to roo-google gem. [a7edbec](https://github.com/roo-rb/roo/commit/a7edbec2eb44344611f82cff89a82dac31ec0d79)
82
+ - Roo::OpenOffice::Font - Refactored into Roo::Font
83
+ - Removed Roo::OpenOffice.extract_content [a74157a](https://github.com/roo-rb/roo/commit/a74157adb204bc93d289c5708e8e79e143d09037)
84
+ - Removed OpenOffice.process_zipfile [835368e](https://github.com/roo-rb/roo/commit/835368e1d29c1530f00bf9caa07704b17370e38f)
85
+ - Roo::OpenOffice#comment?
86
+ - Roo::ZipFile - Removed the Roo::ZipFile abstraction. Roo now depends on rubyzip 1.0.0+ [d466950](https://github.com/roo-rb/roo/commit/d4669503b5b80c1d30f035177a2b0e4b56fc49ce)
87
+ - SpreadSheet::Worksheet - Extracted to roo-xls gem. [a7edbec](https://github.com/roo-rb/roo/commit/a7edbec2eb44344611f82cff89a82dac31ec0d79)
88
+ - Spreadsheet - Extracted to roo-xls gem. [a7edbec](https://github.com/roo-rb/roo/commit/a7edbec2eb44344611f82cff89a82dac31ec0d79)
89
+
90
+ ## [1.13.2] - 2013-12-23
91
+ ### Fixed
92
+ - 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
93
+
94
+ ## [1.13.1] - 2013-12-23
95
+ ### Fixed
96
+ - Fix that Excelx creation could blow up due to nil rels files. #90
97
+
98
+ ## [1.13.0] - 2013-12-05
99
+ ### Changed / Added
100
+ - Support extracting link data from Excel and Excelx spreadsheets,
101
+ via Excel#read_cell() and Excelx#hyperlink(?). #47
102
+ - Support setting the Excel Spreadsheet mode via the :mode option. #88
103
+ - Support Spreadsheet.open with a declared :extension that includes a leading '.'. #73
104
+ - Enable file type detection for URI's with parameters / anchors. #51
105
+
106
+ ### Fixed
107
+ - Fix that CSV#each_row could overwrite the filename when run against a uri. #77
108
+ - Fix that #to_matrix wasn't respecting the sheet argument. #87
109
+
110
+ ## [1.12.2] - 2013-09-11
111
+ ### Changed / Added
112
+ - Support rubyzip >= 1.0.0. #65
113
+ - Fix typo in deprecation notices. #63
114
+
115
+ ## [1.12.1] - 2013-08-18
116
+ ### Changed / Added
117
+ - Support :boolean fields for CSV export via #cell_to_csv. #59
118
+
119
+ ### Fixed
120
+ - Fix that Excelx would error on files with gaps in the numbering of their
121
+ internal sheet#.xml files. #58
122
+ - Fix that Base#info to preserve the original value of #default_sheet. #44
123
+
124
+ ## [1.12.0] - 2013-08-18
125
+ ### Deprecated
126
+ - Rename Openoffice -> OpenOffice, Libreoffice -> LibreOffice, Csv -> CSV, and redirect the old names to the new constants
127
+ - Enable Roo::Excel, Excel2003XML, Excelx, OpenOffice to accept an options hash, and deprecate the old method argument based approach to supplying them options
128
+ - 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.
129
+
130
+ ### Changed / Added
131
+ - Add Roo::Excelx#load_xml so that people can customize to their data, e.g. #23
132
+ - Enable passing csv_options to Roo::CSV, which are passed through to the underlying CSV call.
133
+ - Enable passing options through from Roo::Spreadsheet to any Roo type.
134
+ - Enable passing an :extension option to Roo::Spreadsheet.new, which will override the extension detected on in the path #15
135
+ - Switch from google-spreadsheet-ruby to google_drive for Roo::Google access #40
136
+ - Make all the classes consistent in that #read_cells is only effective if the sheet has not been read.
137
+ - Roo::Google supports login via oauth :access_token. #61
138
+ - Roo::Excel now exposes its Spreadsheet workbook via #workbook
139
+ - Pull #load_xml down into Roo::Base, and use it in Excel2003XML and OpenOffice.
140
+
141
+ ### Changed
142
+ - #formula? now returns truthy or falsey, rather than true/false.
143
+ - Base#longest_sheet was moved to Excel, as it only worked under Excel
144
+
145
+ ### Fixed
146
+ - Fix that Roo::CSV#parse(headers: true) would blow up. #37
147
+
148
+ ## [1.11.2] - 2013-04-10
149
+
150
+ ### Fixed
151
+ - Fix that Roo::Spreadsheet.open wasn't tolerant to case differences.
152
+ - Fix that Roo::Excel2003XML loading was broken #27
153
+ - Enable loading Roo::Csv files from uris, just as other file types #31
154
+ - Fix that Excelx "m/d/yy h:mm" was improperly being interpreted as date rather
155
+ than datetime #29
156
+
157
+ ## [1.11.1] - 2013-03-18
158
+ ### Fixed
159
+ - Exclude test/log/roo.log test log file from the gemspec in order to avoid a
160
+ rubygems warning: #26
161
+
162
+ ## [1.11.0] - 2013-03-14
163
+ ### Changed / Added
164
+ - Support ruby 2.0.0 by replacing Iconv with String#encode #19
165
+ - Excelx: Loosen the format detection rules such that more are
166
+ successfully detected #20
167
+ - Delete the roo binary, which was useless and not declared in the gemspec
168
+
169
+ ### Changed
170
+ - Drop support for ruby 1.8.x or lower. Required in order to easily support 2.0.0.
171
+
172
+ ## [1.10.3] - 2013-03-03
173
+ ### Fixed
174
+ - Support both nokogiri 1.5.5 and 1.5.6 (Karsten Richter) #18
175
+
176
+ ### Changed / Added
177
+ - Relax our nokogiri dependency back to 1.4.0, as we have no particular reason
178
+ to require a newer version.
179
+
180
+ ## [1.10.2] - 2013-02-03
181
+ ### Fixed
182
+ - Support opening URIs with query strings https://github.com/Empact/roo/commit/abf94bdb59cabc16d4f7764025e88e3661983525
183
+ - Support both http: & https: urls https://github.com/Empact/roo/commit/fc5c5899d96dd5f9fbb68125d0efc8ce9be2c7e1
184
+
185
+ ## [1.10.1] - 2011-11-14
186
+ ### Fixed
187
+ - forgot dependency 'rubyzip'
188
+ - 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.
189
+
190
+ ## [1.10.0] - 2011-10-10
191
+ ### Changed / Added
192
+ - New class Csv.
193
+ - Openoffice, Libreoffice: new method 'labels'
194
+ - Excelx: implemented all methods concerning labels
195
+ - Openoffice, Excelx: new methods concerning comments (comment, comment? and comments)
196
+
197
+ ### Fixed
198
+ - XLSX: some cells were not recognized correctly from a spreadsheet file from a windows mobile phone.
199
+ - labels: Moved to a separate methode. There were problems if there was an access to a label before read_cells were called.
200
+
201
+ ## [1.9.7] - 2011-08-27
202
+ ### Fixed
203
+ - Openoffice: Better way for extracting formula strings, some characters were deleted at the formula string.
204
+
205
+ ## [1.9.6] - 2011-08-03
206
+ ### Changed / Added
207
+ - new class Libreoffice (Libreoffice should do exactly the same as the Openoffice
208
+ class. It's just another name. Technically, Libreoffice is inherited from
209
+ the Openoffice class with no new methods.
210
+
211
+ ### Fixed
212
+ - Openoffice: file type check, deletion of temporary files not in ensure clause
213
+ - Cell type :datetime was not handled in the to_csv method
214
+ - Better deletion of temporary directories if something went wrong
215
+
216
+ ## [1.9.5] - 2011-06-25
217
+ ### Changed / Added
218
+ - Method #formulas moved to generic-spreadsheet class (the Excel version is
219
+ overwritten because the spreadsheet gem currently does not support
220
+ formulas.
221
+
222
+ ### Fixed
223
+ - Openoffice/Excelx/Google: #formulas of an empty sheet should not result
224
+ in an error message. Instead it should return an empty array.
225
+ - Openoffice/Excelx/Google: #to_yaml of an empty sheet should not result
226
+ in an error message. Instead it should return an empty string.
227
+ - Openoffice/Excelx/Google: #to_matrix of an empty sheet should not result
228
+ in an error message. Instead it should return an empty matrix.
229
+
230
+ ## [1.9.4] - 2011-06-23
231
+ ### Changed / Added
232
+ - removed gem 'builder'. Functionality goes to gem 'nokogiri'.
233
+
234
+ ### Fixed
235
+ - Excel: remove temporary files if spreadsheed-file is not an excel file
236
+ and an exception was raised
237
+ - Excelx: a referenced cell with a string had the content 0.0 not the
238
+ correct string
239
+ - Fixed a problem with a date cell which was not recognized as a Date
240
+ object (see 2011-05-21 in excelx.rb)
241
+
242
+ ## [1.9.3] - 2010-02-12
243
+ ### Changed / Added
244
+ - new method 'to_matrix'
245
+
246
+ ### Fixed
247
+ - missing dependencies defined
248
+
249
+ ## [1.9.2] - 2009-12-08
250
+ ### Fixed
251
+ - double quoting of '"' fixed
252
+
253
+ ## [1.9.1] - 2009-11-10
254
+ ### Fixed
255
+ - syntax in nokogiri methods
256
+ - missing dependency ...rubyzip
257
+
258
+ ## [1.9.0] - 2009-10-29
259
+ ### Changed / Added
260
+ - Ruby 1.9 compatible
261
+ - oo.aa42 as a shortcut of oo.cell('aa',42)
262
+ - oo.aa42('sheet1') as a shortcut of oo.cell('aa',42,'sheet1')
263
+ - oo.anton as a reference to a cell labelled 'anton' (or any other label name)
264
+ (currently only for Openoffice spreadsheets)
265
+
266
+ ## [1.2.3] - 2009-01-04
267
+ ### Fixed
268
+ - fixed encoding in #cell at exported Google-spreadsheets (.xls)
269
+
270
+ ## [1.2.2] - 2008-12-14
271
+ ### Changed / Added
272
+ - added celltype :datetime in Excelx
273
+ - added celltype :datetime in Google
274
+
275
+ ## [1.2.1] - 2008-11-13
276
+ ### Changed / Added
277
+ - added celltype :datetime in Openoffice and Excel
278
+
279
+ ## [1.2.0] - 2008-08-24
280
+ ### Changed / Added
281
+ - Excelx: improved the detection of cell type and conversion into roo types
282
+ - All: to_csv: changed boundaries from first_row,1..last_row,last_column to 1,1..last_row,last_column
283
+ - All: Environment variable "ROO_TMP" indicate where temporary directories will be created (if not set the default is the current working directory)
284
+
285
+ ### Fixed
286
+ - Excel: improved the detection of last_row/last_column (parseexcel-gem bug?)
287
+ - Excel/Excelx/Openoffice: temporary directories were not removed at opening a file of the wrong type
288
+
289
+ ## [1.1.0] - 2008-07-26
290
+ ### Changed / Added
291
+ - Excel: speed improvements
292
+ - Changed the behavior of reading files with the wrong type
293
+
294
+ ### Fixed
295
+ - Google: added normalize in set_value method
296
+ - Excel: last_row in Excel class did not work properly under some circumstances
297
+ - all: fixed a bug in #to_xml if there is an empty sheet
298
+
299
+ ## [1.0.2] - 2008-07-04
300
+ ### Fixed
301
+ - Excelx: fixed a bug when there are .xml.rels files in the XLSX archive
302
+ - Excelx: fixed a bug with celltype recognition (see comment with "2008-07-03")
303
+
304
+ ## [1.0.1] - 2008-06-30
305
+ ### Fixed
306
+ - Excel: row/column method Fixnum/Float confusion
307
+
308
+ ## [1.0.0] - 2008-05-28
309
+ ### Changed / Added
310
+ - support of Excel's new .xlsx file format
311
+ - method #to_xml for exporting a spreadsheet to an xml representation
312
+
313
+ ### Fixed
314
+ - fixed a bug with excel-spreadsheet character conversion under Macintosh Darwin
315
+
316
+ ## [0.9.4] - 2008-04-22
317
+ ### Fixed
318
+ - fixed a bug with excel-spreadsheet character conversion under Solaris
319
+
320
+ ## [0.9.3] - 2008-03-25
321
+ ### Fixed
322
+ - no more tmp directories if an invalid spreadsheet file was openend
323
+
324
+ ## [0.9.2] - 2008-03-24
325
+ ### Changed / Added
326
+ - new celltype :time
327
+
328
+ ### Fixed
329
+ - time values like '23:15' are handled as seconds from midnight
330
+
331
+ ## [0.9.1] - 2008-03-23
332
+ ### Changed / Added
333
+ - additional 'sheet' parameter in Google#set_value
334
+
335
+ ### Fixed
336
+ - fixed a bug within Google#set_value. thanks to davecahill <dpcahill@gmail.com> for the patch.
337
+
338
+ ## [0.9.0] - 2008-01-24
339
+ ### Changed / Added
340
+ - better support of roo spreadsheets in rails views
341
+
342
+ ## [0.8.5] - 2008-01-16
343
+ ### Fixed
344
+ - fixed a bug within #to_cvs and explicit call of a sheet
345
+
346
+ ## [0.8.4] - 2008-01-01
347
+ ### Fixed
348
+ - fixed 'find_by_condition' for excel sheets (header_line= --> GenericSpredsheet)
349
+
350
+ ## [0.8.3] - 2007-12-31
351
+ ### Fixed
352
+ - another fix for the encoding issue in excel sheet-names
353
+ - reactived the Excel#find method which has been disappeared in the last restructoring, moved to GenericSpreadsheet
354
+
355
+ ## [0.8.2] - 2007-12-28
356
+ ### Changed / Added
357
+ - basename() only in method #info
358
+
359
+ ### Fixed
360
+ - changed logging-method to mysql-database in test code with AR, table column 'class' => 'class_name'
361
+ - reactived the Excel#to_csv method which has been disappeared in the last restructoring
362
+
363
+ ## [0.8.1] - 2007-12-22
364
+ ### Fixed
365
+ - fixed a bug with first/last-row/column in empty sheet
366
+ - #info prints now '- empty -' if a sheet within a document is empty
367
+ - tried to fix the iconv conversion problem
368
+
369
+ ## [0.8.0] - 2007-12-15
370
+ ### Changed / Added
371
+ - Google online spreadsheets were implemented
372
+ - some methods common to more than one class were factored out to the GenericSpreadsheet (virtual) class
373
+
374
+ ## [0.7.0] - 2007-11-23
375
+ ### Changed / Added
376
+ - Openoffice/Excel: the most methods can be called with an option 'sheet'
377
+ parameter which will be used instead of the default sheet
378
+ - Excel: improved the speed of CVS output
379
+ - Openoffice/Excel: new method #column
380
+ - Openoffice/Excel: new method #find
381
+ - Openoffice/Excel: new method #info
382
+ - better exception if a spreadsheet file does not exist
383
+
384
+ ## [0.6.1] - 2007-10-06
385
+ ### Changed / Added
386
+ - Openoffice: percentage-values are now treated as numbers (not strings)
387
+ - Openoffice: refactoring
388
+
389
+ ### Fixed
390
+ - Openoffice: repeating date-values in a line are now handled correctly
391
+
392
+ ## [0.6.0] - 2007-10-06
393
+ ### Changed / Added
394
+ - csv-output to stdout or file
395
+
396
+ ## [0.5.4] - 2007-08-27
397
+ ### Fixed
398
+ - Openoffice: fixed a bug with internal representation of a spreadsheet (thanks to Ric Kamicar for the patch)
399
+
400
+ ## [0.5.3] - 2007-08-26
401
+ ### Changed / Added
402
+ - Openoffice: can now read zip-ed files
403
+ - Openoffice: can now read files from http://-URL over the net
404
+
405
+ ## [0.5.2] - 2007-08-26
406
+ ### Fixed
407
+ - excel: removed debugging output
408
+
409
+ ## [0.5.1] - 2007-08-26
410
+ ### Changed / Added
411
+ - Openoffice: Exception if an illegal sheet-name is selected
412
+ - Openoffice/Excel: no need to set a default_sheet if there is only one in
413
+ the document
414
+ - Excel: can now read zip-ed files
415
+ - Excel: can now read files from http://-URL over the net
416
+
417
+ ## [0.5.0] - 2007-07-20
418
+ ### Changed / Added
419
+ - Excel-objects: the methods default_sheet= and sheets can now handle names instead of numbers
420
+ ### 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)
421
+ - tests can now run on the client machine (not only my machine), if there are not public released files involved these tests are skipped
422
+
423
+ ## [0.4.1] - 2007-06-27
424
+ ### Fixed
425
+ - there was ONE false require-statement which led to misleading error messageswhen this gem was used
426
+
427
+ ## [0.4.0] - 2007-06-27
428
+ ### Changed / Added
429
+ - robustness: Exception if no default_sheet was set
430
+ - new method reload() implemented
431
+ - about 15 % more method documentation
432
+ - optimization: huge increase of speed (no need to use fixed borders anymore)
433
+ - added the method 'formulas' which gives you all formulas in a spreadsheet
434
+ - added the method 'set' which can set cells to a certain value
435
+ - added the method 'to_yaml' which can produce output for importing in a (rails) database
436
+
437
+ ### Fixed
438
+ - ..row_as_letter methods were nonsense - removed
439
+ - @cells_read should be reset if the default_sheet is changed
440
+ - 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)
441
+ - fixed bug when default_sheet is changed
442
+
443
+ ## [0.3.0] - 2007-06-20
444
+ ### Changed / Added
445
+ - Openoffice: formula support
446
+
447
+ ## [0.2.7] - 2007-06-20
448
+ ### Fixed
449
+ - Excel: float-numbers were truncated to integer
450
+
451
+ ## [0.2.6] - 2007-06-19
452
+ ### Fixed
453
+ - Openoffice: two or more consecutive cells with string content failed
454
+
455
+ ## [0.2.5] - 2007-06-17
456
+ ### Changed / Added
457
+ - Excel: row method implemented
458
+ - more tests
459
+
460
+ ### Fixed
461
+ - Openoffice: row method fixed
462
+
463
+ ## [0.2.4] - 2007-06-16
464
+ ### Fixed
465
+ - ID 11605 Two cols with same value: crash roo (openoffice version only)
466
+
467
+ ## [0.2.3] - 2007-06-02
468
+ ### Changed / Added
469
+ - more robust call att Excel#default_sheet= when called with a name
470
+ - new method empty?
471
+ - refactoring
472
+
473
+ ### Fixed
474
+ - bugfix in Excel#celltype
475
+ - bugfix (running under windows only) in closing the temp file before removing it
476
+
477
+ ## [0.2.2] - 2007-06-01
478
+ ### Fixed
479
+ - correct pathname for running with windows
480
+
481
+ ## [0.2.2] - 2007-06-01
482
+ ### Fixed
483
+ - incorrect dependencies fixed
484
+
485
+ ## [0.2.0] - 2007-06-01
486
+ ### Changed / Added
487
+ - support for MS-Excel Spreadsheets
488
+
489
+ ## [0.1.2] - 2007-05-31
490
+ ### Changed / Added
491
+ - cells with more than one character, like 'AA' can now be handled
492
+
493
+ ## [0.1.1] - 2007-05-31
494
+ ### Fixed
495
+ - bugfixes in first/last methods
496
+
497
+ ## [0.1.0] - 2007-05-31
498
+ ### Changed / Added
499
+ - new methods first/last row/column
500
+ - new method officeversion
501
+
502
+ ## [0.0.3] - 2007-05-30
503
+ ### Changed / Added
504
+ - new method row()
505
+
506
+ ## [0.0.2] - 2007-05-30
507
+ ### Changed / Added
508
+ - fixed some bugs
509
+ - more ways to access a cell
510
+
511
+ ## [0.0.1] - 2007-05-25
512
+ ### Changed / Added
513
+ - Initial release