ebooks_renamer 0.0.2 → 0.0.3

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: 452dc026c9fdae6c735a034b5be21560723876e7
4
- data.tar.gz: b3a22894521a3290f4015b90bbae6043f2c673a4
3
+ metadata.gz: 928fb2f4c1b7431e5b8f87efabd702fc7823fb41
4
+ data.tar.gz: 6311e8943f094565dc999fece255f1bfe7b56870
5
5
  SHA512:
6
- metadata.gz: 7980ab5bcde133b294de8e35b483460f97ed26e4960611e916d88f44beed9a08753aabb4e3e9f81dec1305872cc05a77eacbecb26c14e07815ba943295848056
7
- data.tar.gz: 45fa902778841126f79b0b8e0d558c8df0837bf694693b60a904e94df14ad048184c52e8cefcea6e18191a1530652602c690fe79d57a2b3488b695da455a0a20
6
+ metadata.gz: 980f52e329373bf81565f7c45acbe5431a04b3cc8e673d96bc31c1648d59f0ee300f3eac5ef8982cc7905188a3c8bf7c4934105c457e4c0c5392b0337510011f
7
+ data.tar.gz: fe1574b78794f4ebd4badaa409baf1f6c2511b8696d9d635f815ac0d00ea14c2db270270b357c7d38d35e966a6b554fb4b56b8322b5a4d53a68aee45fd872b89
data/README.md CHANGED
@@ -3,11 +3,15 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/ebooks_renamer.svg)](http://badge.fury.io/rb/ebooks_renamer)
4
4
  [![Dependency Status](https://gemnasium.com/agilecreativity/ebooks_renamer.png)](https://gemnasium.com/agilecreativity/ebooks_renamer)
5
5
  [![Code Climate](https://codeclimate.com/github/agilecreativity/ebooks_renamer.png)](https://codeclimate.com/github/agilecreativity/ebooks_renamer)
6
+ [![Endorse](https://api.coderwall.com/agilecreativity/endorsecount.png)](https://coderwall.com/agilecreativity)
6
7
 
7
8
  Rename multiple ebook files using the power of ruby.
8
9
  This is the alternate version of my [ebook_renamer][] gem that implemented in
9
10
  pure ruby using the power of other gems for metadata extraction.
10
11
 
12
+ The original [ebook_renamer][] gem requires the [Calibre Meta][] to be installed,
13
+ but this gem does not need any third party software to be installed.
14
+
11
15
  ### Features
12
16
 
13
17
  - Rename multiple ebooks at once currently `epub`, `mobi` and `pdf` are supported.
@@ -117,3 +121,4 @@ ebooks_renamer rename --base-dir . --sep-string '-' --recursive --inc-words andr
117
121
  [mobi]: https://rubygems.org/gems/mobi
118
122
  [pdf-reader]: https://rubygems.org/gems/pdf-reader
119
123
  [epubinfo]: https://rubygems.org/gems/epubinfo
124
+ [Calibre Meta]: http://manual.calibre-ebook.com/cli/ebook-meta.html
@@ -11,6 +11,11 @@ module EbooksRenamer
11
11
  pages: reader.page_count
12
12
  end
13
13
  end
14
+ rescue Exception => e
15
+ # Note: we skip the file that we can't process
16
+ # and allow the process to continue
17
+ puts "Skip file '#{filename}'"
18
+ puts "Due to the unexpected error: #{e.message}"
14
19
  end
15
20
  end
16
21
  end
@@ -1,3 +1,3 @@
1
1
  module EbooksRenamer
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ebooks_renamer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burin Choomnuan