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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e38919b59f66fe6c673a53a921f80509d59023c
4
- data.tar.gz: 9ca3cf98544542377e960004af4d047f5ad6d770
3
+ metadata.gz: 00da0a17b93d287616c639412fb23a78cee66829
4
+ data.tar.gz: 18813d9a86700d6ffa46d0f0094c9347de053b4a
5
5
  SHA512:
6
- metadata.gz: dafbc00bea1fda11422bd5c8e8b1f19d37a40d8ecb0879f4ba9c00b9b6075524cf33d548f64f64c5d2336db38e769b32271a474f12b3cc3498961f65ae02c4c4
7
- data.tar.gz: 5ea3fa07501906e6453340d5e27f1e9f3d8bec9b3717caa63cfff98e63721cbebf08bbb523fa0b44183f34a18601bb6a61c8d35a875e51f06edadf1da9a6fc10
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 to see what will be changed without making any changes (dry-run)
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
@@ -1,3 +1,3 @@
1
1
  module EbookRenamer
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
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.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burin Choomnuan