Skip to content

Commit f01ee67

Browse files
author
Hugh Mcgowan
committed
first commit from roo-1.2.3
0 parents  commit f01ee67

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+14955
-0
lines changed

History.txt

+225
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,225 @@
1+
== 1.2.3 2009-01-04
2+
3+
* bugfix
4+
* fixed encoding in #cell at exported Google-spreadsheets (.xls)
5+
6+
== 1.2.2 2008-12-14
7+
8+
* 2 enhancements
9+
* added celltype :datetime in Excelx
10+
* added celltype :datetime in Google
11+
12+
== 1.2.1 2008-11-13
13+
14+
* 1 enhancement
15+
* added celltype :datetime in Openoffice and Excel
16+
17+
== 1.2.0 2008-08-24
18+
* 3 major enhancements
19+
* Excelx: improved the detection of cell type and conversion into roo types
20+
* All: to_csv: changed boundaries from first_row,1..last_row,last_column to 1,1..last_row,last_column
21+
* All: Environment variable "ROO_TMP" indicate where temporary directories will be created (if not set the default is the current working directory)
22+
* 2 bugfixes
23+
* Excel: improved the detection of last_row/last_column (parseexcel-gem bug?)
24+
* Excel/Excelx/Openoffice: temporary directories were not removed at opening a file of the wrong type
25+
== 1.1.0 2008-07-26
26+
* 2 major enhancements
27+
* Excel: speed improvements
28+
* Changed the behavior of reading files with the wrong type
29+
* 3 bugfixes
30+
* Google: added normalize in set_value method
31+
* Excel: last_row in Excel class did not work properly under some circumstances
32+
* all: fixed a bug in #to_xml if there is an empty sheet
33+
== 1.0.2 2008-07-04
34+
* 2 bugfixes
35+
* Excelx: fixed a bug when there are .xml.rels files in the XLSX archive
36+
* Excelx: fixed a bug with celltype recognition (see comment with "2008-07-03")
37+
== 1.0.1 2008-06-30
38+
* 1 bugfix
39+
* Excel: row/column method Fixnum/Float confusion
40+
== 1.0.0 2008-05-28
41+
* 2 major enhancements
42+
* support of Excel's new .xlsx file format
43+
* method #to_xml for exporting a spreadsheet to an xml representation
44+
* 1 bugfix
45+
* fixed a bug with excel-spreadsheet character conversion under Macintosh Darwin
46+
== 0.9.4 2008-04-22
47+
* 1 bugfix
48+
* fixed a bug with excel-spreadsheet character conversion under Solaris
49+
== 0.9.3 2008-03-25
50+
* 1 bugfix
51+
* no more tmp directories if an invalid spreadsheet file was openend
52+
== 0.9.2 2008-03-24
53+
* 1 enhancement
54+
* new celltype :time
55+
* 1 bugfix
56+
* time values like '23:15' are handled as seconds from midnight
57+
== 0.9.1 2008-03-23
58+
* 1 enhancement
59+
* additional 'sheet' parameter in Google#set_value
60+
* 1 bugfix
61+
* fixed a bug within Google#set_value. thanks to davecahill <[email protected]> for the patch.
62+
== 0.9.0 2008-01-24
63+
* 1 enhancement:
64+
* better support of roo spreadsheets in rails views
65+
== 0.8.5 2008-01-16
66+
* 1 bugfix
67+
* fixed a bug within #to_cvs and explicit call of a sheet
68+
== 0.8.4 2008-01-01
69+
* 1 bugfix
70+
* fixed 'find_by_condition' for excel sheets (header_line= --> GenericSpredsheet)
71+
== 0.8.3 2007-12-31
72+
* 2 bugfixes
73+
* another fix for the encoding issue in excel sheet-names
74+
* reactived the Excel#find method which has been disappeared in the last restructoring, moved to GenericSpreadsheet
75+
== 0.8.2 2007-12-28
76+
* 1 enhancement:
77+
* basename() only in method #info
78+
* 2 bugfixes
79+
* changed logging-method to mysql-database in test code with AR, table column 'class' => 'class_name'
80+
* reactived the Excel#to_csv method which has been disappeared in the last restructoring
81+
== 0.8.1 2007-12-22
82+
* 3 bugfixes
83+
* fixed a bug with first/last-row/column in empty sheet
84+
* #info prints now '- empty -' if a sheet within a document is empty
85+
* tried to fix the iconv conversion problem
86+
== 0.8.0 2007-12-15
87+
* 2 enhancements:
88+
* Google online spreadsheets were implemented
89+
* some methods common to more than one class were factored out to the GenericSpreadsheet (virtual) class
90+
== 0.7.0 2007-11-23
91+
* 6 enhancements:
92+
* Openoffice/Excel: the most methods can be called with an option 'sheet'
93+
parameter which will be used instead of the default sheet
94+
* Excel: improved the speed of CVS output
95+
* Openoffice/Excel: new method #column
96+
* Openoffice/Excel: new method #find
97+
* Openoffice/Excel: new method #info
98+
* better exception if a spreadsheet file does not exist
99+
== 0.6.1 2007-10-06
100+
* 2 enhancements:
101+
* Openoffice: percentage-values are now treated as numbers (not strings)
102+
* Openoffice: refactoring
103+
* 1 bugfix
104+
* Openoffice: repeating date-values in a line are now handled correctly
105+
== 0.6.0 2007-10-06
106+
* 1 enhancement:
107+
* csv-output to stdout or file
108+
== 0.5.4 2007-08-27
109+
* 1 bugfix
110+
* Openoffice: fixed a bug with internal representation of a spreadsheet (thanks to Ric Kamicar for the patch)
111+
== 0.5.3 2007-08-26
112+
* 2 enhancements:
113+
* Openoffice: can now read zip-ed files
114+
* Openoffice: can now read files from http://-URL over the net
115+
== 0.5.2 2007-08-26
116+
* 1 bugfix
117+
* excel: removed debugging output
118+
== 0.5.1 2007-08-26
119+
* 4 enhancements:
120+
* Openoffice: Exception if an illegal sheet-name is selected
121+
* Openoffice/Excel: no need to set a default_sheet if there is only one in
122+
the document
123+
* Excel: can now read zip-ed files
124+
* Excel: can now read files from http://-URL over the net
125+
126+
== 0.5.0 2007-07-20
127+
* 3 enhancements:
128+
* Excel-objects: the methods default_sheet= and sheets can now handle names instead of numbers
129+
* 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)
130+
* tests can now run on the client machine (not only my machine), if there are not public released files involved these tests are skipped
131+
132+
== 0.4.1 2007-06-27
133+
* 1 bugfix
134+
* there was ONE false require-statement which led to misleading error messageswhen this gem was used
135+
136+
== 0.4.0 2007-06-27
137+
* 7 enhancements:
138+
* robustness: Exception if no default_sheet was set
139+
* new method reload() implemented
140+
* about 15 % more method documentation
141+
* optimization: huge increase of speed (no need to use fixed borders anymore)
142+
* added the method 'formulas' which gives you all formulas in a spreadsheet
143+
* added the method 'set' which can set cells to a certain value
144+
* added the method 'to_yaml' which can produce output for importing in a (rails) database
145+
* 4 bugfixes
146+
* ..row_as_letter methods were nonsense - removed
147+
* @cells_read should be reset if the default_sheet is changed
148+
* 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)
149+
* fixed bug when default_sheet is changed
150+
151+
== 0.3.0 2007-06-20
152+
* 1 enhancement:
153+
* Openoffice: formula support
154+
155+
== 0.2.7 2007-06-20
156+
* 1 bugfix:
157+
* Excel: float-numbers were truncated to integer
158+
159+
== 0.2.6 2007-06-19
160+
* 1 bugfix:
161+
* Openoffice: two or more consecutive cells with string content failed
162+
163+
== 0.2.5 2007-06-17
164+
165+
* 2 enhancements:
166+
* Excel: row method implemented
167+
* more tests
168+
* 1 bugfix:
169+
* Openoffice: row method fixed
170+
171+
== 0.2.4 2007-06-16
172+
* 1 bugfix:
173+
* ID 11605 Two cols with same value: crash roo (openoffice version only)
174+
175+
== 0.2.3 2007-06-02
176+
* 3 enhancements:
177+
* more robust call att Excel#default_sheet= when called with a name
178+
* new method empty?
179+
* refactoring
180+
* 1 bugfix:
181+
* bugfix in Excel#celltype
182+
* bugfix (running under windows only) in closing the temp file before removing it
183+
184+
== 0.2.2 2007-06-01
185+
* 1 bugfix:
186+
* correct pathname for running with windows
187+
188+
189+
== 0.2.2 2007-06-01
190+
* 1 bugfix:
191+
* incorrect dependencies fixed
192+
193+
== 0.2.0 2007-06-01
194+
* 1 major enhancement:
195+
* support for MS-Excel Spreadsheets
196+
197+
== 0.1.2 2007-05-31
198+
* 1 major enhancement:
199+
* cells with more than one character, like 'AA' can now be handled
200+
201+
== 0.1.1 2007-05-31
202+
* 1 Bugfix
203+
* Bugfix in first/last methods
204+
205+
== 0.1.0 2007-05-31
206+
207+
* 1 major enhancement:
208+
* new methods first/last row/column
209+
* new method officeversion
210+
211+
== 0.0.3 2007-05-30
212+
213+
* 1 minor enhancement:
214+
* new method row()
215+
216+
== 0.0.2 2007-05-30
217+
218+
* 2 major enhancement:
219+
* fixed some bugs
220+
* more ways to access a cell
221+
222+
== 0.0.1 2007-05-25
223+
224+
* 1 major enhancement:
225+
* Initial release

