lib/remote_table/properties.rb in remote_table-1.0.3 vs lib/remote_table/properties.rb in remote_table-1.1.0
- old
+ new
@@ -190,11 +190,10 @@
clue = if t.options['format']
t.options['format'].to_s
else
::File.extname t.local_file.path
end
- return Format::Delimited if clue.blank?
case clue.downcase
when /xlsx/, /excelx/
Format::Excelx
when /xls/, /excel/
Format::Excel
@@ -204,14 +203,11 @@
Format::OpenOffice
when /fixed_?width/
Format::FixedWidth
when /htm/
Format::HTML
- when /txt/, /dat/
- # legacy
- Format::Delimited
else
- raise Format::Unknown, clue
+ Format::Delimited
end
end
end
end