lib/roo/generic_spreadsheet.rb in roo-0.9.4 vs lib/roo/generic_spreadsheet.rb in roo-1.0.0

- old
+ new

@@ -179,11 +179,11 @@ result = impossible_value @cell[sheet].each_pair {|key,value| y,x = key.split(',') y = y.to_i result = [result, y].max if value - } + } if @cell[sheet] result = nil if result == impossible_value @last_row[sheet] = result result end @@ -201,11 +201,11 @@ result = impossible_value @cell[sheet].each_pair {|key,value| y,x = key.split(',') x = x.to_i result = [result, x].max if value - } + } if @cell[sheet] result = nil if result == impossible_value @last_column[sheet] = result result end @@ -218,15 +218,15 @@ if @first_row[sheet] return @first_row[sheet] end impossible_value = 999_999 # more than a spreadsheet can hold result = impossible_value - @cell[sheet].each_pair {|key,value| + @cell[sheet].each_pair {|key,value| y,x = key.split(',') y = y.to_i result = [result, y].min if value - } + } if @cell[sheet] result = nil if result == impossible_value @first_row[sheet] = result result end @@ -243,10 +243,10 @@ result = impossible_value @cell[sheet].each_pair {|key,value| y,x = key.split(',') x = x.to_i result = [result, x].min if value - } + } if @cell[sheet] result = nil if result == impossible_value @first_column[sheet] = result result end