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.
Files changed (68) hide show
  1. data/.gitignore +4 -0
  2. data/MIT-LICENSE +7 -0
  3. data/README +7 -0
  4. data/doc/EPUB.html +143 -0
  5. data/doc/EPUB/Book.html +616 -0
  6. data/doc/EPUB/Constants.html +130 -0
  7. data/doc/EPUB/Constants/Type.html +118 -0
  8. data/doc/EPUB/ContentDocument.html +108 -0
  9. data/doc/EPUB/ContentDocument/Navigation.html +673 -0
  10. data/doc/EPUB/ContentDocument/Navigation/Nav.html +563 -0
  11. data/doc/EPUB/ContentDocument/Navigation/Nav/Ol.html +285 -0
  12. data/doc/EPUB/ContentDocument/Navigation/Nav/Ol/A.html +354 -0
  13. data/doc/EPUB/ContentDocument/Navigation/Nav/Ol/Span.html +354 -0
  14. data/doc/EPUB/OCF.html +135 -0
  15. data/doc/EPUB/OCF/Container.html +358 -0
  16. data/doc/EPUB/OCF/Container/Rootfile.html +257 -0
  17. data/doc/EPUB/OCF/Encryption.html +111 -0
  18. data/doc/EPUB/OCF/Manifest.html +111 -0
  19. data/doc/EPUB/OCF/Metadata.html +111 -0
  20. data/doc/EPUB/OCF/Rights.html +111 -0
  21. data/doc/EPUB/OCF/Signatures.html +111 -0
  22. data/doc/EPUB/Parser.html +448 -0
  23. data/doc/EPUB/Parser/ContentDocument.html +531 -0
  24. data/doc/EPUB/Parser/OCF.html +635 -0
  25. data/doc/EPUB/Parser/Publication.html +640 -0
  26. data/doc/EPUB/Publication.html +108 -0
  27. data/doc/EPUB/Publication/Package.html +751 -0
  28. data/doc/EPUB/Publication/Package/Bindings.html +267 -0
  29. data/doc/EPUB/Publication/Package/Bindings/MediaType.html +257 -0
  30. data/doc/EPUB/Publication/Package/Guide.html +111 -0
  31. data/doc/EPUB/Publication/Package/Manifest.html +578 -0
  32. data/doc/EPUB/Publication/Package/Manifest/Item.html +669 -0
  33. data/doc/EPUB/Publication/Package/Metadata.html +257 -0
  34. data/doc/EPUB/Publication/Package/Spine.html +755 -0
  35. data/doc/EPUB/Publication/Package/Spine/Itemref.html +558 -0
  36. data/doc/EPUB/Type.html +118 -0
  37. data/doc/_index.html +422 -0
  38. data/doc/class_list.html +47 -0
  39. data/doc/css/common.css +1 -0
  40. data/doc/css/full_list.css +55 -0
  41. data/doc/css/style.css +322 -0
  42. data/doc/file.README.html +76 -0
  43. data/doc/file_list.html +49 -0
  44. data/doc/frames.html +13 -0
  45. data/doc/index.html +76 -0
  46. data/doc/js/app.js +205 -0
  47. data/doc/js/full_list.js +167 -0
  48. data/doc/js/jquery.js +16 -0
  49. data/doc/method_list.html +902 -0
  50. data/doc/top-level-namespace.html +103 -0
  51. data/epub-parser.gemspec +2 -0
  52. data/lib/epub/constants.rb +20 -0
  53. data/lib/epub/parser.rb +1 -0
  54. data/lib/epub/parser/content_document.rb +4 -3
  55. data/lib/epub/parser/ocf.rb +2 -1
  56. data/lib/epub/parser/publication.rb +5 -5
  57. data/lib/epub/parser/version.rb +1 -1
  58. data/test/fixtures/book.epub +0 -0
  59. data/test/test_parser_content_document.rb +18 -0
  60. data/test/test_parser_ocf.rb +2 -2
  61. data/test/test_parser_publication.rb +21 -3
  62. metadata +87 -30
  63. data/lib/epub/type.rb +0 -7
  64. data/test/publication/package/test_bindings.rb +0 -15
  65. data/test/publication/package/test_guide.rb +0 -14
  66. data/test/publication/package/test_manifest.rb +0 -19
  67. data/test/publication/package/test_metadata.rb +0 -14
  68. data/test/publication/package/test_spine.rb +0 -15
