docs/Home.markdown in epub-parser-0.1.7.1 vs docs/Home.markdown in epub-parser-0.1.8
- old
+ new
@@ -42,10 +42,10 @@
`page` above is an {EPUB::Publication::Package::Manifest::Item} object and you can call {EPUB::Publication::Package::Manifest::Item#href #href} to see where is the page file:
book.each_page_on_spine do |page|
file = page.href # => path/to/page/in/zip/archive
html = Zip::Archive.open('/path/to/book.epub') {|zip|
- zip.fopen(file.to_s).read
+ zip.fopen(file.to_s) {|file| file.read}
}
end
And {EPUB::Publication::Package::Manifest::Item Item} provides syntax suger {EPUB::Publication::Package::Manifest::Item#read #read} for above: