epub-directory 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +5 -0
- data/lib/epub/directory.rb +2 -2
- data/lib/epub/directory/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b62d61d002bca92d87a1eb59f7f6dd387f43f2fc53f743e7c6906acbf0279ec
|
4
|
+
data.tar.gz: 1b3131d8c107ba3c31f7251aabdf7d734f4535ab6ff2d3d2fed0638f57ba0f18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a733b5a2a616eb1ef56837c2bc4e8709a928d291289f48c59f64e47ef782f4d8e915f5affbfd72c6cbfcd1f0f8b458aa5f8e57e425af9afabee88483824550c2
|
7
|
+
data.tar.gz: 30cf2b1eda47325b2172236266cbeceebf72edf5f1292ff0c672c738c79a795b75d4ca0de2f03a829f8745af37508918a9c581827ad2ad345d69d2e8ae872f91
|
data/ChangeLog.md
CHANGED
data/lib/epub/directory.rb
CHANGED
@@ -66,7 +66,7 @@ module EPUB
|
|
66
66
|
dest_path = Pathname.new(dest_path)
|
67
67
|
rendition = EPUB::Parser::Publication.new(opf_path.read).parse
|
68
68
|
metadata = rendition.metadata
|
69
|
-
page_title = "Information on
|
69
|
+
page_title = "Information on #{metadata.title}(Release Identifier: #{metadata.release_identifier})"
|
70
70
|
template_path = File.join(__dir__, "../../templates/release-identifier.haml")
|
71
71
|
engine = Haml::Engine.new(File.read(template_path))
|
72
72
|
engine.options[:format] = :html5
|
@@ -89,7 +89,7 @@ module EPUB
|
|
89
89
|
author.name = creator.to_s
|
90
90
|
end
|
91
91
|
end
|
92
|
-
entry.author = "Unknown"
|
92
|
+
entry.author = "Unknown" unless entry.author
|
93
93
|
entry.summary = rendition.metadata.description
|
94
94
|
entry.links.new_link do |link|
|
95
95
|
link.rel = RSS::OPDS::RELATIONS["acquisition"] # TODO: Arrange by info.toml
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epub-directory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- KITAITI Makoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: epub-parser
|