lib/roo/generic_spreadsheet.rb in roo-1.11.1 vs lib/roo/generic_spreadsheet.rb in roo-1.11.2

- old
+ new

@@ -522,18 +522,19 @@ new_expression = { '.ods' => 'Roo::Openoffice.new', '.xls' => 'Roo::Excel.new', '.xlsx' => 'Roo::Excelx.new', '.csv' => 'Roo::Csv.new', + '.xml' => 'Roo::Excel2003XML.new', } if packed == :zip # lalala.ods.zip => lalala.ods # hier wird KEIN unzip gemacht, sondern nur der Name der Datei # getestet, falls es eine gepackte Datei ist. filename = File.basename(filename,File.extname(filename)) end case ext - when '.ods', '.xls', '.xlsx', '.csv' + when '.ods', '.xls', '.xlsx', '.csv', '.xml' correct_class = "use #{new_expression[ext]} to handle #{ext} spreadsheet files. This has #{File.extname(filename).downcase}" else raise "unknown file type: #{ext}" end