@@ -0,0 +1,103 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Top Level Namespace
8
+
9
+ &mdash; Documentation by YARD 0.7.4
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="_index.html">Index</a> &raquo;
37
+
38
+
39
+ <span class="title">Top Level Namespace</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Top Level Namespace
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+ </dl>
75
+ <div class="clear"></div>
76
+
77
+ <h2>Defined Under Namespace</h2>
78
+ <p class="children">
79
+
80
+
81
+ <strong class="modules">Modules:</strong> <span class='object_link'><a href="EPUB.html" title="EPUB (module)">EPUB</a></span>
82
+
83
+
84
+
85
+
86
+ </p>
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+ </div>
95
+
96
+ <div id="footer">
97
+ Generated on Fri Dec 30 08:49:45 2011 by
98
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
99
+ 0.7.4 (ruby-1.9.3).
100
+ </div>
101
+
102
+ </body>
103
+ </html>
@@ -10,6 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.homepage = "https://gitorious.org/epub/parser"
11
11
  s.summary = %q{EPUB 3 Parser}
12
12
  s.description = %q{Parse EPUB 3 book loosely}
13
+ s.license = 'MIT'
13
14
 
14
15
  # s.rubyforge_project = "epub-parser"
15
16
 
@@ -26,6 +27,7 @@ Gem::Specification.new do |s|
26
27
  s.add_development_dependency 'simplecov'
27
28
  s.add_development_dependency 'thin'
28
29
  s.add_development_dependency 'yard'
30
+ s.add_development_dependency 'epzip'
29
31
 
30
32
  s.add_runtime_dependency 'enumerabler'
31
33
  s.add_runtime_dependency 'nokogiri'
@@ -0,0 +1,20 @@
1
+ module EPUB
2
+ module Constants
3
+ NAMESPACES = {
4
+ 'dc' => 'http://purl.org/dc/elements/1.1/',
5
+ 'container' => 'urn:oasis:names:tc:opendocument:xmlns:container',
6
+ 'opf' => 'http://www.idpf.org/2007/opf',
7
+ 'xhtml' => 'http://www.w3.org/1999/xhtml',
8
+ 'epub' => 'http://www.idpf.org/2007/ops',
9
+ 'm' => 'http://www.w3.org/1998/Math/MathML',
10
+ 'svg' => 'http://www.w3.org/2000/svg'
11
+ }
12
+ module Type
13
+ TOC = 'toc'
14
+ PAGE_LIST = 'page_list'
15
+ LANDMARKS = 'landmarks'
16
+ end
17
+ end
18
+
19
+ include Constants
20
+ end
@@ -1,4 +1,5 @@
1
1
  require 'epub/book'
2
+ require 'epub/constants'
2
3
  require 'epub/parser/version'
3
4
  require 'epub/parser/ocf'
4
5
  require 'epub/parser/publication'
@@ -1,5 +1,5 @@
1
1
  require 'epub/content_document'
2
- require 'epub/parser'
2
+ require 'epub/constants'
3
3
  require 'nokogiri'
4
4
 
5
5
  module EPUB
@@ -22,7 +22,7 @@ module EPUB
22
22
  # @param [Nokogiri::HTML::Document] document HTML document or element including nav
23
23
  # @return [Array<EPUB::ContentDocument::Navigation::Nav>] navs array of Nav object
24
24
  def parse_navigations(document)
25
- navs = document.search('/xhtml:html/xhtml:body//xhtml:nav', Parser::NAMESPACES).collect {|elem| parse_navigation elem}
25
+ navs = document.search('/xhtml:html/xhtml:body//xhtml:nav', EPUB::NAMESPACES).collect {|elem| parse_navigation elem}
26
26
  end
27
27
 
28
28
  # @param [Nokogiri::XML::Element] nav nav element
@@ -47,8 +47,9 @@ module EPUB
47
47
  # @param [Nokogiri::XML::Element] nav nav element
48
48
  # @return [String] heading heading text
49
49
  def find_heading(element)
50
- heading = element.xpath('./h1|h2|h3|h4|h5|h6|hgroup').first
50
+ heading = element.xpath('./xhtml:h1|xhtml:h2|xhtml:h3|xhtml:h4|xhtml:h5|xhtml:h6|xhtml:hgroup', EPUB::NAMESPACES).first
51
51
 
52
+ return nil if heading.nil?
52
53
  return heading.text unless heading.name == 'hgroup'
53
54
 
54
55
  (heading/'h1' || heading/'h2' || heading/'h3' || heading/'h4' || heading/'h5' || heading/'h6').first.text
@@ -1,3 +1,4 @@
1
+ require 'epub/constants'
1
2
  require 'epub/ocf'
2
3
  require 'nokogiri'
3
4
 
@@ -29,7 +30,7 @@ module EPUB
29
30
  container = EPUB::OCF::Container.new
