hmcgowan-roo 1.2.4
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.
- data/History.txt +225 -0
- data/README.txt +43 -0
- data/lib/roo/excel.rb +455 -0
- data/lib/roo/excelx.rb +654 -0
- data/lib/roo/generic_spreadsheet.rb +636 -0
- data/lib/roo/google.rb +411 -0
- data/lib/roo/openoffice.rb +508 -0
- data/lib/roo/roo_rails_helper.rb +81 -0
- data/lib/roo/version.rb +9 -0
- data/lib/roo.rb +11 -0
- data/test/Bibelbund.csv +3741 -0
- data/test/Bibelbund.ods +0 -0
- data/test/Bibelbund.xls +0 -0
- data/test/Bibelbund.xlsx +0 -0
- data/test/Bibelbund1.ods +0 -0
- data/test/bbu.ods +0 -0
- data/test/bbu.xls +0 -0
- data/test/bbu.xlsx +0 -0
- data/test/bode-v1.ods.zip +0 -0
- data/test/bode-v1.xls.zip +0 -0
- data/test/boolean.ods +0 -0
- data/test/boolean.xls +0 -0
- data/test/boolean.xlsx +0 -0
- data/test/borders.ods +0 -0
- data/test/borders.xls +0 -0
- data/test/borders.xlsx +0 -0
- data/test/bug-row-column-fixnum-float.xls +0 -0
- data/test/datetime.ods +0 -0
- data/test/datetime.xls +0 -0
- data/test/datetime.xlsx +0 -0
- data/test/emptysheets.ods +0 -0
- data/test/emptysheets.xls +0 -0
- data/test/false_encoding.xls +0 -0
- data/test/formula.ods +0 -0
- data/test/formula.xls +0 -0
- data/test/formula.xlsx +0 -0
- data/test/html-escape.ods +0 -0
- data/test/no_spreadsheet_file.txt +1 -0
- data/test/numbers1.csv +18 -0
- data/test/numbers1.ods +0 -0
- data/test/numbers1.xls +0 -0
- data/test/numbers1.xlsx +0 -0
- data/test/numbers1_excel.csv +18 -0
- data/test/only_one_sheet.ods +0 -0
- data/test/only_one_sheet.xls +0 -0
- data/test/only_one_sheet.xlsx +0 -0
- data/test/ric.ods +0 -0
- data/test/simple_spreadsheet.ods +0 -0
- data/test/simple_spreadsheet.xls +0 -0
- data/test/simple_spreadsheet.xlsx +0 -0
- data/test/simple_spreadsheet_from_italo.ods +0 -0
- data/test/simple_spreadsheet_from_italo.xls +0 -0
- data/test/style.ods +0 -0
- data/test/style.xls +0 -0
- data/test/style.xlsx +0 -0
- data/test/test_helper.rb +19 -0
- data/test/test_roo.rb +4946 -0
- data/test/time-test.csv +2 -0
- data/test/time-test.ods +0 -0
- data/test/time-test.xls +0 -0
- data/test/time-test.xlsx +0 -0
- metadata +225 -0
data/test/Bibelbund.ods
ADDED
Binary file
|
data/test/Bibelbund.xls
ADDED
Binary file
|
data/test/Bibelbund.xlsx
ADDED
Binary file
|
data/test/Bibelbund1.ods
ADDED
Binary file
|
data/test/bbu.ods
ADDED
Binary file
|
data/test/bbu.xls
ADDED
Binary file
|
data/test/bbu.xlsx
ADDED
Binary file
|
Binary file
|
Binary file
|
data/test/boolean.ods
ADDED
Binary file
|
data/test/boolean.xls
ADDED
Binary file
|
data/test/boolean.xlsx
ADDED
Binary file
|
data/test/borders.ods
ADDED
Binary file
|
data/test/borders.xls
ADDED
Binary file
|
data/test/borders.xlsx
ADDED
Binary file
|
Binary file
|
data/test/datetime.ods
ADDED
Binary file
|
data/test/datetime.xls
ADDED
Binary file
|
data/test/datetime.xlsx
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/test/formula.ods
ADDED
Binary file
|
data/test/formula.xls
ADDED
Binary file
|
data/test/formula.xlsx
ADDED
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
this is intentionally not a spreadsheet file
|
data/test/numbers1.csv
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
1,2,3,4,10,,
|
2
|
+
5,6,7,8,9,"test",11
|
3
|
+
,,,,,,
|
4
|
+
10,11,12,13,14,,
|
5
|
+
1961-11-21,,,,,,
|
6
|
+
"tata",,,,,,
|
7
|
+
,,,,,,
|
8
|
+
,,"thisisc8",,,,
|
9
|
+
,,,"thisisd9",,,
|
10
|
+
,,,,,,
|
11
|
+
"thisisa11",,,,,,
|
12
|
+
41,42,43,44,45,,
|
13
|
+
,,,,,,
|
14
|
+
,,,,,,
|
15
|
+
41,42,43,44,45,,
|
16
|
+
"einundvierzig","zweiundvierzig","dreiundvierzig","vierundvierzig","fuenfundvierzig",,
|
17
|
+
,,,,,,
|
18
|
+
2007-05-31,"dies hier als Date-Objekt",,,,,
|
data/test/numbers1.ods
ADDED
Binary file
|
data/test/numbers1.xls
ADDED
Binary file
|
data/test/numbers1.xlsx
ADDED
Binary file
|
@@ -0,0 +1,18 @@
|
|
1
|
+
1,2,3,4,,,
|
2
|
+
5,6,7,8,9,"test",11
|
3
|
+
,,,,,,
|
4
|
+
10,11,12,13,14,,
|
5
|
+
1961-11-21,,,,,,
|
6
|
+
"tata",,,,,,
|
7
|
+
,,,,,,
|
8
|
+
,,"thisisc8",,,,
|
9
|
+
,,,"thisisd9",,,
|
10
|
+
,,,,,,
|
11
|
+
"thisisa11",,,,,,
|
12
|
+
41,42,43,44,45,,
|
13
|
+
,,,,,,
|
14
|
+
,,,,,,
|
15
|
+
41,42,43,44,45,,
|
16
|
+
"einundvierzig","zweiundvierzig","dreiundvierzig","vierundvierzig","fuenfundvierzig",,
|
17
|
+
,,,,,,
|
18
|
+
2007-05-31,"dies hier als Date-Objekt",,,,,
|
Binary file
|
Binary file
|
Binary file
|
data/test/ric.ods
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/test/style.ods
ADDED
Binary file
|
data/test/style.xls
ADDED
Binary file
|
data/test/style.xlsx
ADDED
Binary file
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
require File.dirname(__FILE__) + '/../lib/roo'
|
3
|
+
|
4
|
+
# helper method
|
5
|
+
def after(d)
|
6
|
+
yield if DateTime.now > d
|
7
|
+
end
|
8
|
+
|
9
|
+
# helper method
|
10
|
+
def before(d)
|
11
|
+
yield if DateTime.now <= d
|
12
|
+
end
|
13
|
+
|
14
|
+
# helper method
|
15
|
+
def local_only
|
16
|
+
if ENV["roo_local"] == "thomas-p"
|
17
|
+
yield
|
18
|
+
end
|
19
|
+
end
|