culturecode-roo 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
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
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: culturecode-roo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Thomas Preymesser
9
9
  - Hugh McGowan
10
10
  - Ben Woosley
11
+ - Oleksandr Simonov
11
12
  autorequire:
12
13
  bindir: bin
13
14
  cert_chain: []
@@ -18,70 +19,63 @@ dependencies:
18
19
  requirement: !ruby/object:Gem::Requirement
19
20
  none: false
20
21
  requirements:
21
- - - ">="
22
+ - - "~>"
22
23
  - !ruby/object:Gem::Version
23
- version: '0'
24
+ version: '1'
24
25
  type: :runtime
25
26
  prerelease: false
26
27
  version_requirements: !ruby/object:Gem::Requirement
27
28
  none: false
28
29
  requirements:
29
- - - ">="
30
+ - - "~>"
30
31
  - !ruby/object:Gem::Version
31
- version: '0'
32
+ version: '1'
32
33
  - !ruby/object:Gem::Dependency
33
34
  name: rubyzip
34
35
  requirement: !ruby/object:Gem::Requirement
35
36
  none: false
36
37
  requirements:
37
- - - ">="
38
+ - - "~>"
38
39
  - !ruby/object:Gem::Version
39
- version: 1.0.0
40
+ version: '1.1'
41
+ - - "<"
42
+ - !ruby/object:Gem::Version
43
+ version: 2.0.0
40
44
  type: :runtime
41
45
  prerelease: false
42
46
  version_requirements: !ruby/object:Gem::Requirement
43
47
  none: false
44
48
  requirements:
45
- - - ">="
49
+ - - "~>"
46
50
  - !ruby/object:Gem::Version
47
- version: 1.0.0
48
- - !ruby/object:Gem::Dependency
49
- name: bundler
50
- requirement: !ruby/object:Gem::Requirement
51
- none: false
52
- requirements:
53
- - - ">="
51
+ version: '1.1'
52
+ - - "<"
54
53
  - !ruby/object:Gem::Version
55
- version: '1.7'
56
- type: :development
57
- prerelease: false
58
- version_requirements: !ruby/object:Gem::Requirement
59
- none: false
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- version: '1.7'
54
+ version: 2.0.0
64
55
  - !ruby/object:Gem::Dependency
65
56
  name: rake
66
57
  requirement: !ruby/object:Gem::Requirement
67
58
  none: false
68
59
  requirements:
69
- - - ">="
60
+ - - "~>"
70
61
  - !ruby/object:Gem::Version
71
- version: '10.0'
62
+ version: '10.1'
72
63
  type: :development
73
64
  prerelease: false
74
65
  version_requirements: !ruby/object:Gem::Requirement
75
66
  none: false
76
67
  requirements:
77
- - - ">="
68
+ - - "~>"
78
69
  - !ruby/object:Gem::Version
79
- version: '10.0'
70
+ version: '10.1'
80
71
  - !ruby/object:Gem::Dependency
81
72
  name: minitest
82
73
  requirement: !ruby/object:Gem::Requirement
83
74
  none: false
84
75
  requirements:
76
+ - - "~>"
77
+ - !ruby/object:Gem::Version
78
+ version: '5.4'
85
79
  - - ">="
86
80
  - !ruby/object:Gem::Version
87
81
  version: 5.4.3
@@ -90,19 +84,21 @@ dependencies:
90
84
  version_requirements: !ruby/object:Gem::Requirement
91
85
  none: false
92
86
  requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '5.4'
93
90
  - - ">="
94
91
  - !ruby/object:Gem::Version
95
92
  version: 5.4.3
96
93
  description: |-
97
94
  Roo can access the contents of various spreadsheet files. It can handle
98
95
  * OpenOffice
99
- * Excel
100
- * Google spreadsheets
101
96
  * Excelx
102
97
  * LibreOffice
103
98
  * CSV
104
99
  email:
105
100
  - ruby.ruby.ruby.roo@gmail.com