30
31
  doc = Nokogiri.XML open(File.join @dir, DIRECTORY, CONTAINER_FILE)
31
32
 
32
- doc.xpath('/xmlns:container/xmlns:rootfiles/xmlns:rootfile', doc.namespaces).each do |elem|
33
+ doc.xpath('/container:container/container:rootfiles/container:rootfile', EPUB::NAMESPACES).each do |elem|
33
34
  rootfile = EPUB::OCF::Container::Rootfile.new
34
35
  %w[full-path media-type].each do |attr|
35
36
  rootfile.send(attr.gsub(/-/, '_') + '=', elem[attr])
@@ -1,6 +1,7 @@
1
1
  require 'nokogiri'
2
2
  require 'addressable/uri'
3
3
  require 'epub/publication'
4
+ require 'epub/constants'
4
5
 
5
6
  module EPUB
6
7
  class Parser
@@ -33,16 +34,15 @@ module EPUB
33
34
 
34
35
  def parse_manifest
35
36
  manifest = @package.manifest = EPUB::Publication::Package::Manifest.new
36
- elem = @doc.xpath('/xmlns:package/xmlns:manifest', @doc.namespaces).first
37
+ elem = @doc.xpath('/opf:package/opf:manifest', EPUB::NAMESPACES).first
37
38
  manifest.id = elem['id']
38
39
 
39
40
  fallback_map = {}
40
- elem.xpath('./xmlns:item').each do |elm|
41
+ elem.xpath('./opf:item', EPUB::NAMESPACES).each do |elm|
41
42
  item = EPUB::Publication::Package::Manifest::Item.new
42
43
  %w[ id media-type media-overlay ].each do |attr|
43
44
  item.send "#{attr.gsub(/-/, '_')}=", elm[attr]
44
45
  end
45
- # item.href = Addressable::URI.parse elm['href']
46
46
  item.href = @rootfile.join Addressable::URI.parse(elm['href'])
47
47
  fallback_map[elm['fallback']] = item if elm['fallback']
48
48
  item.properties = elm['properties'] ? elm['properties'].split(' ') : []
@@ -57,12 +57,12 @@ module EPUB
57
57
 
58
58
  def parse_spine
59
59
  spine = @package.spine = EPUB::Publication::Package::Spine.new
60
- elem = @doc.xpath('/xmlns:package/xmlns:spine', @doc.namespaces).first
60
+ elem = @doc.xpath('/opf:package/opf:spine', EPUB::NAMESPACES).first
61
61
  %w[ id toc page-progression-direction ].each do |attr|
62
62
  spine.send("#{attr.gsub(/-/, '_')}=", elem[attr])
63
63
  end
64
64
 
65
- elem.xpath('./xmlns:itemref', @doc.namespaces).each do |elm|
65
+ elem.xpath('./opf:itemref', EPUB::NAMESPACES).each do |elm|
66
66
  itemref = EPUB::Publication::Package::Spine::Itemref.new
67
67
  %w[ idref id ].each do |attr|
68
68
  itemref.send "#{attr}=", elm[attr]
@@ -1,5 +1,5 @@
1
1
  module EPUB
2
2
  class Parser
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
Binary file
@@ -0,0 +1,18 @@
1
+ require File.expand_path('helper', File.dirname(__FILE__))
2
+ require 'epub/parser/content_document'
3
+
4
+ class TestParserContentDocument < Test::Unit::TestCase
5
+ def setup
6
+ @dir = 'test/fixtures/book'
7
+ @parser = Parser::ContentDocument.new @dir
8
+ end
9
+
10
+ def test_parse_navigations
11
+ doc = Nokogiri.XML open("#{@dir}/OPS/nav.xhtml")
12
+ navs = @parser.parse_navigations doc
13
+
14
+ assert_equal 1, navs.length
15
+ assert_equal 'Table of Contents', navs.first.heading
16
+ end
17
+ end
18
+
@@ -7,10 +7,10 @@ class TestParserOCF < Test::Unit::TestCase
7
7
  @parser = Parser::OCF.new 'test/fixtures/book'
8
8
  end
9
9
 
10
- def test_parse_container
10
+ def test_parse_container_can_find_primary_rootfile
11
11
  container = @parser.parse_container
12
12
 
13
- assert_equal 'OPS/ルートファイル.pdf', container.rootfile.full_path
13
+ assert_equal 'OPS/ルートファイル.opf', container.rootfile.full_path
14
14
  end
15
15
 
16
16
  def test_parse
