ebook_renamer 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +50 -1
- data/lib/ebook_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: 00da0a17b93d287616c639412fb23a78cee66829
|
4
|
+
data.tar.gz: 18813d9a86700d6ffa46d0f0094c9347de053b4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ef70fbf621e03967912a119c5ce8461ad39ff1e9b58a65d3930ba839955fd7cf31993432de76afe49539d2f6b82f2644436f301c5b950b6f7d564237377902c
|
7
|
+
data.tar.gz: 2abddd43e52740123fd37b16ddd14b904849c1fdbc4c3aa06ac08f7d7f4f9cfad9cafb13075809a8e3e9b23d29ce65a82967b18157934b716f5f7866012ea870
|
data/README.md
CHANGED
@@ -52,13 +52,58 @@ ebook_renamer --base-dir ~/Dropbox/ebooks/samples
|
|
52
52
|
# If you like to see the usage try
|
53
53
|
ebook_renamer --help
|
54
54
|
|
55
|
-
# Run the command without
|
55
|
+
# Run the command without making any changes to the files (dry-run)
|
56
56
|
ebook_rename --recursive
|
57
57
|
|
58
58
|
# Once you are happy with what you see, then
|
59
59
|
ebook_renamer --recusive --commit
|
60
60
|
```
|
61
61
|
|
62
|
+
### Example Outputs
|
63
|
+
|
64
|
+
Original files before
|
65
|
+
|
66
|
+
```
|
67
|
+
test/fixtures/
|
68
|
+
└── ebooks
|
69
|
+
├── demo1.pdf
|
70
|
+
├── demo2.epub
|
71
|
+
└── subdir
|
72
|
+
├── demo3.pdf
|
73
|
+
└── demo4.epub
|
74
|
+
2 directories, 4 files
|
75
|
+
```
|
76
|
+
|
77
|
+
Run the command without making any changes
|
78
|
+
|
79
|
+
```sh
|
80
|
+
./bin/ebook_renamer --base-dir ./test/fixtures/ebooks --recursive
|
81
|
+
```
|
82
|
+
|
83
|
+
You should see the result like the following
|
84
|
+
|
85
|
+
```
|
86
|
+
I, [2014-04-05T17:28:10.683671 #79795] INFO -- : Your options: {:base_dir=>"test/fixtures/ebooks/", :meta_binary=>"ebook-meta", :recursive=>true, :commit=>false}
|
87
|
+
Input :test/fixtures/ebooks/demo1.pdf
|
88
|
+
Output:test/fixtures/ebooks/Fearless.Refactoring.by.Andrzej.Krzywda.pdf
|
89
|
+
Input :test/fixtures/ebooks/demo2.epub
|
90
|
+
Output:test/fixtures/ebooks/EPUB.3.0.Specification.by.EPUB.3.Working.Group.epub
|
91
|
+
Input :test/fixtures/ebooks/subdir/demo3.pdf
|
92
|
+
Output:test/fixtures/ebooks/subdir/Reliably.Deploying.Rails.Applications.by.Ben.Dixon.pdf
|
93
|
+
Input :test/fixtures/ebooks/subdir/demo4.epub
|
94
|
+
Output:test/fixtures/ebooks/subdir/EPUB.3.0.Specification.by.EPUB.3.Working.Group.epub
|
95
|
+
|
96
|
+
```
|
97
|
+
|
98
|
+
To actually rename the files using the following command
|
99
|
+
|
100
|
+
```sh
|
101
|
+
./bin/ebook_renamer --base-dir ./test/fixtures/ebooks --recursive --commit
|
102
|
+
# or short version
|
103
|
+
./bin/ebook_renamer -b ./test/fixtures/ebooks -r -c
|
104
|
+
|
105
|
+
```
|
106
|
+
|
62
107
|
### Sample Usage (from `ebook_renamer --help`)
|
63
108
|
|
64
109
|
```
|
@@ -97,6 +142,10 @@ ebook_renamer --recusive --commit
|
|
97
142
|
|
98
143
|
### Changelog
|
99
144
|
|
145
|
+
#### 0.0.5
|
146
|
+
|
147
|
+
- Update the README.md to include usage example
|
148
|
+
|
100
149
|
#### 0.0.4
|
101
150
|
|
102
151
|
- fix the stupid bug with the `which` method which raise invalid error
|