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
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,2 +0,0 @@
1
- "true"
2
- "false"
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- 1,2,Mayer
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- "http://www.google.com"
Binary file
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- this is intentionally not a spreadsheet file
@@ -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",,,,,
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -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>
@@ -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
Binary file
Binary file
@@ -1,2 +0,0 @@
1
- "Mittags:",12:13:14,15:16:00,23:00:00
2
- 2007-11-21,,,
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file