epub-parser 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/MIT-LICENSE +7 -0
- data/README +7 -0
- data/doc/EPUB.html +143 -0
- data/doc/EPUB/Book.html +616 -0
- data/doc/EPUB/Constants.html +130 -0
- data/doc/EPUB/Constants/Type.html +118 -0
- data/doc/EPUB/ContentDocument.html +108 -0
- data/doc/EPUB/ContentDocument/Navigation.html +673 -0
- data/doc/EPUB/ContentDocument/Navigation/Nav.html +563 -0
- data/doc/EPUB/ContentDocument/Navigation/Nav/Ol.html +285 -0
- data/doc/EPUB/ContentDocument/Navigation/Nav/Ol/A.html +354 -0
- data/doc/EPUB/ContentDocument/Navigation/Nav/Ol/Span.html +354 -0
- data/doc/EPUB/OCF.html +135 -0
- data/doc/EPUB/OCF/Container.html +358 -0
- data/doc/EPUB/OCF/Container/Rootfile.html +257 -0
- data/doc/EPUB/OCF/Encryption.html +111 -0
- data/doc/EPUB/OCF/Manifest.html +111 -0
- data/doc/EPUB/OCF/Metadata.html +111 -0
- data/doc/EPUB/OCF/Rights.html +111 -0
- data/doc/EPUB/OCF/Signatures.html +111 -0
- data/doc/EPUB/Parser.html +448 -0
- data/doc/EPUB/Parser/ContentDocument.html +531 -0
- data/doc/EPUB/Parser/OCF.html +635 -0
- data/doc/EPUB/Parser/Publication.html +640 -0
- data/doc/EPUB/Publication.html +108 -0
- data/doc/EPUB/Publication/Package.html +751 -0
- data/doc/EPUB/Publication/Package/Bindings.html +267 -0
- data/doc/EPUB/Publication/Package/Bindings/MediaType.html +257 -0
- data/doc/EPUB/Publication/Package/Guide.html +111 -0
- data/doc/EPUB/Publication/Package/Manifest.html +578 -0
- data/doc/EPUB/Publication/Package/Manifest/Item.html +669 -0
- data/doc/EPUB/Publication/Package/Metadata.html +257 -0
- data/doc/EPUB/Publication/Package/Spine.html +755 -0
- data/doc/EPUB/Publication/Package/Spine/Itemref.html +558 -0
- data/doc/EPUB/Type.html +118 -0
- data/doc/_index.html +422 -0
- data/doc/class_list.html +47 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +55 -0
- data/doc/css/style.css +322 -0
- data/doc/file.README.html +76 -0
- data/doc/file_list.html +49 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +76 -0
- data/doc/js/app.js +205 -0
- data/doc/js/full_list.js +167 -0
- data/doc/js/jquery.js +16 -0
- data/doc/method_list.html +902 -0
- data/doc/top-level-namespace.html +103 -0
- data/epub-parser.gemspec +2 -0
- data/lib/epub/constants.rb +20 -0
- data/lib/epub/parser.rb +1 -0
- data/lib/epub/parser/content_document.rb +4 -3
- data/lib/epub/parser/ocf.rb +2 -1
- data/lib/epub/parser/publication.rb +5 -5
- data/lib/epub/parser/version.rb +1 -1
- data/test/fixtures/book.epub +0 -0
- data/test/test_parser_content_document.rb +18 -0
- data/test/test_parser_ocf.rb +2 -2
- data/test/test_parser_publication.rb +21 -3
- metadata +87 -30
- data/lib/epub/type.rb +0 -7
- data/test/publication/package/test_bindings.rb +0 -15
- data/test/publication/package/test_guide.rb +0 -14
- data/test/publication/package/test_manifest.rb +0 -19
- data/test/publication/package/test_metadata.rb +0 -14
- data/test/publication/package/test_spine.rb +0 -15
data/lib/epub/type.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
require File.expand_path '../../helper', File.dirname(__FILE__)
|
2
|
-
require 'epub/publication/package/bindings'
|
3
|
-
|
4
|
-
include Publication
|
5
|
-
|
6
|
-
class TestBindings < Test::Unit::TestCase
|
7
|
-
def setup
|
8
|
-
@bindings = Package::Bindings.new
|
9
|
-
@media_type = Package::Bindings::MediaType.new
|
10
|
-
end
|
11
|
-
|
12
|
-
def test_example
|
13
|
-
assert false
|
14
|
-
end
|
15
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
require File.expand_path '../../helper', File.dirname(__FILE__)
|
2
|
-
require 'epub/publication/package/guide'
|
3
|
-
|
4
|
-
include Publication
|
5
|
-
|
6
|
-
class TestGuide < Test::Unit::TestCase
|
7
|
-
def setup
|
8
|
-
@spine = Package::Guide.new
|
9
|
-
end
|
10
|
-
|
11
|
-
def test_example
|
12
|
-
assert false
|
13
|
-
end
|
14
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
require File.expand_path '../../helper', File.dirname(__FILE__)
|
2
|
-
require 'epub/publication/package/manifest'
|
3
|
-
|
4
|
-
include Publication
|
5
|
-
|
6
|
-
class TestManifest < Test::Unit::TestCase
|
7
|
-
def setup
|
8
|
-
@manifest = Package::Manifest.new
|
9
|
-
@item = Package::Manifest::Item.new
|
10
|
-
end
|
11
|
-
|
12
|
-
def test_nav_returns_item_with_nav
|
13
|
-
@nav = Package::Manifest::Item.new
|
14
|
-
@nav.properties = ['nav']
|
15
|
-
@manifest << @nav
|
16
|
-
|
17
|
-
assert_equal @nav, @manifest.nav
|
18
|
-
end
|
19
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
require File.expand_path '../../helper', File.dirname(__FILE__)
|
2
|
-
require 'epub/publication/package/metadata'
|
3
|
-
|
4
|
-
class TestMetadata < Test::Unit::TestCase
|
5
|
-
def setup
|
6
|
-
@metadata = Publication::Package::Metadata.new
|
7
|
-
end
|
8
|
-
|
9
|
-
def test_attributes
|
10
|
-
assert @metadata.respond_to? :contributers=
|
11
|
-
assert @metadata.respond_to? :dc_contributers=
|
12
|
-
assert @metadata.respond_to? :dc_contributer
|
13
|
-
end
|
14
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require File.expand_path '../../helper', File.dirname(__FILE__)
|
2
|
-
require 'epub/publication/package/spine'
|
3
|
-
|
4
|
-
include Publication
|
5
|
-
|
6
|
-
class TestSpine < Test::Unit::TestCase
|
7
|
-
def setup
|
8
|
-
@spine = Package::Spine.new
|
9
|
-
@itemref1 = Package::Spine::Itemref.new
|
10
|
-
end
|
11
|
-
|
12
|
-
def test_example
|
13
|
-
assert false
|
14
|
-
end
|
15
|
-
end
|