roo 1.9.0 → 1.9.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,9 @@
1
+ == 1.9.1 2009-11-10
2
+
3
+ * 2 bugfixes
4
+ * syntax in nokogiri methods
5
+ * missing dependency ...rubyzip
6
+
1
7
  == 1.9.0 2009-10-29
2
8
 
3
9
  * 4 enhancements
data/Rakefile CHANGED
@@ -38,6 +38,7 @@ PROJ.gem.dependencies = [
38
38
  ['nokogiri', '>= 0.0.1'],
39
39
  ['builder', '>= 2.1.2'],
40
40
  ['gimite-google-spreadsheet-ruby','>= 0.0.5'],
41
+ ['febeling-rubyzip','>= 0.9.2'], # meine aktuelle Version
41
42
  ]
42
43
 
43
44
  PROJ.spec.opts << '--color'
data/lib/roo.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  module Roo
3
3
 
4
4
  # :stopdoc:
5
- VERSION = '1.9.0'
5
+ VERSION = '1.9.1'
6
6
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
7
7
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
8
8
  # :startdoc:
data/lib/roo/excelx.rb CHANGED
@@ -284,7 +284,7 @@ class Excelx < GenericSpreadsheet
284
284
  read_cells(sheet) unless @cells_read[sheet]
285
285
  row,col = normalize(row,col)
286
286
  s = @s_attribute[sheet][[row,col]]
287
- result = attribute2format(s)
287
+ result = attribute2format(s).to_s
288
288
  result
289
289
  end
290
290
 
@@ -553,8 +553,9 @@ class Excelx < GenericSpreadsheet
553
553
  shared_table_entry = ''
554
554
  #TODO: si.each_element do |elem|
555
555
  si.children.each do |elem|
556
- if elem.name == 'r'
557
- elem.each_element do |r_elem|
556
+ if elem.name == 'r' and elem.children
557
+ # elem.each_element do |r_elem|
558
+ elem.children.each do |r_elem|
558
559
  if r_elem.name == 't'
559
560
  shared_table_entry << r_elem.content
560
561
  end
data/test/test_roo.rb CHANGED
@@ -1865,7 +1865,7 @@ doc = Nokogiri::XML(oo.to_xml)
1865
1865
 
1866
1866
  # compare large spreadsheets
1867
1867
  def test_compare_large_spreadsheets
1868
- after Date.new(2009,11,1) do
1868
+ after Date.new(2010,11,1) do
1869
1869
  # problematisch, weil Formeln in Excel nicht unterstützt werden
1870
1870
  if LONG_RUN
1871
1871
  qq = Openoffice.new(File.join('test',"Bibelbund.ods"))
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: 1.9.0
4
+ version: 1.9.1
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: 2009-10-29 00:00:00 +01:00
12
+ date: 2009-11-10 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -52,6 +52,16 @@ dependencies:
52
52
  - !ruby/object:Gem::Version
53
53
  version: 0.0.5
54
54
  version:
55
+ - !ruby/object:Gem::Dependency
56
+ name: febeling-rubyzip
57
+ type: :runtime
58
+ version_requirement:
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: 0.9.2
64
+ version:
55
65
  - !ruby/object:Gem::Dependency
56
66
  name: bones
57
67
  type: :development