License.txt

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2007 Thomas Preymesser
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Manifest.txt

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
History.txt
2+
License.txt
3+
Manifest.txt
4+
README.txt
5+
Rakefile
6+
base64include.rb
7+
examples/roo_soap_server.rb
8+
examples/roo_soap_client.rb
9+
examples/write_me.rb
10+
lib/roo.rb
11+
lib/roo/version.rb
12+
lib/roo/generic_spreadsheet.rb
13+
lib/roo/openoffice.rb
14+
lib/roo/excel.rb
15+
lib/roo/excelx.rb
16+
lib/roo/google.rb
17+
lib/roo/roo_rails_helper.rb
18+
scripts/txt2html
19+
setup.rb
20+
test/false_encoding.xls
21+
test/Bibelbund1.ods
22+
test/Bibelbund.ods
23+
test/Bibelbund.xls
24+
test/Bibelbund.xlsx
25+
test/Bibelbund.csv
26+
test/bbu.xls
27+
test/bbu.xlsx
28+
test/bbu.ods
29+
test/no_spreadsheet_file.txt
30+
test/simple_spreadsheet.ods
31+
test/simple_spreadsheet.xls
32+
test/simple_spreadsheet.xlsx
33+
test/simple_spreadsheet_from_italo.ods
34+
test/simple_spreadsheet_from_italo.xls
35+
test/test_helper.rb
36+
test/test_roo.rb
37+
test/time-test.ods
38+
test/time-test.xls
39+
test/time-test.xlsx
40+
test/time-test.csv
41+
test/numbers1.csv
42+
test/numbers1_excel.csv
43+
test/numbers1.ods
44+
test/numbers1.xls
45+
test/numbers1.xlsx
46+
test/borders.ods
47+
test/borders.xls
48+
test/borders.xlsx
49+
test/formula.ods
50+
test/formula.xls
51+
test/formula.xlsx
52+
test/only_one_sheet.ods
53+
test/only_one_sheet.xls
54+
test/only_one_sheet.xlsx
55+
test/bode-v1.xls.zip
56+
test/bode-v1.ods.zip
57+
test/ric.ods
58+
test/bug-row-column-fixnum-float.xls
59+
test/emptysheets.ods
60+
test/emptysheets.xls
61+
test/datetime.ods
62+
test/datetime.xls
63+
test/datetime.xlsx
64+
website/index.html
65+
website/index.txt
66+
website/javascripts/rounded_corners_lite.inc.js
67+
website/stylesheets/screen.css
68+
website/template.rhtml

