roo 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.4.1 2007-06-27
2
+ * 1 bugfix
3
+ * there was ONE false require-statement which led to misleading error messageswhen this gem was used
4
+
5
+ == 0.4.0 2007-06-27
1
6
  * 7 enhancements:
2
7
  * robustness: Exception if no default_sheet was set
3
8
  * new method reload() implemented
data/lib/roo.rb CHANGED
@@ -2,6 +2,7 @@ module Roo
2
2
  end
3
3
 
4
4
  require 'roo/version'
5
+ require 'roo/spreadsheetparser'
5
6
  require 'roo/openoffice'
6
7
  require 'roo/excel'
7
8
  require 'roo/google'
@@ -6,7 +6,7 @@ require 'zip/zipfilesystem'
6
6
  require 'date'
7
7
  require 'llip'
8
8
 
9
- require 'lib/roo/spreadsheetparser'
9
+ #require 'lib/roo/spreadsheetparser'
10
10
 
11
11
  class Openoffice
12
12
 
@@ -4,6 +4,7 @@ I don't know if i will extend the work on the evaluation of formulas.
4
4
  You can access all formulas as a string and do whatever you want with this.
5
5
  =end
6
6
 
7
+ require 'rubygems'
7
8
  require 'llip'
8
9
  require 'llip/visitable'
9
10
 
data/lib/roo/version.rb CHANGED
@@ -2,7 +2,7 @@ module Roo #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 4
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/test/test_roo.rb CHANGED
@@ -855,4 +855,16 @@ end
855
855
  end
856
856
  end
857
857
 
858
+ def test_old_openoffice
859
+ if OPENOFFICE
860
+ oo = Openoffice.new(File.join("/media","LACIE","ferien","Ferien.ods"))
861
+ oo.default_sheet = oo.sheets.first
862
+ assert_equal 2006, oo.cell('A',1)
863
+ assert_equal "Berlin", oo.cell('B',1)
864
+ assert_equal "Herbstferien", oo.cell('C',1)
865
+ assert_equal Date.new(2006,10,2), oo.cell('D',1)
866
+ assert_equal Date.new(2006,10,14), oo.cell('E',1)
867
+ end
868
+ end
869
+
858
870
  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.4.0</a>
36
+ <a href="http://rubyforge.org/projects/roo" class="numbers">0.4.1</a>
37
37
  </div>
38
38
  <h2>What</h2>
39
39
 
@@ -238,6 +238,9 @@ is the setting of the default-worksheet. OpenOffice uses the name of the workshe
238
238
 
239
239
 
240
240
 
241
+ <p>Old .sxc OpenOffice files are currently not supported &#8211; please load these files and save as an &#8220;OpenDocument Spreadsheet (.ods)&#8221;.</p>
242
+
243
+
241
244
  <h2>Where is it used?</h2>
242
245
 
243
246
 
@@ -303,7 +306,7 @@ is the setting of the default-worksheet. OpenOffice uses the name of the workshe
303
306
  <li>Dirk Huth f&uuml;rs Testen unter Windows</li>
304
307
  </ul>
305
308
  <p class="coda">
306
- <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 26th June 2007<br>
309
+ <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 27th June 2007<br>
307
310
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
308
311
  </p>
309
312
  </div>
data/website/index.txt CHANGED
@@ -151,6 +151,7 @@ table(border:1px solid black).
151
151
  |formulas|yes|no|
152
152
  |to_yaml|yes|yes|
153
153
 
154
+ Old .sxc OpenOffice files are currently not supported - please load these files and save as an "OpenDocument Spreadsheet (.ods)".
154
155
 
155
156
  h2. Where is it used?
156
157
 
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: roo
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.4.0
6
+ version: 0.4.1
7
7
  date: 2007-06-27 00:00:00 +02:00
8
8
  summary: roo can access the contents of OpenOffice-Spreadsheets
9
9
  require_paths: