lib/epubinfo/parser.rb in epubinfo-0.4.3 vs lib/epubinfo/parser.rb in epubinfo-0.4.4

- old
+ new

@@ -16,11 +16,11 @@ @drm_protected ||= !!zip_file.find_entry('META-INF/rights.xml') end def zip_file begin - @zip_file ||= Zip::ZipFile.open(@path) - rescue Zip::ZipError => e + @zip_file ||= Zip::File.open(@path) + rescue Zip::Error => e raise NotAnEPUBFileError.new(e) end end def metadata_path