gepub 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gepub/book.rb +12 -7
  3. data/lib/gepub/version.rb +1 -1
  4. data/spec/fixtures/epubcheck-4.1.1/CHANGELOG.txt +92 -0
  5. data/spec/fixtures/epubcheck-4.1.1/LICENSE.txt +28 -0
  6. data/spec/fixtures/epubcheck-4.1.1/README.txt +101 -0
  7. data/spec/fixtures/epubcheck-4.1.1/THIRD-PARTY.txt +60 -0
  8. data/spec/fixtures/epubcheck-4.1.1/epubcheck.jar +0 -0
  9. data/spec/fixtures/epubcheck-4.1.1/lib/Saxon-HE-9.8.0-8.jar +0 -0
  10. data/spec/fixtures/epubcheck-4.1.1/lib/animal-sniffer-annotations-1.14.jar +0 -0
  11. data/spec/fixtures/epubcheck-4.1.1/lib/checker-compat-qual-2.0.0.jar +0 -0
  12. data/spec/fixtures/epubcheck-4.1.1/lib/common-image-3.4.1.jar +0 -0
  13. data/spec/fixtures/epubcheck-4.1.1/lib/common-io-3.4.1.jar +0 -0
  14. data/spec/fixtures/epubcheck-4.1.1/lib/common-lang-3.4.1.jar +0 -0
  15. data/spec/fixtures/epubcheck-4.1.1/lib/commons-compress-1.18.jar +0 -0
  16. data/spec/fixtures/epubcheck-4.1.1/lib/error_prone_annotations-2.1.3.jar +0 -0
  17. data/spec/fixtures/epubcheck-4.1.1/lib/guava-24.0-android.jar +0 -0
  18. data/spec/fixtures/epubcheck-4.1.1/lib/imageio-core-3.4.1.jar +0 -0
  19. data/spec/fixtures/epubcheck-4.1.1/lib/imageio-jpeg-3.4.1.jar +0 -0
  20. data/spec/fixtures/epubcheck-4.1.1/lib/imageio-metadata-3.4.1.jar +0 -0
  21. data/spec/fixtures/epubcheck-4.1.1/lib/j2objc-annotations-1.1.jar +0 -0
  22. data/spec/fixtures/{epubcheck-4.0.1 → epubcheck-4.1.1}/lib/jackson-core-asl-1.9.12.jar +0 -0
  23. data/spec/fixtures/{epubcheck-4.0.1 → epubcheck-4.1.1}/lib/jackson-mapper-asl-1.9.12.jar +0 -0
  24. data/spec/fixtures/{epubcheck-4.0.1 → epubcheck-4.1.1}/lib/jing-20120724.0.0.jar +0 -0
  25. data/spec/fixtures/epubcheck-4.1.1/lib/jsr305-1.3.9.jar +0 -0
  26. data/spec/fixtures/{epubcheck-4.0.1 → epubcheck-4.1.1}/lib/sac-1.3.jar +0 -0
  27. data/spec/fixtures/{epubcheck-4.0.1 → epubcheck-4.1.1}/licenses/Apache-2.0.txt +0 -0
  28. data/spec/fixtures/{epubcheck-4.0.1 → epubcheck-4.1.1}/licenses/BSD-3-Clause.txt +0 -0
  29. data/spec/fixtures/{epubcheck-4.0.1 → epubcheck-4.1.1}/licenses/MPL-1.0.txt +0 -0
  30. data/spec/fixtures/{epubcheck-4.0.1 → epubcheck-4.1.1}/licenses/W3C.txt +0 -0
  31. data/spec/spec_helper.rb +2 -2
  32. metadata +56 -44
  33. data/spec/fixtures/epubcheck-4.0.1/COPYING.txt +0 -19
  34. data/spec/fixtures/epubcheck-4.0.1/README.txt +0 -60
  35. data/spec/fixtures/epubcheck-4.0.1/THIRD-PARTY.txt +0 -44
  36. data/spec/fixtures/epubcheck-4.0.1/epubcheck.jar +0 -0
  37. data/spec/fixtures/epubcheck-4.0.1/lib/Saxon-HE-9.5.1-5.jar +0 -0
  38. data/spec/fixtures/epubcheck-4.0.1/lib/common-image-3.1.2.jar +0 -0
  39. data/spec/fixtures/epubcheck-4.0.1/lib/common-io-3.1.2.jar +0 -0
  40. data/spec/fixtures/epubcheck-4.0.1/lib/common-lang-3.1.2.jar +0 -0
  41. data/spec/fixtures/epubcheck-4.0.1/lib/commons-compress-1.5.jar +0 -0
  42. data/spec/fixtures/epubcheck-4.0.1/lib/guava-14.0.1.jar +0 -0
  43. data/spec/fixtures/epubcheck-4.0.1/lib/imageio-core-3.1.2.jar +0 -0
  44. data/spec/fixtures/epubcheck-4.0.1/lib/imageio-jpeg-3.1.2.jar +0 -0
  45. data/spec/fixtures/epubcheck-4.0.1/lib/imageio-metadata-3.1.2.jar +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88666fd75b90a68e50f920648d1a459b2beb59bc47aa9a1ca3ef9fb39dc7b746
