epub_tools 0.2.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 327cbc5239c4f7c2ed333f6fdd558f2097232577049bc4b14f08ac94907ca4a6
4
- data.tar.gz: d40cc31a904e125c757e880dd91f33e113744940b2dc89bb789811b27c75de37
3
+ metadata.gz: 82a9898207cce1389d1e014fddbcfa7a8518c7d80d895541049ca5525d45fb9c
4
+ data.tar.gz: 6ae5176a91cc57b6c1c7cb6e76a9f823c91bb887dce3574a39deb45bffacdbb4
5
5
  SHA512:
6
- metadata.gz: 5aaec7cea97124b4167af08b83d8bd3e8374b3919712a85d99f72aa883b02953767177853ad397ab2fcf66476b725776b83e48e6a567512849e8fd8f6aa3ae63
7
- data.tar.gz: 53164f7aaafcea2fe38863401bac0351e4ed25a339e7c05f1f713e6979ddef2dd71e286e1b67b9c3ac6a20cf54bc2d2725ba3e765a1260a82cd3f892d8777180
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(*options).run
106
+ EpubTools::CompileBook.new(**options).run
107
107
  end
data/epub_tools.gemspec CHANGED
@@ -6,12 +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://rubygems.org/gems/epub_tools'
9
+ spec.homepage = 'https://github.com/jaimerodas/epub_tools'
10
10
  spec.license = 'MIT'
11
11
  spec.files = `git ls-files`.split("\n")
12
12
  spec.require_paths = ['lib']
13
13
  spec.executables = ['epub-tools']
14
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
+ }
15
19
 
16
20
  spec.add_dependency 'nokogiri', '~> 1.18'
17
21
  spec.add_dependency 'rubyzip', '~> 2.4'
@@ -1,3 +1,3 @@
1
1
  module EpubTools
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
data/lib/epub_tools.rb CHANGED
@@ -7,6 +7,7 @@ require_relative 'epub_tools/xhtml_cleaner'
7
7
  require_relative 'epub_tools/xhtml_extractor'
8
8
  require_relative 'epub_tools/pack_ebook'
9
9
  require_relative 'epub_tools/unpack_ebook'
10
+ require_relative 'epub_tools/compile_book'
10
11
 
11
12
  module EpubTools
12
13
  end
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.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaime Rodas
@@ -119,10 +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://rubygems.org/gems/epub_tools
122
+ homepage: https://github.com/jaimerodas/epub_tools
123
123
  licenses:
124
124
  - MIT
125
- metadata: {}
125
+ metadata:
126
+ source_code_uri: https://github.com/jaimerodas/epub_tools/tree/main
127
+ homepage_uri: https://github.com/jaimerodas/epub_tools
126
128
  rdoc_options: []
127
129
  require_paths:
128
130
  - lib