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.
- data/.gitignore +1 -0
- data/CHANGELOG.md +513 -0
- data/README.md +206 -73
- data/lib/roo.rb +3 -3
- data/lib/roo/base.rb +49 -33
- data/lib/roo/csv.rb +10 -0
- data/lib/roo/excelx.rb +187 -60
- data/lib/roo/excelx/comments.rb +2 -1
- data/lib/roo/excelx/sheet_doc.rb +30 -3
- data/lib/roo/open_office.rb +250 -221
- data/lib/roo/utils.rb +28 -31
- data/lib/roo/version.rb +1 -1
- data/roo.gemspec +10 -12
- data/spec/lib/roo/csv_spec.rb +14 -0
- data/spec/lib/roo/excelx_spec.rb +90 -2
- data/spec/lib/roo/libreoffice_spec.rb +16 -0
- data/spec/lib/roo/openoffice_spec.rb +11 -0
- data/spec/lib/roo/utils_spec.rb +5 -4
- data/test/test_roo.rb +113 -2
- metadata +29 -180
- data/CHANGELOG +0 -438
- data/scripts/txt2html +0 -67
- data/test/files/1900_base.xlsx +0 -0
- data/test/files/1904_base.xlsx +0 -0
- data/test/files/Bibelbund.csv +0 -3741
- data/test/files/Bibelbund.ods +0 -0
- data/test/files/Bibelbund.xlsx +0 -0
- data/test/files/Bibelbund1.ods +0 -0
- data/test/files/Pfand_from_windows_phone.xlsx +0 -0
- data/test/files/advanced_header.ods +0 -0
- data/test/files/bbu.ods +0 -0
- data/test/files/bbu.xlsx +0 -0
- data/test/files/bode-v1.ods.zip +0 -0
- data/test/files/bode-v1.xls.zip +0 -0
- data/test/files/boolean.csv +0 -2
- data/test/files/boolean.ods +0 -0
- data/test/files/boolean.xlsx +0 -0
- data/test/files/borders.ods +0 -0
- data/test/files/borders.xlsx +0 -0
- data/test/files/bug-numbered-sheet-names.xlsx +0 -0
- data/test/files/comments.ods +0 -0
- data/test/files/comments.xlsx +0 -0
- data/test/files/csvtypes.csv +0 -1
- data/test/files/datetime.ods +0 -0
- data/test/files/datetime.xlsx +0 -0
- data/test/files/dreimalvier.ods +0 -0
- data/test/files/emptysheets.ods +0 -0
- data/test/files/emptysheets.xlsx +0 -0
- data/test/files/encrypted-letmein.ods +0 -0
- data/test/files/file_item_error.xlsx +0 -0
- data/test/files/formula.ods +0 -0
- data/test/files/formula.xlsx +0 -0
- data/test/files/formula_string_error.xlsx +0 -0
- data/test/files/html-escape.ods +0 -0
- data/test/files/link.csv +0 -1
- data/test/files/link.xlsx +0 -0
- data/test/files/matrix.ods +0 -0
- data/test/files/named_cells.ods +0 -0
- data/test/files/named_cells.xlsx +0 -0
- data/test/files/no_spreadsheet_file.txt +0 -1
- data/test/files/numbers-export.xlsx +0 -0
- data/test/files/numbers1.csv +0 -18
- data/test/files/numbers1.ods +0 -0
- data/test/files/numbers1.xlsx +0 -0
- data/test/files/numbers1withnull.xlsx +0 -0
- data/test/files/numeric-link.xlsx +0 -0
- data/test/files/only_one_sheet.ods +0 -0
- data/test/files/only_one_sheet.xlsx +0 -0
- data/test/files/paragraph.ods +0 -0
- data/test/files/paragraph.xlsx +0 -0
- data/test/files/ric.ods +0 -0
- data/test/files/sheet1.xml +0 -109
- data/test/files/simple_spreadsheet.ods +0 -0
- data/test/files/simple_spreadsheet.xlsx +0 -0
- data/test/files/simple_spreadsheet_from_italo.ods +0 -0
- data/test/files/so_datetime.csv +0 -8
- data/test/files/style.ods +0 -0
- data/test/files/style.xlsx +0 -0
- data/test/files/time-test.csv +0 -2
- data/test/files/time-test.ods +0 -0
- data/test/files/time-test.xlsx +0 -0
- data/test/files/type_excel.ods +0 -0
- data/test/files/type_excel.xlsx +0 -0
- data/test/files/type_excelx.ods +0 -0
- data/test/files/type_openoffice.xlsx +0 -0
- data/test/files/whitespace.ods +0 -0
- data/test/files/whitespace.xlsx +0 -0
data/test/files/Bibelbund.ods
DELETED
|
Binary file
|
data/test/files/Bibelbund.xlsx
DELETED
|
Binary file
|
data/test/files/Bibelbund1.ods
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/test/files/bbu.ods
DELETED
|
Binary file
|
data/test/files/bbu.xlsx
DELETED
|
Binary file
|
data/test/files/bode-v1.ods.zip
DELETED
|
Binary file
|
data/test/files/bode-v1.xls.zip
DELETED
|
Binary file
|
data/test/files/boolean.csv
DELETED
data/test/files/boolean.ods
DELETED
|
Binary file
|
data/test/files/boolean.xlsx
DELETED
|
Binary file
|
data/test/files/borders.ods
DELETED
|
Binary file
|
data/test/files/borders.xlsx
DELETED
|
Binary file
|
|
Binary file
|
data/test/files/comments.ods
DELETED
|
Binary file
|
data/test/files/comments.xlsx
DELETED
|
Binary file
|
data/test/files/csvtypes.csv
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1,2,Mayer
|
data/test/files/datetime.ods
DELETED
|
Binary file
|
data/test/files/datetime.xlsx
DELETED
|
Binary file
|
data/test/files/dreimalvier.ods
DELETED
|
Binary file
|
data/test/files/emptysheets.ods
DELETED
|
Binary file
|
data/test/files/emptysheets.xlsx
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/test/files/formula.ods
DELETED
|
Binary file
|
data/test/files/formula.xlsx
DELETED
|
Binary file
|
|
Binary file
|
data/test/files/html-escape.ods
DELETED
|
Binary file
|
data/test/files/link.csv
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"http://www.google.com"
|
data/test/files/link.xlsx
DELETED
|
Binary file
|
data/test/files/matrix.ods
DELETED
|
Binary file
|
data/test/files/named_cells.ods
DELETED
|
Binary file
|
data/test/files/named_cells.xlsx
DELETED
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
this is intentionally not a spreadsheet file
|
|
Binary file
|
data/test/files/numbers1.csv
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
1,2,3,4,10,,
|
|
2
|
-
5,6,7,8,9,"test",11
|
|
3
|
-
,,,,,,
|
|
4
|
-
10,11,12,13,14,,
|
|
5
|
-
11/21/61,,,,,,
|
|
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
|
-
05/31/07,"dies hier als Date-Objekt",,,,,
|
data/test/files/numbers1.ods
DELETED
|
Binary file
|
data/test/files/numbers1.xlsx
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/test/files/paragraph.ods
DELETED
|
Binary file
|
data/test/files/paragraph.xlsx
DELETED
|
Binary file
|
data/test/files/ric.ods
DELETED
|
Binary file
|
data/test/files/sheet1.xml
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" mc:Ignorable="x14ac">
|
|
2
|
-
<dimension ref="A1:B11"/>
|
|
3
|
-
<sheetViews>
|
|
4
|
-
<sheetView tabSelected="1" workbookViewId="0">
|
|
5
|
-
<selection activeCell="B6" sqref="B6"/>
|
|
6
|
-
</sheetView>
|
|
7
|
-
</sheetViews>
|
|
8
|
-
<sheetFormatPr baseColWidth="10" defaultRowHeight="15" x14ac:dyDescent="0"/>
|
|
9
|
-
<cols>
|
|
10
|
-
<col min="1" max="1" width="69.1640625" customWidth="1"/>
|
|
11
|
-
<col min="2" max="2" width="20.33203125" customWidth="1"/>
|
|
12
|
-
</cols>
|
|
13
|
-
<sheetData>
|
|
14
|
-
<row r="1" spans="1:2">
|
|
15
|
-
<c r="A1" t="s">
|
|
16
|
-
<v>0</v>
|
|
17
|
-
</c>
|
|
18
|
-
<c r="B1" t="s">
|
|
19
|
-
<v>2</v>
|
|
20
|
-
</c>
|
|
21
|
-
</row>
|
|
22
|
-
<row r="2" spans="1:2">
|
|
23
|
-
<c r="A2" t="s">
|
|
24
|
-
|
|
25
|
-
<v>4</v></c>
|
|
26
|
-
<c r="B2" t="s">
|
|
27
|
-
|
|
28
|
-
<v>5</v></c>
|
|
29
|
-
</row>
|
|
30
|
-
<row r="3" spans="1:2">
|
|
31
|
-
<c r="A3" t="s">
|
|
32
|
-
|
|
33
|
-
<v>4</v></c>
|
|
34
|
-
<c r="B3" t="s">
|
|
35
|
-
|
|
36
|
-
<v>6</v></c>
|
|
37
|
-
</row>
|
|
38
|
-
<row r="4" spans="1:2">
|
|
39
|
-
<c r="A4" t="s">
|
|
40
|
-
|
|
41
|
-
<v>7</v></c>
|
|
42
|
-
<c r="B4" t="s">
|
|
43
|
-
|
|
44
|
-
<v>8</v></c>
|
|
45
|
-
</row>
|
|
46
|
-
<row r="5" spans="1:2">
|
|
47
|
-
<c r="A5" t="s">
|
|
48
|
-
|
|
49
|
-
<v>7</v></c>
|
|
50
|
-
<c r="B5" t="s">
|
|
51
|
-
|
|
52
|
-
<v>9</v></c>
|
|
53
|
-
</row>
|
|
54
|
-
<row r="6" spans="1:2">
|
|
55
|
-
<c r="A6" t="s">
|
|
56
|
-
|
|
57
|
-
<v>10</v></c>
|
|
58
|
-
<c r="B6" t="s">
|
|
59
|
-
|
|
60
|
-
<v>11</v></c>
|
|
61
|
-
</row>
|
|
62
|
-
<row r="7" spans="1:2">
|
|
63
|
-
<c r="A7" t="s">
|
|
64
|
-
|
|
65
|
-
<v>10</v></c>
|
|
66
|
-
<c r="B7" t="s">
|
|
67
|
-
|
|
68
|
-
<v>12</v></c>
|
|
69
|
-
</row>
|
|
70
|
-
<row r="8" spans="1:2">
|
|
71
|
-
<c r="A8" t="s">
|
|
72
|
-
|
|
73
|
-
<v>13</v></c>
|
|
74
|
-
<c r="B8" t="s">
|
|
75
|
-
|
|
76
|
-
<v>14</v></c>
|
|
77
|
-
</row>
|
|
78
|
-
<row r="9" spans="1:2">
|
|
79
|
-
<c r="A9" t="s">
|
|
80
|
-
|
|
81
|
-
<v>13</v></c>
|
|
82
|
-
<c r="B9" t="s">
|
|
83
|
-
|
|
84
|
-
<v>15</v></c>
|
|
85
|
-
</row>
|
|
86
|
-
<row r="10" spans="1:2">
|
|
87
|
-
<c r="A10" t="s">
|
|
88
|
-
|
|
89
|
-
<v>16</v></c>
|
|
90
|
-
<c r="B10" t="s">
|
|
91
|
-
|
|
92
|
-
<v>17</v></c>
|
|
93
|
-
</row>
|
|
94
|
-
<row r="11" spans="1:2">
|
|
95
|
-
<c r="A11" t="s">
|
|
96
|
-
|
|
97
|
-
<v>16</v></c>
|
|
98
|
-
<c r="B11" t="s">
|
|
99
|
-
|
|
100
|
-
<v>18</v></c>
|
|
101
|
-
</row>
|
|
102
|
-
</sheetData>
|
|
103
|
-
<pageMargins left="0.75" right="0.75" top="1" bottom="1" header="0.5" footer="0.5"/>
|
|
104
|
-
<extLst>
|
|
105
|
-
<ext xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" uri="{64002731-A6B0-56B0-2670-7721B7C09600}">
|
|
106
|
-
<mx:PLV Mode="0" OnePage="0" WScale="0"/>
|
|
107
|
-
</ext>
|
|
108
|
-
</extLst>
|
|
109
|
-
</worksheet>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/test/files/so_datetime.csv
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
1961-11-21,,
|
|
2
|
-
,,
|
|
3
|
-
1961-11-21T12:17:18+00:00,1961-11-21T12:17:18+00:00,1961-11-21T12:17:18+00:00
|
|
4
|
-
1961-11-21T12:17:18+00:00,1961-11-21T12:17:18+00:00,1961-11-21T12:17:18+00:00
|
|
5
|
-
1961-11-21T12:17:18+00:00,1961-11-21T12:17:18+00:00,1961-11-21T12:17:18+00:00
|
|
6
|
-
1961-11-21,1961-11-21,1961-11-21
|
|
7
|
-
1961-11-21,1961-11-21,1961-11-21
|
|
8
|
-
2013-11-05T11:45:00+00:00,2013-11-05T11:45:00+00:00,2013-11-05T11:45:00+00:00
|
data/test/files/style.ods
DELETED
|
Binary file
|
data/test/files/style.xlsx
DELETED
|
Binary file
|
data/test/files/time-test.csv
DELETED
data/test/files/time-test.ods
DELETED
|
Binary file
|
data/test/files/time-test.xlsx
DELETED
|
Binary file
|
data/test/files/type_excel.ods
DELETED
|
Binary file
|
data/test/files/type_excel.xlsx
DELETED
|
Binary file
|
data/test/files/type_excelx.ods
DELETED
|
Binary file
|
|
Binary file
|
data/test/files/whitespace.ods
DELETED
|
Binary file
|
data/test/files/whitespace.xlsx
DELETED
|
Binary file
|