roo 1.9.7 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +13 -1
- data/README.txt +2 -0
- data/bin/roo +1 -2
- data/lib/roo.rb +4 -1
- data/lib/roo/.csv.rb.swp +0 -0
- data/lib/roo/csv.rb +117 -0
- data/lib/roo/excel.rb +14 -5
- data/lib/roo/excelx.rb +235 -37
- data/lib/roo/generic_spreadsheet.rb +23 -4
- data/lib/roo/openoffice.rb +145 -41
- data/test/Pfand_from_windows_phone.xlsx +0 -0
- data/test/comments.ods +0 -0
- data/test/comments.xls +0 -0
- data/test/comments.xlsx +0 -0
- data/test/csvtypes.csv +1 -0
- data/test/named_cells.xls +0 -0
- data/test/named_cells.xlsx +0 -0
- data/test/numbers1.csv +18 -0
- data/test/test_roo.rb +444 -223
- metadata +31 -22
- data/PostInstall.txt +0 -1
- data/a.xls +0 -0
- data/csv8532 +0 -862
- data/test/benchmark1.rb +0 -43
- data/tmp.xls +0 -0
data/test/benchmark1.rb
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'roo'
|
3
|
-
require 'benchmark'
|
4
|
-
|
5
|
-
def process_all_cells(oo)
|
6
|
-
oo.default_sheet = oo.sheets.first
|
7
|
-
#oo.first_row.upto(oo.last_row) do |row|
|
8
|
-
# oo.first_column.upto(oo.last_column) do |col|
|
9
|
-
# result = oo.cell(row,col)
|
10
|
-
# end
|
11
|
-
#end
|
12
|
-
ret = []
|
13
|
-
oo.first_row.upto(oo.last_row) do |row|
|
14
|
-
ret << oo.row(row)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
# 3735 Zeilen jeweils
|
18
|
-
def openoffice
|
19
|
-
oo = Openoffice.new('Bibelbund.ods')
|
20
|
-
process_all_cells(oo)
|
21
|
-
end
|
22
|
-
def excel
|
23
|
-
oo = Excel.new('Bibelbund.xls')
|
24
|
-
process_all_cells(oo)
|
25
|
-
end
|
26
|
-
def excelx
|
27
|
-
oo = Excelx.new('Bibelbund.xlsx')
|
28
|
-
process_all_cells(oo)
|
29
|
-
end
|
30
|
-
|
31
|
-
n = 1
|
32
|
-
Benchmark.bmbm(10) do |x|
|
33
|
-
x.report('openoffice:') { n.times do
|
34
|
-
openoffice
|
35
|
-
end }
|
36
|
-
x.report('excel:') { n.times do
|
37
|
-
excel
|
38
|
-
end }
|
39
|
-
x.report('excelx:') { n.times do
|
40
|
-
excelx
|
41
|
-
end }
|
42
|
-
end
|
43
|
-
|
data/tmp.xls
DELETED
Binary file
|