4
- data.tar.gz: c455873460659bc89b70f725129bf462ae5478beb68fb8be99de2ba04c49e4dc
3
+ metadata.gz: 882c115d013e8ded6bc2d0533afd8f6fd4d0b8e615b515d71059c7b1c162a271
4
+ data.tar.gz: daeea3e483e042c505ac5524bf22ef1824b2ca9767a552998a0710058e26ea90
5
5
  SHA512:
6
- metadata.gz: d121c4ea9dbabaa8e61ddebf98c79a63d6358e25c49c46d3692a36a1f97c2e0adeba226ae1e7455dddc1aaa9ef2c674336991d38d8a04d3cca3fa931a0892973
7
- data.tar.gz: 8a4ffe1aa6c98483f9cd64637145802911326a7ef5d766d9526cbbcfb7a62835eefc2d52fa6ac51421f39b8d4f12a7fdf0f2b221bcc2678c5dac058072aec1cd
6
+ metadata.gz: 1dda127880df03caf552e746c00b54c60cdad4bc0558ef05ad0ad3d19f52ebfaaed4ac7096c375f9d7284c2d95e13a5924f1dcf84e629662907cb6c14b4d4a04
7
+ data.tar.gz: f802a5ccf184f0d57d6653dda3f1109522fb93af99d6d3bd42b0cf480f067cda853ee6ff340b2a87bad1453a979b04fb22953c45258731acdf5ef98c39d93c35
@@ -277,6 +277,7 @@ EOF
277
277
  end
278
278
  # write toc
279
279
  def write_toc xml_doc, tocs
