roo 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/Manifest.txt +1 -0
- data/lib/roo/generic_spreadsheet.rb +3 -0
- data/lib/roo/google.rb +0 -2
- data/lib/roo/openoffice.rb +0 -3
- data/lib/roo/version.rb +1 -1
- data/test/simple_spreadsheet.xls +0 -0
- data/test/test_roo.rb +7 -6
- data/website/index.html +1 -1
- metadata +3 -2
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/lib/roo/google.rb
CHANGED
data/lib/roo/openoffice.rb
CHANGED
@@ -10,9 +10,6 @@ class Openoffice < GenericSpreadsheet
|
|
10
10
|
|
11
11
|
@@nr = 0
|
12
12
|
|
13
|
-
# sets the line with attribute names (default: 1)
|
14
|
-
attr_accessor :header_line
|
15
|
-
|
16
13
|
# initialization and opening of a spreadsheet file
|
17
14
|
# values for packed: :zip
|
18
15
|
def initialize(filename, packed=nil) #, create = false)
|
data/lib/roo/version.rb
CHANGED
Binary file
|
data/test/test_roo.rb
CHANGED
@@ -116,10 +116,10 @@ class TestRoo < Test::Unit::TestCase
|
|
116
116
|
|
117
117
|
OPENOFFICE = true # do Openoffice-Spreadsheet Tests?
|
118
118
|
EXCEL = true # do Excel Tests?
|
119
|
-
GOOGLE =
|
119
|
+
GOOGLE = false # do Google-Spreadsheet Tests?
|
120
120
|
|
121
121
|
OPENOFFICEWRITE = false # experimental: write access with OO-Documents
|
122
|
-
ONLINE =
|
122
|
+
ONLINE = false
|
123
123
|
LONG_RUN = false
|
124
124
|
GLOBAL_TIMEOUT = 2*12*60 # seconds
|
125
125
|
|
@@ -2207,7 +2207,7 @@ class TestRoo < Test::Unit::TestCase
|
|
2207
2207
|
end
|
2208
2208
|
end
|
2209
2209
|
|
2210
|
-
def
|
2210
|
+
def test_column_openoffice
|
2211
2211
|
expected = [1.0,5.0,nil,10.0,Date.new(1961,11,21),'tata',nil,nil,nil,nil,'thisisa11',41.0,nil,nil,41.0,'einundvierzig',nil,Date.new(2007,5,31)]
|
2212
2212
|
if OPENOFFICE
|
2213
2213
|
Timeout::timeout(GLOBAL_TIMEOUT) do |timeout_length|
|
@@ -2219,7 +2219,7 @@ class TestRoo < Test::Unit::TestCase
|
|
2219
2219
|
end
|
2220
2220
|
end
|
2221
2221
|
|
2222
|
-
def
|
2222
|
+
def test_column_excel
|
2223
2223
|
expected = [1.0,5.0,nil,10.0,Date.new(1961,11,21),'tata',nil,nil,nil,nil,'thisisa11',41.0,nil,nil,41.0,'einundvierzig',nil,Date.new(2007,5,31)]
|
2224
2224
|
if EXCEL
|
2225
2225
|
Timeout::timeout(GLOBAL_TIMEOUT) do |timeout_length|
|
@@ -2231,7 +2231,7 @@ class TestRoo < Test::Unit::TestCase
|
|
2231
2231
|
end
|
2232
2232
|
end
|
2233
2233
|
|
2234
|
-
def
|
2234
|
+
def test_column_google
|
2235
2235
|
expected = [1.0,5.0,nil,10.0,Date.new(1961,11,21),'tata',nil,nil,nil,nil,'thisisa11',41.0,nil,nil,41.0,'einundvierzig',nil,Date.new(2007,5,31)]
|
2236
2236
|
if GOOGLE
|
2237
2237
|
Timeout::timeout(GLOBAL_TIMEOUT) do |timeout_length|
|
@@ -2312,7 +2312,8 @@ class TestRoo < Test::Unit::TestCase
|
|
2312
2312
|
assert_equal 10.75 , erg[1]['Start time']
|
2313
2313
|
assert_equal 12.50 , erg[1]['End time']
|
2314
2314
|
assert_equal 0 , erg[1]['Pause']
|
2315
|
-
|
2315
|
+
#cannot be tested because excel cannot return the result of formulas:
|
2316
|
+
# assert_equal 1.75 , erg[1]['Sum']
|
2316
2317
|
assert_equal "Task 1" , erg[1]['Comment']
|
2317
2318
|
end
|
2318
2319
|
|
data/website/index.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>roo</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/roo"; return false'>
|
35
35
|
Get Version
|
36
|
-
<a href="http://rubyforge.org/projects/roo" class="numbers">0.8.
|
36
|
+
<a href="http://rubyforge.org/projects/roo" class="numbers">0.8.4</a>
|
37
37
|
</div>
|
38
38
|
<h2>What</h2>
|
39
39
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Preymesser
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2008-01-01 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- test/bbu.xls
|
84
84
|
- test/bbu.ods
|
85
85
|
- test/simple_spreadsheet.ods
|
86
|
+
- test/simple_spreadsheet.xls
|
86
87
|
- test/simple_spreadsheet_from_italo.ods
|
87
88
|
- test/simple_spreadsheet_from_italo.xls
|
88
89
|
- test/test_helper.rb
|