Skip to content

Commit

Permalink
fix gepub 1.0.16 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
slonopotamus committed May 12, 2024
1 parent 6fefa78 commit d3a6427
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,12 @@ def to_epub(input, opts = {})
return result if result.is_a?(GEPUB::Book)

output = Pathname.new result.attr('outfile')
book = GEPUB::Book.parse output
[book, output]
[
output.open do |f|
GEPUB::Book.parse f
end,
output
]
end
end

Expand Down

0 comments on commit d3a6427

Please sign in to comment.