101
+ - oleksandr@simonov.me
106
102
  executables: []
107
103
  extensions: []
108
104
  extra_rdoc_files: []
@@ -110,7 +106,7 @@ files:
110
106
  - ".gitignore"
111
107
  - ".simplecov"
112
108
  - ".travis.yml"
113
- - CHANGELOG
109
+ - CHANGELOG.md
114
110
  - Gemfile
115
111
  - Guardfile
116
112
  - LICENSE
@@ -138,7 +134,6 @@ files:
138
134
  - lib/roo/utils.rb
139
135
  - lib/roo/version.rb
140
136
  - roo.gemspec
141
- - scripts/txt2html
142
137
  - spec/fixtures/vcr_cassettes/google_drive.yml
143
138
  - spec/fixtures/vcr_cassettes/google_drive_access_token.yml
144
139
  - spec/fixtures/vcr_cassettes/google_drive_set.yml
@@ -152,75 +147,10 @@ files:
152
147
  - spec/lib/roo/utils_spec.rb
153
148
  - spec/spec_helper.rb
154
149
  - test/all_ss.rb
155
- - test/files/1900_base.xlsx
156
- - test/files/1904_base.xlsx
157
- - test/files/Bibelbund.csv
158
- - test/files/Bibelbund.ods
159
- - test/files/Bibelbund.xlsx
160
- - test/files/Bibelbund1.ods
161
- - test/files/Pfand_from_windows_phone.xlsx
162
- - test/files/advanced_header.ods
163
- - test/files/bbu.ods
164
- - test/files/bbu.xlsx
165
- - test/files/bode-v1.ods.zip
166
- - test/files/bode-v1.xls.zip
167
- - test/files/boolean.csv
168
- - test/files/boolean.ods
169
- - test/files/boolean.xlsx
170
- - test/files/borders.ods
171
- - test/files/borders.xlsx
172
- - test/files/bug-numbered-sheet-names.xlsx
173
- - test/files/comments.ods
174
- - test/files/comments.xlsx
175
- - test/files/csvtypes.csv
176
- - test/files/datetime.ods
177
- - test/files/datetime.xlsx
178
- - test/files/dreimalvier.ods
179
- - test/files/emptysheets.ods
180
- - test/files/emptysheets.xlsx
181
- - test/files/encrypted-letmein.ods
182
- - test/files/file_item_error.xlsx
183
- - test/files/formula.ods
184
- - test/files/formula.xlsx
185
- - test/files/formula_string_error.xlsx
186
- - test/files/html-escape.ods
187
- - test/files/link.csv
188
- - test/files/link.xlsx
189
- - test/files/matrix.ods
190
- - test/files/named_cells.ods
191
- - test/files/named_cells.xlsx
192
- - test/files/no_spreadsheet_file.txt
193
- - test/files/numbers-export.xlsx
194
- - test/files/numbers1.csv
195
- - test/files/numbers1.ods
196
- - test/files/numbers1.xlsx
197
- - test/files/numbers1withnull.xlsx
198
- - test/files/numeric-link.xlsx
199
- - test/files/only_one_sheet.ods
200
- - test/files/only_one_sheet.xlsx
201
- - test/files/paragraph.ods
202
- - test/files/paragraph.xlsx
203
- - test/files/ric.ods
204
- - test/files/sheet1.xml
205
- - test/files/simple_spreadsheet.ods
206
- - test/files/simple_spreadsheet.xlsx
207
- - test/files/simple_spreadsheet_from_italo.ods
208
- - test/files/so_datetime.csv
209
- - test/files/style.ods
210
- - test/files/style.xlsx
211
- - test/files/time-test.csv
212
- - test/files/time-test.ods
213
- - test/files/time-test.xlsx
214
- - test/files/type_excel.ods
215
- - test/files/type_excel.xlsx
216
- - test/files/type_excelx.ods
217
- - test/files/type_openoffice.xlsx
218
- - test/files/whitespace.ods
219
- - test/files/whitespace.xlsx
220
150
  - test/test_generic_spreadsheet.rb