280
+ return if tocs.empty?
280
281
  xml_doc.ol {
281
282
  tocs.each {
282
283
  |x|
@@ -311,13 +312,17 @@ EOF
311
312
  doc.html('xmlns' => "http://www.w3.org/1999/xhtml",'xmlns:epub' => "http://www.idpf.org/2007/ops") {
312
313
  doc.head { doc.text ' ' }
313
314
  doc.body {
314
- doc.nav('epub:type' => 'toc', 'id' => 'toc') {
315
- doc.h1 "#{title}"
316
- write_toc(doc, stacked_toc[:tocs])
317
- }
318
- doc.nav('epub:type' => 'landmarks', 'id' => 'landmarks') {
319
- write_landmarks(doc, @landmarks)
320
- }
315
+ if !stacked_toc.empty?
316
+ doc.nav('epub:type' => 'toc', 'id' => 'toc') {
317
+ doc.h1 "#{title}"
318
+ write_toc(doc, stacked_toc[:tocs])
319
+ }
320
+ end
321
+ if !@landmarks.empty?
322
+ doc.nav('epub:type' => 'landmarks', 'id' => 'landmarks') {
323
+ write_landmarks(doc, @landmarks)
324
+ }
325
+ end
321
326
  }
322
327
  }
323
328
  }
@@ -1,4 +1,4 @@
1
1
  module GEPUB
2
2
  # GEPUB gem version
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
@@ -0,0 +1,92 @@
1
+ # EPUBCheck change log
2
+
3
+ <a name="4.1.1"></a>
4
+ ## [4.1.1](https://github.com/w3c/epubcheck/compare/v4.1.0...v4.1.1) (2019-01-22)
5
+
6
+ This is a maintenance release of EPUBCheck, the conformance validator for EPUB publications. It mostly consists of bug fixes and updated localized messages.
7
+
8
+ This release was made by the DAISY Consortium, for the W3C.
9
+
10
+ Many thanks to the various people who contributed to this release, notably the team of translators including Elisa Molinari, Emiliano Molina, Gregorio Pellegrino, Masayoshi Takahashi, Merijn de Haen, Thiago de Oliveira Pereira, Vincent Gros, Woongyoung Park… and especially Tobias Fischer, who has been coordinating the translation contributions!
11
+
12
+ **Note:** this release is part of the 4.1.x stable stream, which checks conformance to the EPUB 3.0.1 family of specifications. It does _not_ include support for the newer EPUB 3.2 specifications. For a preview of EPUB 3.2 conformance checking, feel free to try the latest release in the 4.2.x beta stream (currently [v4.2.0-alpha-1](https://github.com/w3c/epubcheck/releases/tag/v4.2.0-alpha-1))!
13
+
14
+ ### Bug Fixes
15
+
16
+ * `switch` item property doesn't apply to `svg:switch` ([91b84ad](https://github.com/w3c/epubcheck/commit/91b84ad)), closes [#857](https://github.com/w3c/epubcheck/issues/857)
17
+ * better check remote resources ([85b5f77](https://github.com/w3c/epubcheck/commit/85b5f77)), closes [#852](https://github.com/w3c/epubcheck/issues/852)
18
+ * better support the EPUB Accessibility Vocabulary ([8a9cf63](https://github.com/w3c/epubcheck/commit/8a9cf63)), closes [#810](https://github.com/w3c/epubcheck/issues/810)
19
+ * consider all `video/*` as video media types ([27ad571](https://github.com/w3c/epubcheck/commit/27ad571))
20
+ * do not check entity references in comment or CDATA ([#949](https://github.com/w3c/epubcheck/issues/949)) ([4307542](https://github.com/w3c/epubcheck/commit/4307542)), closes [#800](https://github.com/w3c/epubcheck/issues/800)
21
+ * do not report CSS 'font-size: 0' as an error ([4e17714](https://github.com/w3c/epubcheck/commit/4e17714)), closes [#922](https://github.com/w3c/epubcheck/issues/922)
22
+ * keep on processing after failing to read GIFs ([2a244e7](https://github.com/w3c/epubcheck/commit/2a244e7))
23
+ * messages of missing/incorrect locale cannot be translated ([91fac12](https://github.com/w3c/epubcheck/commit/91fac12))
24
+ * resolve relative URIs against their base ([d42ccd6](https://github.com/w3c/epubcheck/commit/d42ccd6)), closes [#527](https://github.com/w3c/epubcheck/issues/527)
25
+ * valid JPEG files were considered 'corrupted' ([c4a2cfa](https://github.com/w3c/epubcheck/commit/c4a2cfa)), closes [#850](https://github.com/w3c/epubcheck/issues/850)
26
+ * wrong report of duplicate landmarks in Nav Doc ([#942](https://github.com/w3c/epubcheck/issues/942)) ([e06a552](https://github.com/w3c/epubcheck/commit/e06a552)), closes [#926](https://github.com/w3c/epubcheck/issues/926)
27
+
28
+
29
+ ### Features
30
+
31
+ * update localized messages for several languages ([116e61b](https://github.com/w3c/epubcheck/commit/116e61b))
32
+
33
+
34
+ <a name="4.1.0"></a>
35
+ ## [4.1.0](https://github.com/w3c/epubcheck/compare/v4.0.2...v4.1.0) (2018-11-26)
36
+
37
+ ### Bug Fixes
38
+
39
+ * silence a Saxon warning (Schematron XSLT) ([5045d78b](https://github.com/w3c/epubcheck/commit/5045d78b)), closes #859
40
+ * fix path resolution in EpubNCXCheck (ctc package) ([f572a861](https://github.com/w3c/epubcheck/commit/f572a861))
41
+ * handle `IllegalStateException` in NCX checker ([25336894](https://github.com/w3c/epubcheck/commit/25336894)), closes #666
42
+ * check that the `mimetype` file is uncompressed ([6764e250](https://github.com/w3c/epubcheck/commit/6764e250)), closes #303
43
+ * fix wrong exit message for single file validation ([68af5a9a](https://github.com/w3c/epubcheck/commit/68af5a9a)), closes #740
44
+ * allow ARIA `role` attributes in SVG ([49412e05](https://github.com/w3c/epubcheck/commit/49412e05)), closes #769
45
+ * allow empty `xml:lang` attributes ([392c2f68](https://github.com/w3c/epubcheck/commit/392c2f68)), closes #777
46
+ * handle no src uri in fonts, correct embedded font boolean in the XML output ([a26f9c13](https://github.com/w3c/epubcheck/commit/a26f9c13)), closes #773
47
+ * fix issues with landmarks checks `ACC-008` ([74d0bdd1](https://github.com/w3c/epubcheck/commit/74d0bdd1)), closes #457, #734
48
+ * fix focus issue when using EPUBCheck in a GUI app ([cd63a166](https://github.com/w3c/epubcheck/commit/cd63a166)), closes #665
49
+ * fix incorrect warning `ACC_011` ([5e6a69af](https://github.com/w3c/epubcheck/commit/5e6a69af)), closes #680
50
+ * make the `type` attribute optional on SVG `style` elements ([275f6b6a](https://github.com/w3c/epubcheck/commit/275f6b6a)), closes #688
51
+ * exit with error when directory is not found in expanded mode ([e42d189c](https://github.com/w3c/epubcheck/commit/e42d189c)), closes #525
52
+ * fix a `NullPointerException` when checking an empty meta rendition element in OPF ([42d75297](https://github.com/w3c/epubcheck/commit/42d75297)), closes #727
53
+ * fix `DefaultReportImpl` to avoid duplicate path info in message locations ([9321355b](https://github.com/w3c/epubcheck/commit/9321355b)), closes #729
54
+ * fix broken `OPF_060` and `OPF_061` message format ([9f0e7d12](https://github.com/w3c/epubcheck/commit/9f0e7d12)), closes #658
55
+ * fix broken `OPF_060` and `OPF_061` checks for duplicate ZIP entries ([05e96f40](https://github.com/w3c/epubcheck/commit/05e96f40)), closes #728
56
+
57
+ ### Features
58
+
59
+ * allow the configuration of EPUBCheck’s locale ([9b249956](https://github.com/w3c/epubcheck/commit/9b249956)), closes #650, #498
60
+ * report invalid `dc:identifier` UUIDs validation (as `WARNING`) ([48800a04](https://github.com/w3c/epubcheck/commit/48800a04)), closes #853
61
+ * change `--version` and `-version` command line options to output EPUBCheck version ([e498c61d](https://github.com/w3c/epubcheck/commit/e498c61d)), closes #743
62
+ * check files with extensions other than `.epub` ([1b67e046](https://github.com/w3c/epubcheck/commit/1b67e046)), closes #490
63
+ * report `file://` URL as `INFO` ([8f7a2b7d](https://github.com/w3c/epubcheck/commit/8f7a2b7d)), closes #289
64
+ * improve messages for `OPF-058` and `OPF-059` ([5e33645e](https://github.com/w3c/epubcheck/commit/5e33645e)), closes #804
65
+ * enable `NCX_001` check also for EPUB 3 when an NCX file is present ([9715c352](https://github.com/w3c/epubcheck/commit/9715c352))
66
+ * report non-matching identifiers in OPF and NCX as an error again ([515682dc](https://github.com/w3c/epubcheck/commit/515682dc))
67
+ * improved css font size validation ([25c0b372](https://github.com/w3c/epubcheck/commit/25c0b372)), closes #529
68
+ * issue a `WARNING` when landmarks anchors are not unique ([557308ef](https://github.com/w3c/epubcheck/commit/557308ef)), closes #493
69
+ * issue a `WARNING` when guide/reference elements are not unique ([25f28c01](https://github.com/w3c/epubcheck/commit/25f28c01)), closes #493
70
+ * partial update of OPF 2.0 RelaxNG schema to latest version (changing datatype `text` to `anyURI` for `href` attributes) ([251aa936](https://github.com/w3c/epubcheck/commit/251aa936)), closes #725
71
+ * display error/warning count in EPUBCheck results ([b7babedf](https://github.com/w3c/epubcheck/commit/b7babedf)), closes #655
72
+ * add file path info in `uri` attributes of the XML report ([c958c117](https://github.com/w3c/epubcheck/commit/c958c117)), closes #540
73
+ * update the XHTML 1.1 RelaxNG schema to latest version ([4c6fb49a](https://github.com/w3c/epubcheck/commit/4c6fb49a))
74
+ * update the OPF20 RNG schema in sync with official schema to validate empty guide elements ([6540b03d](https://github.com/w3c/epubcheck/commit/6540b03d))
75
+ * report an `ERROR` when `@clipBegin` equals `@clipEnd` in SMIL Media Overlays ([00716768](https://github.com/w3c/epubcheck/commit/00716768)), closes #568
76
+ * improve Nav Doc validation ([d32de854](https://github.com/w3c/epubcheck/commit/d32de854)), closes #763, #759
77
+ * update the NCX RelaxNG schema to add fixed list of `pageTarget` type values ([b2c9e939](https://github.com/w3c/epubcheck/commit/b2c9e939)), closes #761
78
+ * improve URL checks ([a44a596b](https://github.com/w3c/epubcheck/commit/a44a596b)), closes #708
79
+ * rephrase messages `RSC-005`, `RSC-016`, `RSC-017` ([5ef44973](https://github.com/w3c/epubcheck/commit/5ef44973))
80
+ * add JHove XSD schema declaration in XML output ([e55039c9](https://github.com/w3c/epubcheck/commit/e55039c9)), closes #736
81
+ * add detailed resource info in `RSC-008` messages ([5f5ef7b7](https://github.com/w3c/epubcheck/commit/5f5ef7b7)), closes #720
82
+ * add detailed resource info in `RSC-007` messages ([71a76ee4](https://github.com/w3c/epubcheck/commit/71a76ee4)), closes #475
83
+
84
+ ### Maintenance
85
+
86
+ * change the project name to 'EPUBCheck' ([dfd7fd27](https://github.com/w3c/epubcheck/commit/dfd7fd27))
87
+ * update the minimum source code compatibility to Java 1.7 ([9b249956](https://github.com/w3c/epubcheck/commit/9b249956))
88
+ * update the Saxon dependency to v9.8 ([bf10f380](https://github.com/w3c/epubcheck/commit/bf10f380))
89
+ * update the Apache `commons-compress` dependency to v1.18 ([e7dfedd8](https://github.com/w3c/epubcheck/commit/e7dfedd8))
90
+ * update the Google Guava dependency to v24.0 ([befd9fc3](https://github.com/w3c/epubcheck/commit/befd9fc3))
91
+ * update the continuous integration build matrix, now testing from Java 7 up to Java 11 ([fb84b23c](https://github.com/w3c/epubcheck/commit/fb84b23c))
92
+ * various translation updates ([39a9a093](https://github.com/w3c/epubcheck/commit/39a9a093), [6e3a8b41](https://github.com/w3c/epubcheck/commit/6e3a8b41))
@@ -0,0 +1,28 @@
1
+ Copyright © 2007 Adobe Systems Incorporated
2
+ Copyright © 2008 IDPF
3
+ Copyright © 2017 W3C (MIT, ERCIM, Keio, Beihang)
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,101 @@
1
+ EPUBCheck
2
+ =========
3
+
4
+ This folder contains the distribution of the EPUBCheck project.
5
+
6
+ EPUBCheck is a tool to validate the conformance of EPUB publications against
7
+ the EPUB specifications. EPUBCheck can be run as a standalone command-line tool
8
+ or used as a Java library.
9
+
10
+ EPUBCheck is open source software, maintained by the DAISY Consortium on behalf
11
+ of the W3C.
12
+
13
+ EPUBCheck project home: https://github.com/w3c/epubcheck
14
+
15
+
16
+ RUNNING
17
+ -------
18
+
19
+ To run the tool you need a Java runtime (1.7 or above).
20
+ Any Operating System should do.
21
+
22
+ Run it from the command line:
23
+
24
+ > java -jar epubcheck.jar file.epub
25
+
26
+ All detected errors are simply printed to the standard error stream.
27
+
28
+ Print the commandline help with the --help argument:
29
+
30
+ > java -jar epubcheck.jar --help
31
+
32
+
33
+ USING AS A LIBRARY
34
+ ------------------
35
+
36
+ You can also use EPUBCheck as a library in your Java application. EPUBCheck
37
+ public interfaces can be found in the `com.adobe.epubcheck.api` package.
38
+ EPUBCheck class can be used to instantiate a validation engine. Use one of its
39
+ constructors and then call validate() method. Report is an interface that you
40
+ can implement to get a list of the errors and warnings reported by the
41
+ validation engine (instead of the error list being printed out).
42
+
43
+
44
+ LICENSING
45
+ ---------
46
+
47
+ EPUBCheck is made available under the terms of the 3-Clause BSD License, a
48
+ copy of which is available in the file LICENSE.txt.
49
+
50
+ The list of licenses of third-party software components is detailed in the
51
+ file THIRD-PARTY.txt
52
+
53
+
54
+ AUTHORS / CONTRIBUTORS
55
+ ----------------------
56
+
57
+ This distribution of EPUBCheck was made by the DAISY Consortium, for the W3C.
58
+
59
+ Previous contributors include:
60
+
61
+ - Alberto Pettarin
62
+ - Alexander Walters
63
+ - Andrew Neitsch
64
+ - Arwen Pond
65
+ - Bogdan Iordache
66
+ - Dave Cramer
67
+ - dilbirligi
68
+ - Emiliano Molina
69
+ - Francisco Sanchez
70
+ - Garth Conboy
71
+ - George Bina
72
+ - Ionut-Maxim Margelatu
73
+ - Jessica Hekman
74
+ - Jostein Austvik Jacobsen
75
+ - Liza Daly
76
+ - Markus Gylling
77
+ - Martin Kraetke
78
+ - Masayoshi Takahashi
79
+ - Matt Garrish
80
+ - Merijn de Haen
81
+ - MURATA Makoto
82
+ - Paul Norton
83
+ - Peter Sorotokin
84
+ - Piotr Kula
85
+ - Romain Deltour
86
+ - Satoshi KOJIMA
87
+ - Stephan Kreutzer
88
+ - Steve Antoch
89
+ - Thiago de Oliveira Pereira
90
+ - Thomas Ledoux
91
+ - Tobias Fischer
92
+ - Tomohiko Hayashi
93
+ - Tzviya Siegman
94
+ - Vincent Gros
95
+ - Woongyoung Park
96
+
97
+
98
+ Most of the EPUBCheck functionality comes from the schema validation tool Jing
99
+ and schemas that were developed by IDPF and DAISY. Initial EPUBCheck development
100
+ was largely done at Adobe Systems. EPUBCheck 4.0 was largely developed by
101
+ DAISY and Barnes & Noble.
@@ -0,0 +1,60 @@
1
+ Licenses of third-party dependencies
2
+ ------------------------------------
3
+
4
+ FindBugs-jsr305, 1.3.9
5
+ The Apache Software License, Version 2.0
6
+
7
+ error-prone annotations, 2.1.3
8
+ Apache 2.0
9
+
10
+ Guava: Google Core Libraries for Java, 24.0-android
11
+ The Apache Software License, Version 2.0
12
+
13
+ J2ObjC Annotations, 1.1
14
+ The Apache Software License, Version 2.0
15
+
16
+ TwelveMonkeys :: Common :: Image, 3.4.1
17
+ The BSD License
18
+
19
+ TwelveMonkeys :: Common :: IO, 3.4.1
20
+ The BSD License
21
+
22
+ TwelveMonkeys :: Common :: Language support, 3.4.1
23
+ The BSD License
24
+
25
+ TwelveMonkeys :: ImageIO :: Core, 3.4.1
26
+ The BSD License
27
+
28
+ TwelveMonkeys :: ImageIO :: JPEG plugin, 3.4.1
29
+ The BSD License
30
+
31
+ TwelveMonkeys :: ImageIO :: Metadata, 3.4.1
32
+ The BSD License
33
+
34
+ Saxon-HE, 9.8.0-8
35
+ Mozilla Public License Version 2.0
36
+
37
+ Apache Commons Compress, 1.18
38
+ Apache License, Version 2.0
39
+
40
+ Checker Qual, 2.0.0
41
+ GNU General Public License, version 2 (GPL2), with the classpath exception
42
+ The MIT License
43
+
44
+ Jackson, 1.9.12
45
+ The Apache Software License, Version 2.0
46
+
47
+ Data Mapper for Jackson, 1.9.12
48
+ The Apache Software License, Version 2.0
49
+
50
+ Animal Sniffer Annotations, 1.14
51
+ MIT license
52
+
53
+ Jing, 20120724.0.0
54
+ New BSD License
55
+
56
+ Simple API for CSS, 1.3
57
+ The W3C Software License
58
+
59
+
60
+ Copies of the licenses are provided in the 'licenses' directory.
@@ -32,9 +32,9 @@ RSpec.configure do |config|
32
32
  end
33
33
 
34
34
  def epubcheck(epubname)
35
- jar = File.join(File.dirname(__FILE__), 'fixtures/epubcheck-4.0.1/epubcheck.jar')
35
+ jar = File.join(File.dirname(__FILE__), 'fixtures/epubcheck-4.1.1/epubcheck.jar')
36
36
  stdout = capture(:stdout) do
37
- puts %x(java -Duser.language=en -jar #{jar} #{epubname})
37
+ puts %x(java -Duser.language=en -jar #{jar} #{epubname} 2>&1)
38
38
  end
39
39
  expect(stdout).to include("No errors or warnings detected.")
40
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gepub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - KOJIMA Satoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-15 00:00:00.000000000 Z
11
+ date: 2019-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -130,27 +130,33 @@ files:
130
130
  - spec/fixtures/builder/text/localresource.conf
131
131
  - spec/fixtures/builder/text/memo.txt
132
132
  - spec/fixtures/builder/text/nav.xhtml
133
- - spec/fixtures/epubcheck-4.0.1/COPYING.txt
134
- - spec/fixtures/epubcheck-4.0.1/README.txt
135
- - spec/fixtures/epubcheck-4.0.1/THIRD-PARTY.txt
136
- - spec/fixtures/epubcheck-4.0.1/epubcheck.jar
137
- - spec/fixtures/epubcheck-4.0.1/lib/Saxon-HE-9.5.1-5.jar
138
- - spec/fixtures/epubcheck-4.0.1/lib/common-image-3.1.2.jar
139
- - spec/fixtures/epubcheck-4.0.1/lib/common-io-3.1.2.jar
140
- - spec/fixtures/epubcheck-4.0.1/lib/common-lang-3.1.2.jar
141
- - spec/fixtures/epubcheck-4.0.1/lib/commons-compress-1.5.jar
142
- - spec/fixtures/epubcheck-4.0.1/lib/guava-14.0.1.jar
143
- - spec/fixtures/epubcheck-4.0.1/lib/imageio-core-3.1.2.jar
144
- - spec/fixtures/epubcheck-4.0.1/lib/imageio-jpeg-3.1.2.jar
145
- - spec/fixtures/epubcheck-4.0.1/lib/imageio-metadata-3.1.2.jar
146
- - spec/fixtures/epubcheck-4.0.1/lib/jackson-core-asl-1.9.12.jar
147
- - spec/fixtures/epubcheck-4.0.1/lib/jackson-mapper-asl-1.9.12.jar
148
- - spec/fixtures/epubcheck-4.0.1/lib/jing-20120724.0.0.jar
149
- - spec/fixtures/epubcheck-4.0.1/lib/sac-1.3.jar
150
- - spec/fixtures/epubcheck-4.0.1/licenses/Apache-2.0.txt
151
- - spec/fixtures/epubcheck-4.0.1/licenses/BSD-3-Clause.txt
152
- - spec/fixtures/epubcheck-4.0.1/licenses/MPL-1.0.txt
153
- - spec/fixtures/epubcheck-4.0.1/licenses/W3C.txt
133
+ - spec/fixtures/epubcheck-4.1.1/CHANGELOG.txt
134
+ - spec/fixtures/epubcheck-4.1.1/LICENSE.txt
135
+ - spec/fixtures/epubcheck-4.1.1/README.txt
136
+ - spec/fixtures/epubcheck-4.1.1/THIRD-PARTY.txt
137
+ - spec/fixtures/epubcheck-4.1.1/epubcheck.jar
138
+ - spec/fixtures/epubcheck-4.1.1/lib/Saxon-HE-9.8.0-8.jar
139
+ - spec/fixtures/epubcheck-4.1.1/lib/animal-sniffer-annotations-1.14.jar
140
+ - spec/fixtures/epubcheck-4.1.1/lib/checker-compat-qual-2.0.0.jar
141
+ - spec/fixtures/epubcheck-4.1.1/lib/common-image-3.4.1.jar
142
+ - spec/fixtures/epubcheck-4.1.1/lib/common-io-3.4.1.jar
143
+ - spec/fixtures/epubcheck-4.1.1/lib/common-lang-3.4.1.jar
144
+ - spec/fixtures/epubcheck-4.1.1/lib/commons-compress-1.18.jar
145
+ - spec/fixtures/epubcheck-4.1.1/lib/error_prone_annotations-2.1.3.jar
146
+ - spec/fixtures/epubcheck-4.1.1/lib/guava-24.0-android.jar
147
+ - spec/fixtures/epubcheck-4.1.1/lib/imageio-core-3.4.1.jar
148
+ - spec/fixtures/epubcheck-4.1.1/lib/imageio-jpeg-3.4.1.jar
149
+ - spec/fixtures/epubcheck-4.1.1/lib/imageio-metadata-3.4.1.jar
150
+ - spec/fixtures/epubcheck-4.1.1/lib/j2objc-annotations-1.1.jar
151
+ - spec/fixtures/epubcheck-4.1.1/lib/jackson-core-asl-1.9.12.jar
152
+ - spec/fixtures/epubcheck-4.1.1/lib/jackson-mapper-asl-1.9.12.jar
153
+ - spec/fixtures/epubcheck-4.1.1/lib/jing-20120724.0.0.jar
154
+ - spec/fixtures/epubcheck-4.1.1/lib/jsr305-1.3.9.jar
155
+ - spec/fixtures/epubcheck-4.1.1/lib/sac-1.3.jar
156
+ - spec/fixtures/epubcheck-4.1.1/licenses/Apache-2.0.txt
157
+ - spec/fixtures/epubcheck-4.1.1/licenses/BSD-3-Clause.txt
158
+ - spec/fixtures/epubcheck-4.1.1/licenses/MPL-1.0.txt
159
+ - spec/fixtures/epubcheck-4.1.1/licenses/W3C.txt
154
160
  - spec/fixtures/testdata/0.html
155
161
  - spec/fixtures/testdata/1.html
156
162
  - spec/fixtures/testdata/image1.jpg
@@ -201,27 +207,33 @@ test_files:
201
207
  - spec/fixtures/builder/text/localresource.conf
202
208
  - spec/fixtures/builder/text/memo.txt
203
209
  - spec/fixtures/builder/text/nav.xhtml
204
- - spec/fixtures/epubcheck-4.0.1/COPYING.txt
205
- - spec/fixtures/epubcheck-4.0.1/README.txt
206
- - spec/fixtures/epubcheck-4.0.1/THIRD-PARTY.txt
207
- - spec/fixtures/epubcheck-4.0.1/epubcheck.jar
208
- - spec/fixtures/epubcheck-4.0.1/lib/Saxon-HE-9.5.1-5.jar
209
- - spec/fixtures/epubcheck-4.0.1/lib/common-image-3.1.2.jar
210
- - spec/fixtures/epubcheck-4.0.1/lib/common-io-3.1.2.jar
211
- - spec/fixtures/epubcheck-4.0.1/lib/common-lang-3.1.2.jar
212
- - spec/fixtures/epubcheck-4.0.1/lib/commons-compress-1.5.jar
213
- - spec/fixtures/epubcheck-4.0.1/lib/guava-14.0.1.jar
214
- - spec/fixtures/epubcheck-4.0.1/lib/imageio-core-3.1.2.jar
215
- - spec/fixtures/epubcheck-4.0.1/lib/imageio-jpeg-3.1.2.jar
216
- - spec/fixtures/epubcheck-4.0.1/lib/imageio-metadata-3.1.2.jar
217
- - spec/fixtures/epubcheck-4.0.1/lib/jackson-core-asl-1.9.12.jar
218
- - spec/fixtures/epubcheck-4.0.1/lib/jackson-mapper-asl-1.9.12.jar
219
- - spec/fixtures/epubcheck-4.0.1/lib/jing-20120724.0.0.jar
220
- - spec/fixtures/epubcheck-4.0.1/lib/sac-1.3.jar
221
- - spec/fixtures/epubcheck-4.0.1/licenses/Apache-2.0.txt
222
- - spec/fixtures/epubcheck-4.0.1/licenses/BSD-3-Clause.txt
223
- - spec/fixtures/epubcheck-4.0.1/licenses/MPL-1.0.txt
224
- - spec/fixtures/epubcheck-4.0.1/licenses/W3C.txt
210
+ - spec/fixtures/epubcheck-4.1.1/CHANGELOG.txt
211
+ - spec/fixtures/epubcheck-4.1.1/LICENSE.txt
212
+ - spec/fixtures/epubcheck-4.1.1/README.txt
213
+ - spec/fixtures/epubcheck-4.1.1/THIRD-PARTY.txt
214
+ - spec/fixtures/epubcheck-4.1.1/epubcheck.jar
215
+ - spec/fixtures/epubcheck-4.1.1/lib/Saxon-HE-9.8.0-8.jar
216
+ - spec/fixtures/epubcheck-4.1.1/lib/animal-sniffer-annotations-1.14.jar
217
+ - spec/fixtures/epubcheck-4.1.1/lib/checker-compat-qual-2.0.0.jar
218
+ - spec/fixtures/epubcheck-4.1.1/lib/common-image-3.4.1.jar
219
+ - spec/fixtures/epubcheck-4.1.1/lib/common-io-3.4.1.jar
220
+ - spec/fixtures/epubcheck-4.1.1/lib/common-lang-3.4.1.jar
221
+ - spec/fixtures/epubcheck-4.1.1/lib/commons-compress-1.18.jar
222
+ - spec/fixtures/epubcheck-4.1.1/lib/error_prone_annotations-2.1.3.jar
223
+ - spec/fixtures/epubcheck-4.1.1/lib/guava-24.0-android.jar
224
+ - spec/fixtures/epubcheck-4.1.1/lib/imageio-core-3.4.1.jar
225
+ - spec/fixtures/epubcheck-4.1.1/lib/imageio-jpeg-3.4.1.jar
226
+ - spec/fixtures/epubcheck-4.1.1/lib/imageio-metadata-3.4.1.jar
227
+ - spec/fixtures/epubcheck-4.1.1/lib/j2objc-annotations-1.1.jar
228
+ - spec/fixtures/epubcheck-4.1.1/lib/jackson-core-asl-1.9.12.jar
229
+ - spec/fixtures/epubcheck-4.1.1/lib/jackson-mapper-asl-1.9.12.jar
230
+ - spec/fixtures/epubcheck-4.1.1/lib/jing-20120724.0.0.jar
231
+ - spec/fixtures/epubcheck-4.1.1/lib/jsr305-1.3.9.jar
232
+ - spec/fixtures/epubcheck-4.1.1/lib/sac-1.3.jar
233
+ - spec/fixtures/epubcheck-4.1.1/licenses/Apache-2.0.txt
234
+ - spec/fixtures/epubcheck-4.1.1/licenses/BSD-3-Clause.txt
235
+ - spec/fixtures/epubcheck-4.1.1/licenses/MPL-1.0.txt
236
+ - spec/fixtures/epubcheck-4.1.1/licenses/W3C.txt
225
237
  - spec/fixtures/testdata/0.html
226
238
  - spec/fixtures/testdata/1.html
227
239
  - spec/fixtures/testdata/image1.jpg
@@ -1,19 +0,0 @@
1
- Copyright (c) 2007 Adobe Systems Incorporated
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of
4
- this software and associated documentation files (the "Software"), to deal in
5
- the Software without restriction, including without limitation the rights to
6
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7
- the Software, and to permit persons to whom the Software is furnished to do so,
8
- subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19
-
@@ -1,60 +0,0 @@
1
- This folder contains the distribution of epubcheck project.
2
-
3
- EpubCheck is a tool to validate IDPF Epub files. It can detect many
4
- types of errors in Epub. OCF container structure, OPF and OPS mark-up,
5
- and internal reference consistency are checked. EpubCheck can be run
6
- as a standalone command-line tool, installed as a web application or
7
- used as a library.
8
-
9
- EpubCheck project home: https://github.com/idpf/epubcheck
10
-
11
-
12
- RUNNING
13
-
14
- To run the tool you need Java Runtime (1.6 or above). Any OS should do. Run
15
- it from the command line:
16
-
17
- java -jar epubcheck.jar file.epub
18
-
19
- All detected errors are simply printed to stderr.
20
-
21
-
22
- USING AS A LIBRARY
23
-
24
- You can also use EpubCheck as a library in your Java application. EpubCheck
25
- public interfaces can be found in com.adobe.epubcheck.api package. EpubCheck
26
- class can be used to instantiate a validation engine. Use one of its
27
- constructors and then call validate() method. Report is an interface that
28
- you can implement to get a list of the errors and warnings reported by the
29
- validation engine (instead of the error list being printed out).
30
-
31
-
32
- LICENSING
33
-
34
- See COPYING.txt and THIRD-PARTY.txt
35
-
36
-
37
- AUTHORS / CONTRIBUTORS
38
-
39
- Peter Sorotokin
40
- Garth Conboy
41
- Markus Gylling
42
- Piotr Kula
43
- Paul Norton
44
- Jessica Hekman
45
- Liza Daly
46
- George Bina
47
- Bogdan Iordache
48
- Ionut-Maxim Margelatu
49
- Romain Deltour
50
- Thomas Ledoux
51
- Tobias Fischer
52
- Steve Antoch
53
- Arwen Pond
54
- Masayoshi Takahashi
55
- Satoshi KOJIMA
56
-
57
-
58
- Most of the EpubCheck functionality comes from the schema validation tool Jing
59
- and schemas that were developed by IDPF and DAISY. EpubCheck development was
60
- largely done at Adobe Systems.
@@ -1,44 +0,0 @@
1
- Licenses of third-party dependencies
2
- ------------------------------------
3
-
4
- Guava: Google Core Libraries for Java, 14.0.1
5
- The Apache Software License, Version 2.0
6
-
7
- TwelveMonkeys :: Common :: Image, 3.1.2
8
- New BSD License
9
-
10
- TwelveMonkeys :: Common :: IO, 3.1.2
11
- New BSD License
12
-
13
- TwelveMonkeys :: Common :: Language support, 3.1.2
14
- New BSD License
15
-
16
- TwelveMonkeys :: ImageIO :: Core, 3.1.2
17
- New BSD License
18
-
19
- TwelveMonkeys :: ImageIO :: JPEG plugin, 3.1.2
20
- New BSD License
21
-
22
- TwelveMonkeys :: ImageIO :: Metadata, 3.1.2
23
- New BSD License
24
-
25
- Saxon-HE, 9.5.1-5
26
- Mozilla Public License Version 2.0
27
-
28
- Commons Compress, 1.5
29
- The Apache Software License, Version 2.0
30
-
31
- Jackson, 1.9.12
32
- The Apache Software License, Version 2.0
33
-
34
- Data Mapper for Jackson, 1.9.12
35
- The Apache Software License, Version 2.0
36
-
37
- Jing, 20120724.0.0
38
- New BSD License
39
-
40
- Simple API for CSS, 1.3
41
- The W3C Software License
42
-
43
-
44
- Copies of the licenses are provided in the 'licenses' directory.