Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/simple_xlsx_reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module SimpleXlsxReader
DATE_SYSTEM_1900 = Date.new(1899, 12, 30)
DATE_SYSTEM_1904 = Date.new(1904, 1, 1)

class ZipContentError < StandardError; end
class CellLoadError < StandardError; end

class << self
Expand Down
1 change: 1 addition & 0 deletions lib/simple_xlsx_reader/loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def entry_at(path, &block)
zip.find_entry(path.tr('/', '\\').downcase) # Sometimes it's lowercase

if block
raise ZipContentError.new("Missing required entry in zip: #{path}") unless entry
entry.get_input_stream(&block)
else
entry
Expand Down