221
151
  - test/test_helper.rb
222
152
  - test/test_roo.rb
223
- homepage: http://github.com/Empact/roo
153
+ homepage: http://github.com/roo-rb/roo
224
154
  licenses:
225
155
  - MIT
226
156
  post_install_message:
@@ -245,85 +175,4 @@ rubygems_version: 1.8.25
245
175
  signing_key:
246
176
  specification_version: 3
247
177
  summary: Roo can access the contents of various spreadsheet files.
248
- test_files:
249
- - spec/fixtures/vcr_cassettes/google_drive.yml
250
- - spec/fixtures/vcr_cassettes/google_drive_access_token.yml
251
- - spec/fixtures/vcr_cassettes/google_drive_set.yml
252
- - spec/lib/roo/base_spec.rb
253
- - spec/lib/roo/csv_spec.rb
254
- - spec/lib/roo/excelx/format_spec.rb
255
- - spec/lib/roo/excelx_spec.rb
256
- - spec/lib/roo/libreoffice_spec.rb
257
- - spec/lib/roo/openoffice_spec.rb
258
- - spec/lib/roo/spreadsheet_spec.rb
259
- - spec/lib/roo/utils_spec.rb
260
- - spec/spec_helper.rb
261
- - test/all_ss.rb
262
- - test/files/1900_base.xlsx
263
- - test/files/1904_base.xlsx
264
- - test/files/Bibelbund.csv
265
- - test/files/Bibelbund.ods
266
- - test/files/Bibelbund.xlsx
267
- - test/files/Bibelbund1.ods
268
- - test/files/Pfand_from_windows_phone.xlsx
269
- - test/files/advanced_header.ods
270
- - test/files/bbu.ods
271
- - test/files/bbu.xlsx
272
- - test/files/bode-v1.ods.zip
273
- - test/files/bode-v1.xls.zip
274
- - test/files/boolean.csv
275
- - test/files/boolean.ods
276
- - test/files/boolean.xlsx
277
- - test/files/borders.ods
278
- - test/files/borders.xlsx
279
- - test/files/bug-numbered-sheet-names.xlsx
280
- - test/files/comments.ods
281
- - test/files/comments.xlsx
282
- - test/files/csvtypes.csv
283
- - test/files/datetime.ods
284
- - test/files/datetime.xlsx
285
- - test/files/dreimalvier.ods
286
- - test/files/emptysheets.ods
287
- - test/files/emptysheets.xlsx
288
- - test/files/encrypted-letmein.ods
289
- - test/files/file_item_error.xlsx
290
- - test/files/formula.ods
291
- - test/files/formula.xlsx
292
- - test/files/formula_string_error.xlsx
293
- - test/files/html-escape.ods
294
- - test/files/link.csv
295
- - test/files/link.xlsx
296
- - test/files/matrix.ods
297
- - test/files/named_cells.ods
298
- - test/files/named_cells.xlsx
299
- - test/files/no_spreadsheet_file.txt
300
- - test/files/numbers-export.xlsx
301
- - test/files/numbers1.csv
302
- - test/files/numbers1.ods
303
- - test/files/numbers1.xlsx
304
- - test/files/numbers1withnull.xlsx
305
- - test/files/numeric-link.xlsx
306
- - test/files/only_one_sheet.ods
307
- - test/files/only_one_sheet.xlsx
308
- - test/files/paragraph.ods
309
- - test/files/paragraph.xlsx
310
- - test/files/ric.ods
311
- - test/files/sheet1.xml
312
- - test/files/simple_spreadsheet.ods
313
- - test/files/simple_spreadsheet.xlsx
314
- - test/files/simple_spreadsheet_from_italo.ods
315
- - test/files/so_datetime.csv
316
- - test/files/style.ods
317
- - test/files/style.xlsx
318
- - test/files/time-test.csv
319
- - test/files/time-test.ods
320
- - test/files/time-test.xlsx
321
- - test/files/type_excel.ods
322
- - test/files/type_excel.xlsx
323
- - test/files/type_excelx.ods
324
- - test/files/type_openoffice.xlsx
325
- - test/files/whitespace.ods
326
- - test/files/whitespace.xlsx
327
- - test/test_generic_spreadsheet.rb
328
- - test/test_helper.rb
329
- - test/test_roo.rb
178
+ test_files: []
data/CHANGELOG DELETED
@@ -1,438 +0,0 @@
1
- == unreleased
2
-
3
- * enhancements
4
- * Extend Roo::Spreadsheet.open to accept Tempfiles and other arguments responding to #path. Note they require an :extension option to be declared, as the tempfile mangles the extension. #84.
5
- * Remove deprecated code.
6
- * Remove the Roo::ZipFile abstraction. Roo now depends on rubyzip 1.0.0+
7
- * Extract Roo::Excel and Roo::Excel2003XML to roo-xls
8
- * Extract Roo::Google to roo-google
9
- * Accept the tmpdir_root option in Roo::Excelx
10
- * Change the tmpdir prefix from oo_ to roo_
11
- * 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.
12
- * 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.
13
- * Lazily initialize @default_sheet, to avoid reading the sheets earlier than necessary. Use the #default_sheet accessor instead.
14
-
15
- * bugfixes
16
- * Fix that paths with spaces in them would fail with
17
- URI::InvalidURIError. #121.
18
- # Fix that #parse-ing with a hash of columns not in the document
19
- would fail mysteriously. #129
20
- * Fix that Roo::Excelx#celltype would not return :link when appropriate.
21
-
22
- == 1.13.2 2013-12-23
23
-
24
- * bugfixes
25
- * 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
26
-
27
- == 1.13.1 2013-12-23
28
-
29
- * bugfixes
30
- * Fix that Excelx creation could blow up due to nil rels files. #90
31
-
32
- == 1.13.0 2013-12-05
33
-
34
- * enhancements
35
- * Support extracting link data from Excel and Excelx spreadsheets,
36
- via Excel#read_cell(_content) and Excelx#hyperlink(?). #47
37
- * Support setting the Excel Spreadsheet mode via the :mode option. #88
38
- * Support Spreadsheet.open with a declared :extension that includes a leading '.'. #73
39
- * Enable file type detection for URI's with parameters / anchors. #51
40
-
41
- * bugfixes
42
- * Fix that CSV#each_row could overwrite the filename when run against a uri. #77
43
- * Fix that #to_matrix wasn't respecting the sheet argument. #87
44
-
45
- == 1.12.2 2013-09-11
46
-
47
- * 1 enhancement
48
- * Support rubyzip >= 1.0.0. #65
49
- * Fix typo in deprecation notices. #63
50
-
51
- == 1.12.1 2013-08-18
52
-
53
- * 1 enhancement
54
- * Support :boolean fields for CSV export via #cell_to_csv. #59
55
-
56
- * 2 bugfixes
57
- * Fix that Excelx would error on files with gaps in the numbering of their
58
- internal sheet#.xml files. #58
59
- * Fix that Base#info to preserve the original value of #default_sheet. #44
60
-
61
- == 1.12.0 2013-08-18
62
-
63
- * 3 deprecations
64
- * Rename Openoffice -> OpenOffice, Libreoffice -> LibreOffice, Csv -> CSV, and redirect the old names to the new constants
65
- * Enable Roo::Excel, Excel2003XML, Excelx, OpenOffice to accept an options hash, and deprecate the old method argument based approach to supplying them options
66
- * 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.
67
-
68
- * 9 enhancements
69
- * Add Roo::Excelx#load_xml so that people can customize to their data, e.g. #23
70
- * Enable passing csv_options to Roo::CSV, which are passed through to the underlying CSV call.
71
- * Enable passing options through from Roo::Spreadsheet to any Roo type.
72
- * Enable passing an :extension option to Roo::Spreadsheet.new, which will override the extension detected on in the path #15
73
- * Switch from google-spreadsheet-ruby to google_drive for Roo::Google access #40
74
- * Make all the classes consistent in that #read_cells is only effective if the sheet has not been read.
75
- * Roo::Google supports login via oauth :access_token. #61
76
- * Roo::Excel now exposes its Spreadsheet workbook via #workbook
77
- * Pull #load_xml down into Roo::Base, and use it in Excel2003XML and OpenOffice.
78
-
79
- * 2 changes
80
- * #formula? now returns truthy or falsey, rather than true/false.
81
- * Base#longest_sheet was moved to Excel, as it only worked under Excel
82
-
83
- * 1 bugfix
84
- * Fix that Roo::CSV#parse(headers: true) would blow up. #37
85
-
86
- == 1.11.2 2013-04-10
87
-
88
- * 4 bugfixes
89
- * Fix that Roo::Spreadsheet.open wasn't tolerant to case differences.
90
- * Fix that Roo::Excel2003XML loading was broken #27
91
- * Enable loading Roo::Csv files from uris, just as other file types #31
92
- * Fix that Excelx "m/d/yy h:mm" was improperly being interpreted as date rather
93
- than datetime #29
94
-
95
- == 1.11.1 2013-03-18
96
-
97
- * 1 bugfix
98
- * Exclude test/log/roo.log test log file from the gemspec in order to avoid a
99
- rubygems warning: #26
100
-
101
- == 1.11.0 2013-03-14
102
-
103
- * 3 enhancements
104
- * Support ruby 2.0.0 by replacing Iconv with String#encode #19
105
- * Excelx: Loosen the format detection rules such that more are
106
- successfully detected #20
107
- * Delete the roo binary, which was useless and not declared in the gemspec
108
-
109
- * 1 change
110
- * Drop support for ruby 1.8.x or lower. Required in order to easily support 2.0.0.
111
-
112
- == 1.10.3 2013-03-03
113
-
114
- * 1 bugfix
115
- * Support both nokogiri 1.5.5 and 1.5.6 (Karsten Richter) #18
116
-
117
- * 1 enhancement
118
- * Relax our nokogiri dependency back to 1.4.0, as we have no particular reason
119
- to require a newer version.
120
-
121
- == 1.10.2 2013-02-03
122
-
123
- * 2 bugfixes
124
- * Support opening URIs with query strings https://github.com/Empact/roo/commit/abf94bdb59cabc16d4f7764025e88e3661983525
125
- * Support both http: & https: urls https://github.com/Empact/roo/commit/fc5c5899d96dd5f9fbb68125d0efc8ce9be2c7e1
126
-
127
- == 1.10.1 2011-11-14
128
-
129
- * 2 bugfixes
130
- * forgot dependency 'rubyzip'
131
- * 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.
132
-
133
- == 1.10.0 2011-10-10
134
-
135
- * 4 enhancements
136
- * New class Csv.
137
- * Openoffice, Libreoffice: new method 'labels'
138
- * Excelx: implemented all methods concerning labels
139
- * Openoffice, Excelx: new methods concerning comments (comment, comment? and comments)
140
-
141
- * 2 bugfixes
142
- * XLSX: some cells were not recognized correctly from a spreadsheet file from a windows mobile phone.
143
- * labels: Moved to a separate methode. There were problems if there was an access to a label before read_cells were called.
144
-
145
- == 1.9.7 2011-08-27
146
-
147
- * 1 bugfix
148
- * Openoffice: Better way for extracting formula strings, some characters were deleted at the formula string.
149
-
150
- == 1.9.6 2011-08-03
151
-
152
- * 1 enhancement
153
- * new class Libreoffice (Libreoffice should do exactly the same as the Openoffice
154
- class. It's just another name. Technically, Libreoffice is inherited from
155
- the Openoffice class with no new methods.
156
- * 3 bugfixes
157
- * Openoffice: file type check, deletion of temporary files not in ensure clause
158
- * Cell type :datetime was not handled in the to_csv method
159
- * Better deletion of temporary directories if something went wrong
160
-
161
- == 1.9.5 2011-06-25
162
-
163
- * 1 enhancement
164
- * Method #formulas moved to generic-spreadsheet class (the Excel version is
165
- overwritten because the spreadsheet gem currently does not support
166
- formulas.
167
- * 3 bugfixes
168
- * Openoffice/Excelx/Google: #formulas of an empty sheet should not result
169
- in an error message. Instead it should return an empty array.
170
- * Openoffice/Excelx/Google: #to_yaml of an empty sheet should not result
171
- in an error message. Instead it should return an empty string.
172
- * Openoffice/Excelx/Google: #to_matrix of an empty sheet should not result
173
- in an error message. Instead it should return an empty matrix.
174
-
175
- == 1.9.4 2011-06-23
176
-
177
- * 1 enhancement
178
- * removed gem 'builder'. Functionality goes to gem 'nokogiri'.
179
- * 3 bugfixes
180
- * Excel: remove temporary files if spreadsheed-file is not an excel file
181
- and an exception was raised
182
- * Excelx: a referenced cell with a string had the content 0.0 not the
183
- correct string
184
- * Fixed a problem with a date cell which was not recognized as a Date
185
- object (see 2011-05-21 in excelx.rb)
186
-
187
- == 1.9.3 2010-02-12
188
-
189
- * 1 enhancements
190
- * new method 'to_matrix'
191
- * 1 bugfix
192
- * missing dependencies defined
193
-
194
- == 1.9.2 2009-12-08
195
-
196
- * 1 bugfix
197
- * double quoting of '"' fixed
198
-
199
- == 1.9.1 2009-11-10
200
-
201
- * 2 bugfixes
202
- * syntax in nokogiri methods
203
- * missing dependency ...rubyzip
204
-
205
- == 1.9.0 2009-10-29
206
-
207
- * 4 enhancements
208
- * Ruby 1.9 compatible
209
- * oo.aa42 as a shortcut of oo.cell('aa',42)
210
- * oo.aa42('sheet1') as a shortcut of oo.cell('aa',42,'sheet1')
211
- * oo.anton as a reference to a cell labelled 'anton' (or any other label name)
212
- (currently only for Openoffice spreadsheets)
213
-
214
- == 1.2.3 2009-01-04
215
-
216
- * bugfix
217
- * fixed encoding in #cell at exported Google-spreadsheets (.xls)
218
-
219
- == 1.2.2 2008-12-14
220
-
221
- * 2 enhancements
222
- * added celltype :datetime in Excelx
223
- * added celltype :datetime in Google
224
-
225
- == 1.2.1 2008-11-13
226
-
227
- * 1 enhancement
228
- * added celltype :datetime in Openoffice and Excel
229
-
230
- == 1.2.0 2008-08-24
231
- * 3 major enhancements
232
- * Excelx: improved the detection of cell type and conversion into roo types
233
- * All: to_csv: changed boundaries from first_row,1..last_row,last_column to 1,1..last_row,last_column
234
- * All: Environment variable "ROO_TMP" indicate where temporary directories will be created (if not set the default is the current working directory)
235
- * 2 bugfixes
236
- * Excel: improved the detection of last_row/last_column (parseexcel-gem bug?)
237
- * Excel/Excelx/Openoffice: temporary directories were not removed at opening a file of the wrong type
238
- == 1.1.0 2008-07-26
239
- * 2 major enhancements
240
- * Excel: speed improvements
241
- * Changed the behavior of reading files with the wrong type
242
- * 3 bugfixes
243
- * Google: added normalize in set_value method
244
- * Excel: last_row in Excel class did not work properly under some circumstances
245
- * all: fixed a bug in #to_xml if there is an empty sheet
246
- == 1.0.2 2008-07-04
247
- * 2 bugfixes
248
- * Excelx: fixed a bug when there are .xml.rels files in the XLSX archive
249
- * Excelx: fixed a bug with celltype recognition (see comment with "2008-07-03")
250
- == 1.0.1 2008-06-30
251
- * 1 bugfix
252
- * Excel: row/column method Fixnum/Float confusion
253
- == 1.0.0 2008-05-28
254
- * 2 major enhancements
255
- * support of Excel's new .xlsx file format
256
- * method #to_xml for exporting a spreadsheet to an xml representation
257
- * 1 bugfix
258
- * fixed a bug with excel-spreadsheet character conversion under Macintosh Darwin
259
- == 0.9.4 2008-04-22
260
- * 1 bugfix
261
- * fixed a bug with excel-spreadsheet character conversion under Solaris
262
- == 0.9.3 2008-03-25
263
- * 1 bugfix
264
- * no more tmp directories if an invalid spreadsheet file was openend
265
- == 0.9.2 2008-03-24
266
- * 1 enhancement
267
- * new celltype :time
268
- * 1 bugfix
269
- * time values like '23:15' are handled as seconds from midnight
270
- == 0.9.1 2008-03-23
271
- * 1 enhancement
272
- * additional 'sheet' parameter in Google#set_value
273
- * 1 bugfix
274
- * fixed a bug within Google#set_value. thanks to davecahill <dpcahill@gmail.com> for the patch.
275
- == 0.9.0 2008-01-24
276
- * 1 enhancement:
277
- * better support of roo spreadsheets in rails views
278
- == 0.8.5 2008-01-16
279
- * 1 bugfix
280
- * fixed a bug within #to_cvs and explicit call of a sheet
281
- == 0.8.4 2008-01-01
282
- * 1 bugfix
283
- * fixed 'find_by_condition' for excel sheets (header_line= --> GenericSpredsheet)
284
- == 0.8.3 2007-12-31
285
- * 2 bugfixes
286
- * another fix for the encoding issue in excel sheet-names
287
- * reactived the Excel#find method which has been disappeared in the last restructoring, moved to GenericSpreadsheet
288
- == 0.8.2 2007-12-28
289
- * 1 enhancement:
290
- * basename() only in method #info
291
- * 2 bugfixes
292
- * changed logging-method to mysql-database in test code with AR, table column 'class' => 'class_name'
293
- * reactived the Excel#to_csv method which has been disappeared in the last restructoring
294
- == 0.8.1 2007-12-22
295
- * 3 bugfixes
296
- * fixed a bug with first/last-row/column in empty sheet
297
- * #info prints now '- empty -' if a sheet within a document is empty
298
- * tried to fix the iconv conversion problem
299
- == 0.8.0 2007-12-15
300
- * 2 enhancements:
301
- * Google online spreadsheets were implemented
302
- * some methods common to more than one class were factored out to the GenericSpreadsheet (virtual) class
303
- == 0.7.0 2007-11-23
304
- * 6 enhancements:
305
- * Openoffice/Excel: the most methods can be called with an option 'sheet'
306
- parameter which will be used instead of the default sheet
307
- * Excel: improved the speed of CVS output
308
- * Openoffice/Excel: new method #column
309
- * Openoffice/Excel: new method #find
310
- * Openoffice/Excel: new method #info
311
- * better exception if a spreadsheet file does not exist
312
- == 0.6.1 2007-10-06
313
- * 2 enhancements:
314
- * Openoffice: percentage-values are now treated as numbers (not strings)
315
- * Openoffice: refactoring
316
- * 1 bugfix
317
- * Openoffice: repeating date-values in a line are now handled correctly
318
- == 0.6.0 2007-10-06
319
- * 1 enhancement:
320
- * csv-output to stdout or file
321
- == 0.5.4 2007-08-27
322
- * 1 bugfix
323
- * Openoffice: fixed a bug with internal representation of a spreadsheet (thanks to Ric Kamicar for the patch)
324
- == 0.5.3 2007-08-26
325
- * 2 enhancements:
326
- * Openoffice: can now read zip-ed files
327
- * Openoffice: can now read files from http://-URL over the net
328
- == 0.5.2 2007-08-26
329
- * 1 bugfix
330
- * excel: removed debugging output
331
- == 0.5.1 2007-08-26
332
- * 4 enhancements:
333
- * Openoffice: Exception if an illegal sheet-name is selected
334
- * Openoffice/Excel: no need to set a default_sheet if there is only one in
335
- the document
336
- * Excel: can now read zip-ed files
337
- * Excel: can now read files from http://-URL over the net
338
-
339
- == 0.5.0 2007-07-20
340
- * 3 enhancements:
341
- * Excel-objects: the methods default_sheet= and sheets can now handle names instead of numbers
342
- * changed 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)
343
- * tests can now run on the client machine (not only my machine), if there are not public released files involved these tests are skipped
344
-
345
- == 0.4.1 2007-06-27
346
- * 1 bugfix
347
- * there was ONE false require-statement which led to misleading error messageswhen this gem was used
348
-
349
- == 0.4.0 2007-06-27
350
- * 7 enhancements:
351
- * robustness: Exception if no default_sheet was set
352
- * new method reload() implemented
353
- * about 15 % more method documentation
354
- * optimization: huge increase of speed (no need to use fixed borders anymore)
355
- * added the method 'formulas' which gives you all formulas in a spreadsheet
356
- * added the method 'set' which can set cells to a certain value
357
- * added the method 'to_yaml' which can produce output for importing in a (rails) database
358
- * 4 bugfixes
359
- * ..row_as_letter methods were nonsense - removed
360
- * @cells_read should be reset if the default_sheet is changed
361
- * 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)
362
- * fixed bug when default_sheet is changed
363
-
364
- == 0.3.0 2007-06-20
365
- * 1 enhancement:
366
- * Openoffice: formula support
367
-
368
- == 0.2.7 2007-06-20
369
- * 1 bugfix:
370
- * Excel: float-numbers were truncated to integer
371
-
372
- == 0.2.6 2007-06-19
373
- * 1 bugfix:
374
- * Openoffice: two or more consecutive cells with string content failed
375
-
376
- == 0.2.5 2007-06-17
377
-
378
- * 2 enhancements:
379
- * Excel: row method implemented
380
- * more tests
381
- * 1 bugfix:
382
- * Openoffice: row method fixed
383
-
384
- == 0.2.4 2007-06-16
385
- * 1 bugfix:
386
- * ID 11605 Two cols with same value: crash roo (openoffice version only)
387
-
388
- == 0.2.3 2007-06-02
389
- * 3 enhancements:
390
- * more robust call att Excel#default_sheet= when called with a name
391
- * new method empty?
392
- * refactoring
393
- * 1 bugfix:
394
- * bugfix in Excel#celltype
395
- * bugfix (running under windows only) in closing the temp file before removing it
396
-
397
- == 0.2.2 2007-06-01
398
- * 1 bugfix:
399
- * correct pathname for running with windows
400
-
401
-
402
- == 0.2.2 2007-06-01
403
- * 1 bugfix:
404
- * incorrect dependencies fixed
405
-
406
- == 0.2.0 2007-06-01
407
- * 1 major enhancement:
408
- * support for MS-Excel Spreadsheets
409
-
410
- == 0.1.2 2007-05-31
411
- * 1 major enhancement:
412
- * cells with more than one character, like 'AA' can now be handled
413
-
414
- == 0.1.1 2007-05-31
415
- * 1 Bugfix
416
- * Bugfix in first/last methods
417
-
418
- == 0.1.0 2007-05-31
419
-
420
- * 1 major enhancement:
421
- * new methods first/last row/column
422
- * new method officeversion
423
-
424
- == 0.0.3 2007-05-30
425
-
426
- * 1 minor enhancement:
427
- * new method row()
428
-
429
- == 0.0.2 2007-05-30
430
-
431
- * 2 major enhancement:
432
- * fixed some bugs
433
- * more ways to access a cell
434
-
435
- == 0.0.1 2007-05-25
436
-
437
- * 1 major enhancement:
438
- * Initial release