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 +4 -4
- data/README.md +5 -0
- data/lib/ebooks_renamer/pdf_parser.rb +5 -0
- data/lib/ebooks_renamer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 928fb2f4c1b7431e5b8f87efabd702fc7823fb41
|
4
|
+
data.tar.gz: 6311e8943f094565dc999fece255f1bfe7b56870
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|