lib/roo/excel.rb in roo-0.5.1 vs lib/roo/excel.rb in roo-0.5.2
- old
+ new
@@ -14,11 +14,10 @@
filename = unzip(filename) if packed and packed == :zip
if filename[-4..-1] != ".xls"
warn "are you sure, this is an excel file?"
end
@filename = filename
-p filename
@workbook = Spreadsheet::ParseExcel.parse(filename)
@default_sheet = nil
# no need to set default_sheet if there is only one sheet in the document
if self.sheets.size == 1
@default_sheet = self.sheets.first
@@ -255,10 +254,9 @@
end
#file = File.new(File.join(@tmpdir, path))
file = File.open(File.join(@tmpdir, path),"w")
file.write(zip.read(path))
file.close
- p File.join(@tmpdir, path)
return File.join(@tmpdir, path)
else
unless path.empty?
path += '/'
puts path