Simple spreadsheet is a Ruby Gem reader for common spreadsheet formats: Excel (.xls, .xlsx), Open-office (.ods) and CSV (standard, excel, tab separated)
I tried to open a .XLS file from Windows with an uppercased name and extension. The .read method returns nil. A quick inspection to the code finds this in lib/simple-spreadsheet.rb
ext ||= File.extname(file)
case ext
when '.xls'
ExcelReader.new(file)
Changing the first line into ext ||= File.extname(file).downcase fixes the issue.
I tried to open a .XLS file from Windows with an uppercased name and extension. The .read method returns nil. A quick inspection to the code finds this in
lib/simple-spreadsheet.rb
Changing the first line into
ext ||= File.extname(file).downcase
fixes the issue.