epub-parser 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +4 -0
- data/README.adoc +4 -8
- data/bin/epubinfo +1 -0
- data/lib/epub/parser.rb +2 -2
- data/lib/epub/parser/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: 25b4d1e1300bee0055f6bf79b79c7c3404e1a18752a558160ef4978c38cd1e46
|
|
4
|
+
data.tar.gz: e467ba867b6fd5e9959e35bdec9c896f2c361f7cceb93fcb6c42539f55213ecc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c1af1a66faccb0812659841be637d51e0e70cbf41d2fd3672287dded4bf147adfa131eba6b4297eadb108d4aa7c6f1414ad932861b3963ff6cab9a235d4b9b78
|
|
7
|
+
data.tar.gz: 6561f63c30009f4e333e99189966aeeceb6c8c190b541d2c0b12711c565a8cb51bcaa1ee37d3623806693981250739371b9006a9e7d8776343b94b5f47c4f65e
|
data/CHANGELOG.adoc
CHANGED
data/README.adoc
CHANGED
|
@@ -176,6 +176,10 @@ If you find other gems, please tell me or request a pull request.
|
|
|
176
176
|
|
|
177
177
|
== RECENT CHANGES
|
|
178
178
|
|
|
179
|
+
=== 0.4.5
|
|
180
|
+
|
|
181
|
+
[BUG FIX]Handle the case EPUB path is a Pathname
|
|
182
|
+
|
|
179
183
|
=== 0.4.4
|
|
180
184
|
|
|
181
185
|
* [BUG FIX]Fix navigation type check bug
|
|
@@ -192,14 +196,6 @@ If you find other gems, please tell me or request a pull request.
|
|
|
192
196
|
* [BUG FIX]Fix a bug that `epubinfo` command with `--words` or `--chars` option causes load error if there is not Nokogiri in environment
|
|
193
197
|
* [BUG FIX]Fix a bug that REXML::Element#content ignores descendant nodes
|
|
194
198
|
|
|
195
|
-
=== 0.4.1
|
|
196
|
-
|
|
197
|
-
* Add Oga backend for XML document
|
|
198
|
-
|
|
199
|
-
=== 0.4.0
|
|
200
|
-
|
|
201
|
-
* [BUG FIX]Make epub:type a Set
|
|
202
|
-
|
|
203
199
|
See {file:CHANGELOG.adoc} for older changelogs and details.
|
|
204
200
|
|
|
205
201
|
== TODOS
|
data/bin/epubinfo
CHANGED
data/lib/epub/parser.rb
CHANGED
|
@@ -41,11 +41,11 @@ module EPUB
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
def initialize(filepath, container_adapter: nil, book: nil, initialize_with: nil, **options)
|
|
44
|
-
if filepath.encoding == Encoding::ASCII_8BIT
|
|
44
|
+
if filepath.to_s.encoding == Encoding::ASCII_8BIT
|
|
45
45
|
# On Windows and macOS, encoding of file name is set by Ruby,
|
|
46
46
|
# but on UNIX, always is ASCII-8BIT
|
|
47
47
|
# See https://docs.ruby-lang.org/ja/2.7.0/class/IO.html
|
|
48
|
-
filepath = filepath.dup
|
|
48
|
+
filepath = filepath.to_s.dup
|
|
49
49
|
require "nkf"
|
|
50
50
|
filepath.force_encoding NKF.guess(filepath)
|
|
51
51
|
end
|
data/lib/epub/parser/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: epub-parser
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.5
|
|
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-01-
|
|
11
|
+
date: 2020-01-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|