Skip to content
This repository has been archived by the owner on Dec 28, 2017. It is now read-only.

Commit

Permalink
updated examples for new API
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Cook committed Jan 8, 2012
1 parent 2b27482 commit 8de0e52
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,21 @@ Sample usage and output:
require 'epub_validator'

ev = EpubValidator.check('/path/to/sample.epub')
ev.message.each do |m|
puts ev[:valid]
ev[:message].each do |m|
puts m
end
=> # FAILED!
=> # ERROR: OPS/toc.ncx(21): 'OPS/': referenced resource exists, but not declared in the OPF file
=> 0
=> ERROR: OPS/toc.ncx(21): 'OPS/': referenced resource exists, but not declared in the OPF file
```

Now from the command line:

``` terminal
$ epub_validator /path/to/sample.epub
Checking....
FAILED!
Checking....FAILED!
ERROR: OPS/toc.ncx(21): 'OPS/': referenced resource exists, but not declared in the OPF file
```

Expand All @@ -44,6 +46,6 @@ Java must be installed and set in your PATH.

## Future Features

* Accept a directory containing many .epub files for processing.
* When using the command line, have option to write results to a log file
* Command line: accept directory containing many .epub files for processing.
* Command line: have switch for writing results to log file
* Format "ERROR" and "WARNING" output for more intuitive instructions.

0 comments on commit 8de0e52

Please sign in to comment.