roo 0.8.3 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,6 @@
1
+ == 0.8.4 2008-01-01
2
+ * 1 bugfix
3
+ * fixed 'find_by_condition' for excel sheets (header_line= --> GenericSpredsheet)
1
4
  == 0.8.3 2007-12-31
2
5
  * 2 bugfixes
3
6
  * another fix for the encoding issue in excel sheet-names
@@ -20,6 +20,7 @@ test/Bibelbund1.ods
20
20
  test/bbu.xls
21
21
  test/bbu.ods
22
22
  test/simple_spreadsheet.ods
23
+ test/simple_spreadsheet.xls
23
24
  test/simple_spreadsheet_from_italo.ods
24
25
  test/simple_spreadsheet_from_italo.xls
25
26
  test/test_helper.rb
@@ -3,6 +3,9 @@ class GenericSpreadsheet
3
3
 
4
4
  attr_reader :default_sheet
5
5
 
6
+ # sets the line with attribute names (default: 1)
7
+ attr_accessor :header_line
8
+
6
9
  # converts cell coordinate to numeric values of row,col
7
10
  def normalize(row,col)
8
11
  if row.class == String
@@ -83,8 +83,6 @@ end # module
83
83
  class Google < GenericSpreadsheet
84
84
  #include Log4r
85
85
 
86
- attr_accessor :header_line
87
-
88
86
  # Creates a new Google spreadsheet object.
89
87
  def initialize(spreadsheetkey,user=nil,password=nil)
90
88
  @filename = spreadsheetkey
@@ -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)
@@ -2,7 +2,7 @@ module Roo #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 8
5
- TINY = 3
5
+ TINY = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -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 = true # do Google-Spreadsheet Tests?
119
+ GOOGLE = false # do Google-Spreadsheet Tests?
120
120
 
121
121
  OPENOFFICEWRITE = false # experimental: write access with OO-Documents
122
- ONLINE = true
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 test_columns_openoffice
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 test_columns_excel
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 test_columns_google
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
- assert_equal 1.75 , erg[1]['Sum']
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
 
@@ -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.3</a>
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.3
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: 2007-12-31 00:00:00 +01:00
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