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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6392916f7c52eea0738103514236fa902d656ad3021fff7d5d88fe66b76bfd87
4
- data.tar.gz: 7385c859926b9e1d29623c4a183ce8be4a960f22601e585cca88c8cb64856c13
3
+ metadata.gz: 7b62d61d002bca92d87a1eb59f7f6dd387f43f2fc53f743e7c6906acbf0279ec
4
+ data.tar.gz: 1b3131d8c107ba3c31f7251aabdf7d734f4535ab6ff2d3d2fed0638f57ba0f18
5
5
  SHA512:
6
- metadata.gz: 10c1b31a29948a15393d06416405ae7e2d5d403914a28b93eb203b49f8cfc658ca6ee7cb92dc8804a61cf4a12de4d67e1a718b999b6b9751b017b8567ca66061
7
- data.tar.gz: 516630a79f4f323d93d505b1c5d1244db65569be7779f5485b4bf9ecec7ef278ba32069dbca176a9b66c267cd00e3e37e9ee42d54919de2d86ba28a095c54087
6
+ metadata.gz: a733b5a2a616eb1ef56837c2bc4e8709a928d291289f48c59f64e47ef782f4d8e915f5affbfd72c6cbfcd1f0f8b458aa5f8e57e425af9afabee88483824550c2
7
+ data.tar.gz: 30cf2b1eda47325b2172236266cbeceebf72edf5f1292ff0c672c738c79a795b75d4ca0de2f03a829f8745af37508918a9c581827ad2ad345d69d2e8ae872f91
@@ -1,3 +1,8 @@
1
+ ### 0.1.6 / 2020-02-09
2
+
3
+ * [BUG FIX]Don't overwrite author in OPDS when it exists
4
+ * Use book title as page title
5
+
1
6
  ### 0.1.5 / 2020-02-08
2
7
 
3
8
  * Use variable for page title
@@ -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 EPUB Rendition with Release Identifier #{metadata.release_identifier}"
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
@@ -18,6 +18,6 @@
18
18
  module EPUB
19
19
  class Directory
20
20
  # epub-directory version
21
- VERSION = "0.1.5"
21
+ VERSION = "0.1.6"
22
22
  end
23
23
  end
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.5
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-08 00:00:00.000000000 Z
11
+ date: 2020-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: epub-parser