@@ -7,9 +7,27 @@ class TestParserPublication < Test::Unit::TestCase
7
7
  @parser = Parser::Publication.new 'test/fixtures/book/OPS/ルートファイル.opf'
8
8
  end
9
9
 
10
- def test_parse_manifest
11
- manifest = @parser.parse_manifest
10
+ class TestParseManifest < TestParserPublication
11
+ def setup
12
+ super
13
+ @manifest = @parser.parse_manifest
14
+ end
12
15
 
13
- pend
16
+ def test_manifest_has_4_items
17
+ assert_equal 4, @manifest.items.length
18
+ end
19
+
20
+ def test_item_has_full_path_as_href_attribute
21
+ actual = File.expand_path 'fixtures/book/OPS/nav.xhtml', File.dirname(__FILE__)
22
+
23
+ assert_equal actual, @manifest['nav'].href.to_s
24
+ end
25
+
26
+ def test_fallback_attribute_of_item_should_be_item_object
27
+ fallback = @manifest['manifest-item-2'].fallback
28
+
29
+ assert_instance_of Publication::Package::Manifest::Item, fallback
30
+ assert_equal 'manifest-item-fallback', fallback.id
31
+ end
14
32
  end
15
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epub-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-12-29 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubygems-test
16
- requirement: &6158740 !ruby/object:Gem::Requirement
16
+ requirement: &13163480 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *6158740
24
+ version_requirements: *13163480
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &6157760 !ruby/object:Gem::Requirement
27
+ requirement: &13162840 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *6157760
35
+ version_requirements: *13162840
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: pry
38
- requirement: &6156180 !ruby/object:Gem::Requirement
38
+ requirement: &13162140 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *6156180
46
+ version_requirements: *13162140
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: test-unit
49
- requirement: &6153480 !ruby/object:Gem::Requirement
49
+ requirement: &13159480 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '2'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *6153480
57
+ version_requirements: *13159480
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: simplecov
60
- requirement: &6152560 !ruby/object:Gem::Requirement
60
+ requirement: &13224740 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *6152560
68
+ version_requirements: *13224740
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: thin
71
- requirement: &6661820 !ruby/object:Gem::Requirement
71
+ requirement: &13224120 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *6661820
79
+ version_requirements: *13224120
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: yard
82
- requirement: &6660960 !ruby/object:Gem::Requirement
82
+ requirement: &13223480 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,21 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *6660960
90
+ version_requirements: *13223480
91
+ - !ruby/object:Gem::Dependency
92
+ name: epzip
93
+ requirement: &13222740 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: *13222740
91
102
  - !ruby/object:Gem::Dependency
92
103
  name: enumerabler
93
- requirement: &6660140 !ruby/object:Gem::Requirement
104
+ requirement: &13222200 !ruby/object:Gem::Requirement
94
105
  none: false
95
106
  requirements:
96
107
  - - ! '>='
@@ -98,10 +109,10 @@ dependencies:
98
109
  version: '0'
99
110
  type: :runtime
100
111
  prerelease: false
101
- version_requirements: *6660140
112
+ version_requirements: *13222200
102
113
  - !ruby/object:Gem::Dependency
103
114
  name: nokogiri
104
- requirement: &6658180 !ruby/object:Gem::Requirement
115
+ requirement: &13221620 !ruby/object:Gem::Requirement
105
116
  none: false
106
117
  requirements:
107
118
  - - ! '>='
@@ -109,10 +120,10 @@ dependencies:
109
120
  version: '0'
110
121
  type: :runtime
111
122
  prerelease: false
112
- version_requirements: *6658180
123
+ version_requirements: *13221620
113
124
  - !ruby/object:Gem::Dependency
114
125
  name: addressable
115
- requirement: &6656720 !ruby/object:Gem::Requirement
126
+ requirement: &13221000 !ruby/object:Gem::Requirement
116
127
  none: false
117
128
  requirements:
118
129
  - - ! '>='
@@ -120,7 +131,7 @@ dependencies:
120
131
  version: '0'
121
132
  type: :runtime
122
133
  prerelease: false
123
- version_requirements: *6656720
134
+ version_requirements: *13221000
124
135
  description: Parse EPUB 3 book loosely
125
136
  email:
126
137
  - KitaitiMakoto@gmail.com
@@ -131,9 +142,59 @@ files:
131
142
  - .gemtest
132
143
  - .gitignore
133
144
  - Gemfile
145
+ - MIT-LICENSE
146
+ - README
134
147
  - Rakefile
