spreadsheet 0.6.1.7 → 0.6.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,11 @@
1
+ === 0.6.1.8 / 2008-10-31
2
+
3
+ * 1 Bugfix
4
+
5
+ * Fixes a bug where out-of-sequence reading of multiple Worksheets could
6
+ lead to data from the wrong Sheet being returned.
7
+ (Thanks to Bugreporter extraordinaire Bjørn Hjelle)
8
+
1
9
  === 0.6.1.7 / 2008-10-30
2
10
 
3
11
  * 1 Bugfix
@@ -42,7 +42,7 @@ module Spreadsheet
42
42
 
43
43
  ##
44
44
  # The version of Spreadsheet you are using.
45
- VERSION = '0.6.1.7'
45
+ VERSION = '0.6.1.8'
46
46
 
47
47
  ##
48
48
  # Default client Encoding. Change this value if your application uses a
@@ -635,9 +635,9 @@ class Reader
635
635
  end
636
636
  def read_row worksheet, addr
637
637
  row = addr[:index]
638
- @current_row_block.fetch row do
638
+ @current_row_block.fetch [worksheet, row] do
639
639
  @current_row_block.clear
640
- cells = @current_row_block[row] = Row.new(nil, row)
640
+ cells = @current_row_block[[worksheet, row]] = Row.new(nil, row)
641
641
  @pos = addr[:offset]
642
642
  found = false
643
643
  while tuple = get_next_chunk
@@ -969,7 +969,7 @@ class Reader
969
969
  @workbook.add_format fmt
970
970
  end
971
971
  def set_cell worksheet, row, column, xf, value=nil
972
- cells = @current_row_block[row] ||= Row.new(nil, row)
972
+ cells = @current_row_block[[worksheet, row]] ||= Row.new(nil, row)
973
973
  cells.formats[column] = @workbook.format(xf) unless xf == 0
974
974
  cells[column] = value
975
975
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spreadsheet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1.7
4
+ version: 0.6.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hannes Wyss
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-30 00:00:00 +01:00
12
+ date: 2008-10-31 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency