Skip to content

Commit

Permalink
Add workaround for sparklemotion/nokogiri#2773
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolesUC committed Jan 19, 2023
1 parent e1ad088 commit 8156673
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 42 deletions.
84 changes: 42 additions & 42 deletions .idea/tind.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions lib/berkeley_library/util/ods/spreadsheet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ def io_like?(out)

def write_zipfile(out)
io = Zip::OutputStream.write_buffer(out) do |zip|
# Workaround for https://github.com/sparklemotion/nokogiri/issues/2773
class << zip; def external_encoding; end; end

each_document { |doc| write_zip_entry(doc, zip) }
end
# NOTE: Zip::OutputStream plays games with the stream and
Expand Down

0 comments on commit 8156673

Please sign in to comment.