epub_tools 0.2.0 → 0.2.2
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/bin/epub-tools +2 -2
- data/epub_tools.gemspec +5 -0
- data/lib/epub_tools/version.rb +1 -1
- data/lib/epub_tools.rb +1 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82a9898207cce1389d1e014fddbcfa7a8518c7d80d895541049ca5525d45fb9c
|
4
|
+
data.tar.gz: 6ae5176a91cc57b6c1c7cb6e76a9f823c91bb887dce3574a39deb45bffacdbb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c9bf062deceadf3c5f41c196a5f8738e946ddf3c306d83cdbd424dbe61bfb3986f71431a961d0c0e231390258e76bb4f4be4d9b7387ba5296593d688a82579d
|
7
|
+
data.tar.gz: 40e1cd0efe0d78e8e0685ec80a3a3396983c788df55b77da62f45385fdac4c95951b1e30a1344dd17353f276c36c59ffe0609ebabfa4f80cff7f5613fce3fabe
|
data/bin/epub-tools
CHANGED
@@ -90,7 +90,7 @@ when 'unpack'
|
|
90
90
|
opts.on('-o DIR', '--output-dir DIR', 'Output directory to extract into (default: basename of epub)') { |v| o[:output_dir] = v }
|
91
91
|
opts.on('-q', '--quiet', 'Run quietly (default: verbose)') { |v| o[:verbose] = !v }
|
92
92
|
end
|
93
|
-
EpubTools::UnpackEbook.new(options[:epub_file], verbose: options[:verbose]).run
|
93
|
+
EpubTools::UnpackEbook.new(options[:epub_file], options[:output_dir], verbose: options[:verbose]).run
|
94
94
|
|
95
95
|
when 'compile'
|
96
96
|
options = {verbose: true}
|
@@ -103,5 +103,5 @@ when 'compile'
|
|
103
103
|
opts.on('-c PATH', '--cover PATH', 'Cover image file path (optional)') { |v| o[:cover_image] = v }
|
104
104
|
opts.on('-q', '--quiet', 'Run quietly (default: verbose)') { |v| o[:verbose] = !v }
|
105
105
|
end
|
106
|
-
EpubTools::CompileBook.new(
|
106
|
+
EpubTools::CompileBook.new(**options).run
|
107
107
|
end
|
data/epub_tools.gemspec
CHANGED
@@ -6,11 +6,16 @@ Gem::Specification.new do |spec|
|
|
6
6
|
spec.summary = 'Tools to extract, split, and compile EPUB books'
|
7
7
|
spec.authors = ['Jaime Rodas']
|
8
8
|
spec.email = ['rodas@hey.com']
|
9
|
+
spec.homepage = 'https://github.com/jaimerodas/epub_tools'
|
9
10
|
spec.license = 'MIT'
|
10
11
|
spec.files = `git ls-files`.split("\n")
|
11
12
|
spec.require_paths = ['lib']
|
12
13
|
spec.executables = ['epub-tools']
|
13
14
|
spec.required_ruby_version = ">= 3.0"
|
15
|
+
spec.metadata = {
|
16
|
+
"source_code_uri" => "https://github.com/jaimerodas/epub_tools/tree/main",
|
17
|
+
"homepage_uri" => "https://github.com/jaimerodas/epub_tools"
|
18
|
+
}
|
14
19
|
|
15
20
|
spec.add_dependency 'nokogiri', '~> 1.18'
|
16
21
|
spec.add_dependency 'rubyzip', '~> 2.4'
|
data/lib/epub_tools/version.rb
CHANGED
data/lib/epub_tools.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epub_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jaime Rodas
|
@@ -119,9 +119,12 @@ files:
|
|
119
119
|
- test/unpack_ebook_test.rb
|
120
120
|
- test/xhtml_cleaner_test.rb
|
121
121
|
- test/xhtml_extractor_test.rb
|
122
|
+
homepage: https://github.com/jaimerodas/epub_tools
|
122
123
|
licenses:
|
123
124
|
- MIT
|
124
|
-
metadata:
|
125
|
+
metadata:
|
126
|
+
source_code_uri: https://github.com/jaimerodas/epub_tools/tree/main
|
127
|
+
homepage_uri: https://github.com/jaimerodas/epub_tools
|
125
128
|
rdoc_options: []
|
126
129
|
require_paths:
|
127
130
|
- lib
|