lib/epub/publication/package/manifest.rb in epub-parser-0.0.8 vs lib/epub/publication/package/manifest.rb in epub-parser-0.0.9

- old
+ new

@@ -45,10 +45,12 @@ return @fallback_chain if @fallback_chain @fallback_chain = traverse_fallback_chain([]) end def read - open(iri) {|file| file.read} + Zip::Archive.open(manifest.package.book.epub_file) {|zip| + zip.fopen(iri.to_s).read + } end # To do: Handle circular fallback chain def use_fallback_chain(options = {}) supported = EPUB::MediaType::CORE