epubmeta 0.6.0 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +16 -2
  3. data/lib/epubmeta/parser.rb +6 -4
  4. metadata +11 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84249089c1dffd97f50af83c920ebc237109ce14f56719fa4dba466a3f7da120
4
- data.tar.gz: b9fe97e1ccb61609ab3647cd69357796159dd318b68a21a99ef63dd8b75fb007
3
+ metadata.gz: 2f7c146f3c32fd85e2959ee268e2bf0dc8114dd88589466d536161ac8e2a6a46
4
+ data.tar.gz: a924aa2e745314041c35585ab6c4b1097c0ea404dbb41b8850d64f4005dfd00d
5
5
  SHA512:
6
- metadata.gz: f8c52a708560373f55cda9b65932f581f520918547ab74a47e4b3688a2f29d4aaabae2281915b0c9a5b9b0c395910a08c8ca45cd6f62ac5acaa35d43173fbadb
7
- data.tar.gz: 07a2aaef05dbe3445dd6e9bcac263baa671a83462a0e0a79c6cd83c0bf46077ec8191a23be5b92eb90a9a26df804a8f0fe1c756de15420ee15bfb000276271ed
6
+ metadata.gz: 826b8b0b54a0e1e2f58bbccce192fd59c49ebfa2078b68ef3b5bbc12e632a50f88f8a50627cad49e2e232f894eb841b87b0be9812b1ff959c6125fa67f9732b2
7
+ data.tar.gz: 29920366785169c22fbc834096ad11a0e2111165028af697338b0ebd697c3c90143eeaed7a07a907bce8698150fad73634fcef9bf305f43b4e0059660d432eed
data/README.md CHANGED
@@ -14,10 +14,24 @@ Which returns a `EPUBMeta::Models::Book` instance, please refer to the [API docu
14
14
 
15
15
  ## Changelog
16
16
 
17
+ **0.6.3** *September 27, 2022*
18
+
19
+ * Update nokogiri dependency to `>= 1.13.4` to mitigate several security issues (CVE-2022-24836, CVE-2018-25032, CVE-2022-23437, CVE-2022-24839) that have occurred since the last release of epubmeta.
20
+ * Minimum ruby version is now 2.6; this is due to Nokogiri only supporting >= ruby v2.6.
21
+
22
+ **0.6.2** *June 2, 2021*
23
+
24
+ * Extract the container parser logic to make it easier to test.
25
+ * Bump nokogiri to v1.11.4 to incorporate several security issues.
26
+
27
+ **0.6.1** *May 11, 2021*
28
+
29
+ * Update nokogiri dependency to `>= 1.11.0` to mitigate CVE-2020-26247
30
+
17
31
  **0.6.0** *May 06, 2020*
18
32
 
19
33
  * Support reading rendition property. Accessible via `Book.fixed_layout?`
20
- * Update nokogiti dependency to `>= 1.10.8` to mitigate CVE-2020-7595
34
+ * Update nokogiri dependency to `>= 1.10.8` to mitigate CVE-2020-7595
21
35
 
22
36
  **0.5.4** *Februry 04, 2020*
23
37
 
@@ -61,4 +75,4 @@ Which returns a `EPUBMeta::Models::Book` instance, please refer to the [API docu
61
75
 
62
76
  Copyright (c) 2018--2020 Andrew Roberts.
63
77
  Copyright (c) 2012--2014 Christof Dorner.
64
- See LICENSE.txt for further details.
78
+ See LICENSE.txt for further details.
@@ -25,10 +25,12 @@ module EPUBMeta
25
25
  end
26
26
 
27
27
  def metadata_path
28
- @metadata_path ||= begin
29
- root_document.remove_namespaces!
30
- root_document.css('container rootfiles rootfile:first-child').attribute('full-path').content
31
- end
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.0
4
+ version: 0.6.3
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: 2020-04-06 00:00:00.000000000 Z
11
+ date: 2022-09-27 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.10'
39
+ version: '1.13'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 1.10.8
42
+ version: 1.13.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.10'
49
+ version: '1.13'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 1.10.8
52
+ version: 1.13.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,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: 1.9.2
117
+ version: 2.6.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.9
126
- signing_key:
124
+ rubygems_version: 3.0.8
125
+ signing_key:
127
126
  specification_version: 4
128
127
  summary: Extracts metadata information from EPUB files
129
128
  test_files: []