148
+ - doc/EPUB.html
149
+ - doc/EPUB/Book.html
150
+ - doc/EPUB/Constants.html
151
+ - doc/EPUB/Constants/Type.html
152
+ - doc/EPUB/ContentDocument.html
153
+ - doc/EPUB/ContentDocument/Navigation.html
154
+ - doc/EPUB/ContentDocument/Navigation/Nav.html
155
+ - doc/EPUB/ContentDocument/Navigation/Nav/Ol.html
156
+ - doc/EPUB/ContentDocument/Navigation/Nav/Ol/A.html
157
+ - doc/EPUB/ContentDocument/Navigation/Nav/Ol/Span.html
158
+ - doc/EPUB/OCF.html
159
+ - doc/EPUB/OCF/Container.html
160
+ - doc/EPUB/OCF/Container/Rootfile.html
161
+ - doc/EPUB/OCF/Encryption.html
162
+ - doc/EPUB/OCF/Manifest.html
163
+ - doc/EPUB/OCF/Metadata.html
164
+ - doc/EPUB/OCF/Rights.html
165
+ - doc/EPUB/OCF/Signatures.html
166
+ - doc/EPUB/Parser.html
167
+ - doc/EPUB/Parser/ContentDocument.html
168
+ - doc/EPUB/Parser/OCF.html
169
+ - doc/EPUB/Parser/Publication.html
170
+ - doc/EPUB/Publication.html
171
+ - doc/EPUB/Publication/Package.html
172
+ - doc/EPUB/Publication/Package/Bindings.html
173
+ - doc/EPUB/Publication/Package/Bindings/MediaType.html
174
+ - doc/EPUB/Publication/Package/Guide.html
175
+ - doc/EPUB/Publication/Package/Manifest.html
176
+ - doc/EPUB/Publication/Package/Manifest/Item.html
177
+ - doc/EPUB/Publication/Package/Metadata.html
178
+ - doc/EPUB/Publication/Package/Spine.html
179
+ - doc/EPUB/Publication/Package/Spine/Itemref.html
180
+ - doc/EPUB/Type.html
181
+ - doc/_index.html
182
+ - doc/class_list.html
183
+ - doc/css/common.css
184
+ - doc/css/full_list.css
185
+ - doc/css/style.css
186
+ - doc/file.README.html
187
+ - doc/file_list.html
188
+ - doc/frames.html
189
+ - doc/index.html
190
+ - doc/js/app.js
191
+ - doc/js/full_list.js
192
+ - doc/js/jquery.js
193
+ - doc/method_list.html
194
+ - doc/top-level-namespace.html
135
195
  - epub-parser.gemspec
136
196
  - lib/epub/book.rb
197
+ - lib/epub/constants.rb
137
198
  - lib/epub/content_document.rb
138
199
  - lib/epub/content_document/navigation.rb
139
200
  - lib/epub/ocf.rb
@@ -155,7 +216,6 @@ files:
155
216
  - lib/epub/publication/package/manifest.rb
156
217
  - lib/epub/publication/package/metadata.rb
157
218
  - lib/epub/publication/package/spine.rb
158
- - lib/epub/type.rb
159
219
  - schemas/epub-nav-30.rnc
160
220
  - schemas/epub-nav-30.sch
161
221
  - schemas/epub-xhtml-30.sch
@@ -165,17 +225,14 @@ files:
165
225
  - test/fixtures/book/OPS/nav.xhtml
166
226
  - test/fixtures/book/mimetype
167
227
  - test/helper.rb
168
- - test/publication/package/test_bindings.rb
169
- - test/publication/package/test_guide.rb
170
- - test/publication/package/test_manifest.rb
171
- - test/publication/package/test_metadata.rb
172
- - test/publication/package/test_spine.rb
173
228
  - test/test_parser.rb
229
+ - test/test_parser_content_document.rb
174
230
  - test/test_parser_ocf.rb
175
231
  - test/test_parser_publication.rb
176
232
  - test/fixtures/book/OPS/ルートファイル.opf
177
233
  homepage: https://gitorious.org/epub/parser
178
- licenses: []
234
+ licenses:
235
+ - MIT
179
236
  post_install_message:
180
237
  rdoc_options: []
181
238
  require_paths:
@@ -188,7 +245,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
188
245
  version: '0'
189
246
  segments:
190
247
  - 0
191
- hash: 3633804381803828954
248
+ hash: 1604800020780391737
192
249
  required_rubygems_version: !ruby/object:Gem::Requirement
193
250
  none: false
194
251
  requirements:
@@ -197,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
254
  version: '0'
198
255
  segments:
199
256
  - 0
200
- hash: 3633804381803828954
257
+ hash: 1604800020780391737
201
258
  requirements: []
202
259
  rubyforge_project:
203
260
  rubygems_version: 1.8.8