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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 244dbff6a80aa66460a633d9ca1e77d7c2d11054
4
- data.tar.gz: 7db39857c19b170eb76ea19d62cd85a444505c77
3
+ metadata.gz: 0073243419f6aa7db6891e2b72250c69b5d0e3a1
4
+ data.tar.gz: 596bdb43d250f6eb5e71cad01fcc02fcabdcfac9
5
5
  SHA512:
6
- metadata.gz: b1d5b29908281d629b7e6dbdab770b8a59902caf6c985332e5cce282389b963c0359d321683194c698a3a74b90d5b9899e02b3a3350f06c7303a8b9c5e274bf8
7
- data.tar.gz: 57536decad2872912f5c507de4de1fb04d7fa2b5b590353ce6255a78a5128688d841a48a58fb44a4a3988dc4dce8f4b9ef4b567734d04923d84a8418ee75fe6e
6
+ metadata.gz: 1bdef075f46875f900348fbfc4e1740230fe702647dc7ff08660c6da30958b1311e29b3226e444dc3d239e25131f0202611ba2f9b392f58cf34aac6d4d1b545f
7
+ data.tar.gz: f5330df3267139a9c0f0f0041c0e6a9d6fd69f0e94e550adbbeaaaa8ce556fa136dc6265c25904b3005cf529c49e9474f2d10edbe3bc5948ae60c1a60e8bac19
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 2.1.1
data/README.md CHANGED
@@ -11,8 +11,8 @@ the metadata within the ebook itself (if available).
11
11
  * Then install the gem
12
12
 
13
13
  ```sh
14
- $bundle
15
- $gem install ebook_renamer
14
+ bundle
15
+ gem install ebook_renamer
16
16
  ```
17
17
 
18
18
  ### Usage
@@ -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.ebook_meta_binary))
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, '.')}"
@@ -9,7 +9,7 @@ module EbookRenamer
9
9
 
10
10
  def to_s
11
11
  <<-END.gsub(/^\s+\|/, '')
12
- | ebook-meta : #{ebook_meta_binary}
12
+ | ebook-meta : #{meta_binary}
13
13
  END
14
14
  end
15
15
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module EbookRenamer
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  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.1
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