README.txt

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
README for roo
2+
==============
3+
4+
Installation:
5+
6+
sudo gem install roo
7+
8+
Usage:
9+
10+
require 'rubygems'
11+
require 'roo'
12+
13+
s = Openoffice.new("myspreadsheet.ods") # creates an Openoffice Spreadsheet instance
14+
s = Excel.new("myspreadsheet.xls") # creates an Excel Spreadsheet instance
15+
s = Google.new("myspreadsheetkey_at_google") # creates an Google Spreadsheet instance
16+
s = Excelx.new("myspreadsheet.xlsx") # creates an Excel Spreadsheet instance for Excel .xlsx files
17+
18+
s.default_sheet = s.sheets.first # first sheet in the spreadsheet file will be used
19+
20+
# s.sheet is an array which holds the names of the sheets within
21+
# a spreadsheet.
22+
# you can also write
23+
# s.default_sheet = s.sheets[3] or
24+
# s.default_sheet = 'Sheet 3'
25+
26+
s.cell(1,1) # returns the content of the first row/first cell in the sheet
27+
s.cell('A',1) # same cell
28+
s.cell(1,'A') # same cell
29+
s.cell(1,'A',s.sheets[0]) # same cell
30+
31+
# almost all methods have an optional argument 'sheet'.
32+
# If this parameter is ommitted, the default_sheet will be used.
33+
34+
s.info # prints infos about the spreadsheet file
35+
36+
s.first_row # the number of the first row
37+
s.last_row # the number of the last row
38+
s.first_column # the number of the first column
39+
s.last_column # the number of the last column
40+
41+
42+
see http://roo.rubyforge.org for a more complete tutorial
43+

0 commit comments

Comments
 (0)