bb-epub 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ee2a156c682defd0fda4fa8921b112a387d41c9e
4
+ data.tar.gz: 4ea9a84008e1669c817eb60c375431367bf891fd
5
+ SHA512:
6
+ metadata.gz: dabff3fa69682ac8030b89e1e11739f1a15108902f13d46a6a7b6607fcd97b7ea79558f0cff04efba31368b40336455e163acd470b67d120eb6da2408facc348
7
+ data.tar.gz: a0df16a965576e9f70f7ab7cea6b9c993ae0635694c35da3290cbf502c726714f224ae3be929292de389e64829e8b6f538545a3fb5f94aa060f2a716046c540a
@@ -16,6 +16,7 @@ class BbEPUB::Package < Bookbinder::Package
16
16
  BbEPUB::Transform::NavToc,
17
17
  BbEPUB::Transform::CoverPage,
18
18
  BbEPUB::Transform::Rendition,
19
+ BbEPUB::Transform::PageProgression,
19
20
  BbEPUB::Transform::AudioOverlay,
20
21
  Bookbinder::Transform::Organizer,
21
22
  Bookbinder::Transform::Generator
@@ -0,0 +1,27 @@
1
+ class BbEPUB::Transform::PageProgression < Bookbinder::Transform
2
+
3
+ def dependencies
4
+ [BbEPUB::Transform::OPF]
5
+ end
6
+
7
+
8
+ def to_map(package)
9
+ opf_doc = package.file(:opf).document
10
+ spine = opf_doc.find('opf|spine')
11
+ if dir = spine['page-progression-direction']
12
+ package.map['i18n-page-progression-direction'] = dir
13
+ end
14
+ end
15
+
16
+
17
+ def from_map
18
+ return unless dir = package.map['i18n-page-progression-direction'].downcase
19
+ return if dir == 'default'
20
+ if dir != 'rtl' && dir != 'ltr'
21
+ package.warn("Invalid page-progression-direction: #{dir}")
22
+ return
23
+ end
24
+ opf_doc.find('opf|spine')['page-progression-direction'] = dir
25
+ end
26
+
27
+ end
@@ -1,5 +1,5 @@
1
1
  module BbEPUB
2
2
 
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,38 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bb-epub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Joseph Pearson
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-04-16 00:00:00.000000000 Z
11
+ date: 2015-06-15 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bookbinder
16
- requirement: &13817180 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *13817180
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: rake
27
- requirement: &13816300 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ! '>='
31
+ - - '>='
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *13816300
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
36
41
  description: EPUB 2 & EPUB 3 support for Bookbinder.
37
42
  email:
38
43
  - jpearson@overdrive.com
@@ -56,6 +61,7 @@ files:
56
61
  - lib/bb-epub/transform/ocf.rb
57
62
  - lib/bb-epub/transform/opf.rb
58
63
  - lib/bb-epub/transform/package_identifier.rb
64
+ - lib/bb-epub/transform/page_progression.rb
59
65
  - lib/bb-epub/transform/rendition.rb
60
66
  - lib/bb-epub/transform/resources.rb
61
67
  - lib/bb-epub/transform/spine.rb
@@ -67,26 +73,25 @@ files:
67
73
  - README.md
68
74
  homepage: http://github.com/bksh/bb-epub
69
75
  licenses: []
76
+ metadata: {}
70
77
  post_install_message:
71
78
  rdoc_options: []
72
79
  require_paths:
73
80
  - lib
74
81
  required_ruby_version: !ruby/object:Gem::Requirement
75
- none: false
76
82
  requirements:
77
- - - ! '>='
83
+ - - '>='
78
84
  - !ruby/object:Gem::Version
79
85
  version: '0'
80
86
  required_rubygems_version: !ruby/object:Gem::Requirement
81
- none: false
82
87
  requirements:
83
- - - ! '>='
88
+ - - '>='
84
89
  - !ruby/object:Gem::Version
85
90
  version: '0'
86
91
  requirements: []
87
92
  rubyforge_project:
88
- rubygems_version: 1.8.11
93
+ rubygems_version: 2.0.14
89
94
  signing_key:
90
- specification_version: 3
95
+ specification_version: 4
91
96
  summary: EPUB format for Bookbinder
92
97
  test_files: []