roo 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/roo/excel.rb +0 -1
- data/lib/roo/openoffice.rb +2 -4
- data/lib/roo/version.rb +1 -1
- data/test/test_roo.rb +56 -1
- data/website/index.html +1 -1
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
+
== 0.5.4 2007-08-27
|
2
|
+
* 1 bugfix
|
3
|
+
* Openoffice: fixed a bug with internal representation of a spreadsheet (thanks to Ric Kamicar for the patch)
|
1
4
|
== 0.5.3 2007-08-26
|
5
|
+
* 2 enhancements:
|
2
6
|
* Excel: can now read zip-ed files
|
3
7
|
* Excel: can now read files from http://-URL over the net
|
4
8
|
== 0.5.2 2007-08-26
|
data/lib/roo/excel.rb
CHANGED
data/lib/roo/openoffice.rb
CHANGED
@@ -469,9 +469,7 @@ private
|
|
469
469
|
end
|
470
470
|
end
|
471
471
|
if skip
|
472
|
-
if v
|
473
|
-
x += (skip.to_i - 1)
|
474
|
-
else
|
472
|
+
if v != nil
|
475
473
|
0.upto(skip.to_i-1) do |i|
|
476
474
|
@cell_type["#{y},#{x+i}"] = Openoffice.oo_type_2_roo_type(vt)
|
477
475
|
@formula["#{y},#{x+i}"] = formula if formula
|
@@ -485,8 +483,8 @@ private
|
|
485
483
|
@cell["#{y},#{x+i}"] = v
|
486
484
|
end
|
487
485
|
end
|
488
|
-
x += 1
|
489
486
|
end
|
487
|
+
x += (skip.to_i - 1)
|
490
488
|
end # if skip
|
491
489
|
@formula["#{y},#{x}"] = formula if formula
|
492
490
|
@cell_type["#{y},#{x}"] = Openoffice.oo_type_2_roo_type(vt)
|
data/lib/roo/version.rb
CHANGED
data/test/test_roo.rb
CHANGED
@@ -1076,7 +1076,7 @@ class TestRoo < Test::Unit::TestCase
|
|
1076
1076
|
end
|
1077
1077
|
|
1078
1078
|
def test_excel_zipped
|
1079
|
-
after Date.new(2007,8,
|
1079
|
+
after Date.new(2007,8,10) do
|
1080
1080
|
excel = Excel.new(File.join("test","bode-v1.xls.zip"), :zip)
|
1081
1081
|
assert excel
|
1082
1082
|
assert_equal 'ist "e" im Nenner von H(s)', excel.cell('b', 5)
|
@@ -1093,4 +1093,59 @@ class TestRoo < Test::Unit::TestCase
|
|
1093
1093
|
oo.remove_tmp # don't forget to remove the temporary files
|
1094
1094
|
end
|
1095
1095
|
end
|
1096
|
+
|
1097
|
+
def test_bug_ric
|
1098
|
+
oo = Openoffice.new("/home/tp/Desktop/xxx.ods")
|
1099
|
+
oo.default_sheet = oo.sheets.first
|
1100
|
+
assert oo.empty?('A',1)
|
1101
|
+
assert oo.empty?('B',1)
|
1102
|
+
assert oo.empty?('C',1)
|
1103
|
+
assert oo.empty?('D',1)
|
1104
|
+
assert_equal 1, oo.cell('e',1)
|
1105
|
+
assert_equal 2, oo.cell('f',1)
|
1106
|
+
assert_equal 3, oo.cell('g',1)
|
1107
|
+
assert_equal 4, oo.cell('h',1)
|
1108
|
+
assert_equal 5, oo.cell('i',1)
|
1109
|
+
assert_equal 6, oo.cell('j',1)
|
1110
|
+
assert_equal 7, oo.cell('k',1)
|
1111
|
+
assert_equal 8, oo.cell('l',1)
|
1112
|
+
assert_equal 9, oo.cell('m',1)
|
1113
|
+
assert_equal 10, oo.cell('n',1)
|
1114
|
+
assert_equal 11, oo.cell('o',1)
|
1115
|
+
assert_equal 12, oo.cell('p',1)
|
1116
|
+
assert_equal 13, oo.cell('q',1)
|
1117
|
+
assert_equal 14, oo.cell('r',1)
|
1118
|
+
assert_equal 15, oo.cell('s',1)
|
1119
|
+
assert_equal 16, oo.cell('t',1)
|
1120
|
+
assert_equal 17, oo.cell('u',1)
|
1121
|
+
assert_equal 'J', oo.cell('v',1)
|
1122
|
+
assert_equal 'P', oo.cell('w',1)
|
1123
|
+
assert_equal 'B', oo.cell('x',1)
|
1124
|
+
assert_equal 'All', oo.cell('y',1)
|
1125
|
+
assert_equal 0, oo.cell('a',2)
|
1126
|
+
assert oo.empty?('b',2)
|
1127
|
+
assert oo.empty?('c',2)
|
1128
|
+
assert oo.empty?('d',2)
|
1129
|
+
assert_equal 'B', oo.cell('e',2)
|
1130
|
+
assert_equal 'B', oo.cell('f',2)
|
1131
|
+
assert_equal 'B', oo.cell('g',2)
|
1132
|
+
assert_equal 'B', oo.cell('h',2)
|
1133
|
+
assert_equal 'B', oo.cell('i',2)
|
1134
|
+
assert_equal 'B', oo.cell('j',2)
|
1135
|
+
assert_equal 'B', oo.cell('k',2)
|
1136
|
+
assert_equal 'B', oo.cell('l',2)
|
1137
|
+
assert_equal 'B', oo.cell('m',2)
|
1138
|
+
assert_equal 'B', oo.cell('n',2)
|
1139
|
+
assert_equal 'B', oo.cell('o',2)
|
1140
|
+
assert_equal 'B', oo.cell('p',2)
|
1141
|
+
assert_equal 'B', oo.cell('q',2)
|
1142
|
+
assert_equal 'B', oo.cell('r',2)
|
1143
|
+
assert_equal 'B', oo.cell('s',2)
|
1144
|
+
assert oo.empty?('t',2)
|
1145
|
+
assert oo.empty?('u',2)
|
1146
|
+
assert_equal 0 , oo.cell('v',2)
|
1147
|
+
assert_equal 0 , oo.cell('w',2)
|
1148
|
+
assert_equal 15 , oo.cell('x',2)
|
1149
|
+
assert_equal 15 , oo.cell('y',2)
|
1150
|
+
end
|
1096
1151
|
end # class
|
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.5.
|
36
|
+
<a href="http://rubyforge.org/projects/roo" class="numbers">0.5.4</a>
|
37
37
|
</div>
|
38
38
|
<h2>What</h2>
|
39
39
|
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: roo
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.5.
|
7
|
-
date: 2007-08-
|
6
|
+
version: 0.5.4
|
7
|
+
date: 2007-08-27 00:00:00 +02:00
|
8
8
|
summary: roo can access the contents of OpenOffice-Spreadsheets and Excel-Spreadsheets
|
9
9
|
require_paths:
|
10
10
|
- lib
|