From 25afcc544a6f287a2ace9018adbe6fc96ea29cb2 Mon Sep 17 00:00:00 2001 From: Denis Talakevich Date: Thu, 13 Apr 2023 12:37:00 +0300 Subject: [PATCH] fix CSV.parse call --- lib/excelinator/xls.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/excelinator/xls.rb b/lib/excelinator/xls.rb index 246a871..6f86896 100644 --- a/lib/excelinator/xls.rb +++ b/lib/excelinator/xls.rb @@ -8,7 +8,7 @@ def self.convert_content(content) end def self.csv_to_xls(csv_content, separator=",") - ary = (!old_ruby? ? CSV : FasterCSV).parse(csv_content, { :col_sep => separator} ) + ary = (!old_ruby? ? CSV : FasterCSV).parse(csv_content, col_sep: separator) book = Spreadsheet::Workbook.new sheet = book.create_worksheet @@ -55,4 +55,4 @@ def self.html_as_xls(html_content, options={}) end # def self.html_to_xls might be nice to do - convert html table to _real_ xls file -end \ No newline at end of file +end