ebook_renamer 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -0
- data/README.md +2 -2
- data/lib/ebook_renamer/cli.rb +1 -1
- data/lib/ebook_renamer/configuration.rb +1 -1
- data/lib/ebook_renamer/constant.rb +1 -7
- data/lib/ebook_renamer/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0073243419f6aa7db6891e2b72250c69b5d0e3a1
|
4
|
+
data.tar.gz: 596bdb43d250f6eb5e71cad01fcc02fcabdcfac9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bdef075f46875f900348fbfc4e1740230fe702647dc7ff08660c6da30958b1311e29b3226e444dc3d239e25131f0202611ba2f9b392f58cf34aac6d4d1b545f
|
7
|
+
data.tar.gz: f5330df3267139a9c0f0f0041c0e6a9d6fd69f0e94e550adbbeaaaa8ce556fa136dc6265c25904b3005cf529c49e9474f2d10edbe3bc5948ae60c1a60e8bac19
|
data/.travis.yml
ADDED
data/README.md
CHANGED
data/lib/ebook_renamer/cli.rb
CHANGED
@@ -30,7 +30,7 @@ module EbookRenamer
|
|
30
30
|
puts "Input :#{file}"
|
31
31
|
extension = File.extname(file)
|
32
32
|
begin
|
33
|
-
hash = Helpers.meta_to_hash(Helpers.meta(file, config.
|
33
|
+
hash = Helpers.meta_to_hash(Helpers.meta(file, config.meta_binary))
|
34
34
|
formatted_name = Helpers.formatted_name(hash, sep_char: " by ")
|
35
35
|
formatted_name = "#{formatted_name}#{extension}"
|
36
36
|
new_name = "#{File.dirname(file)}/#{Helpers.sanitize_filename(formatted_name, '.')}"
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module EbookRenamer
|
2
|
-
# The Calibre metadata extraction tool (epub, mobi)
|
2
|
+
# The Calibre metadata extraction tool (epub, mobi, pdf)
|
3
3
|
CALIBRE_CLI_BINARY = '/usr/bin/ebook-meta'
|
4
4
|
|
5
5
|
# The Calibre metadata extraction tool
|
@@ -8,12 +8,6 @@ module EbookRenamer
|
|
8
8
|
# Support URL for Calibre's CLI tool
|
9
9
|
CALIBRE_CLI_URL = 'http://manual.calibre-ebook.com/cli/cli-index.html'
|
10
10
|
|
11
|
-
# Exiftool binary executable (for pdf, also `mdls` on OSX)
|
12
|
-
EXIFTOOL_BINARY = '/usr/local/bin/exiftool'
|
13
|
-
|
14
|
-
# On OSX, `brew install exiftool`
|
15
|
-
EXIFTOOL_URL = 'http://www.sno.phy.queensu.ca/~phil/exiftool/'
|
16
|
-
|
17
11
|
# Attribute keys
|
18
12
|
META_KEYS = %w[title authors(s) publisher languages published rights identifiers]
|
19
13
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ebook_renamer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Burin Choomnuan
|
@@ -160,6 +160,7 @@ extra_rdoc_files: []
|
|
160
160
|
files:
|
161
161
|
- ".gitignore"
|
162
162
|
- ".ruby-version"
|
163
|
+
- ".travis.yml"
|
163
164
|
- ".yardopts"
|
164
165
|
- Gemfile
|
165
166
|
- Guardfile
|