epubmeta 0.6.0 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -2
- data/lib/epubmeta/parser.rb +6 -4
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01d97aff642d69f3e17351c6777073a8129467169cebb2fa16b749d106aded05
|
4
|
+
data.tar.gz: 07e34324f0208be8532dcebea818f62c57d6f8affa75d20c2eb54d7daa32d372
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c05f91dec38c79c93041dfc47be55d19baa9a1644ab89d32cc0b1929736c38822385cf21a65b093807e7f89dd67ed961c83738ede492d4a7f81588333b1af353
|
7
|
+
data.tar.gz: 16d3405f68eeac330470b3072d8907633bc8786e76d4524d333d5c8ad4eb474fb5c73ed3fda40b5d8b6ab60ce0bf7eb6acc270f0cf22af98fb6ec912f16b23d1
|
data/README.md
CHANGED
@@ -14,10 +14,19 @@ Which returns a `EPUBMeta::Models::Book` instance, please refer to the [API docu
|
|
14
14
|
|
15
15
|
## Changelog
|
16
16
|
|
17
|
+
**0.6.2** *June 2, 2021*
|
18
|
+
|
19
|
+
* Extract the container parser logic to make it easier to test.
|
20
|
+
* Bump nokogiri to v1.11.4 to incorporate several security issues.
|
21
|
+
|
22
|
+
**0.6.1** *May 11, 2021*
|
23
|
+
|
24
|
+
* Update nokogiri dependency to `>= 1.11.0` to mitigate CVE-2020-26247
|
25
|
+
|
17
26
|
**0.6.0** *May 06, 2020*
|
18
27
|
|
19
28
|
* Support reading rendition property. Accessible via `Book.fixed_layout?`
|
20
|
-
* Update
|
29
|
+
* Update nokogiri dependency to `>= 1.10.8` to mitigate CVE-2020-7595
|
21
30
|
|
22
31
|
**0.5.4** *Februry 04, 2020*
|
23
32
|
|
@@ -61,4 +70,4 @@ Which returns a `EPUBMeta::Models::Book` instance, please refer to the [API docu
|
|
61
70
|
|
62
71
|
Copyright (c) 2018--2020 Andrew Roberts.
|
63
72
|
Copyright (c) 2012--2014 Christof Dorner.
|
64
|
-
See LICENSE.txt for further details.
|
73
|
+
See LICENSE.txt for further details.
|
data/lib/epubmeta/parser.rb
CHANGED
@@ -25,10 +25,12 @@ module EPUBMeta
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def metadata_path
|
28
|
-
@metadata_path ||=
|
29
|
-
|
30
|
-
|
31
|
-
|
28
|
+
@metadata_path ||= get_full_path(root_document)
|
29
|
+
end
|
30
|
+
|
31
|
+
def get_full_path(container_root_doc)
|
32
|
+
container_root_doc.remove_namespaces!
|
33
|
+
container_root_doc.css('container rootfiles rootfile:first-child').attribute('full-path').content
|
32
34
|
end
|
33
35
|
|
34
36
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epubmeta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Roberts
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -36,20 +36,20 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.11'
|
40
40
|
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 1.
|
42
|
+
version: 1.11.4
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '1.
|
49
|
+
version: '1.11'
|
50
50
|
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: 1.
|
52
|
+
version: 1.11.4
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: rspec
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,7 +106,7 @@ homepage: https://github.com/andyroberts/epubmeta
|
|
106
106
|
licenses:
|
107
107
|
- MIT
|
108
108
|
metadata: {}
|
109
|
-
post_install_message:
|
109
|
+
post_install_message:
|
110
110
|
rdoc_options: []
|
111
111
|
require_paths:
|
112
112
|
- lib
|
@@ -114,16 +114,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 2.5.0
|
118
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
120
|
- - ">="
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
|
-
rubyforge_project:
|
125
|
-
rubygems_version: 2.7.
|
126
|
-
signing_key:
|
124
|
+
rubyforge_project:
|
125
|
+
rubygems_version: 2.7.10
|
126
|
+
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: Extracts metadata information from EPUB files
|
129
129
|
test_files: []
|