lib/epub/parser.rb in epub-parser-0.3.2 vs lib/epub/parser.rb in epub-parser-0.3.3

- old
+ new

@@ -49,10 +49,12 @@ raise "File #{filepath} not found" if !path_is_uri and !File.exist?(filepath) @filepath = path_is_uri ? filepath : File.realpath(filepath) @book = create_book(options) - if File.directory? @filepath + if path_is_uri + @book.container_adapter = :UnpackedURI + elsif File.directory? @filepath @book.container_adapter = :UnpackedDirectory end @book.epub_file = @filepath if options[:container_adapter] @book.container_adapter = options[:container_adapter]