ebooks_renamer 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.rubocop.yml +0 -8
- data/ebooks_renamer.gemspec +5 -5
- data/lib/ebooks_renamer.rb +0 -1
- data/lib/ebooks_renamer/cli.rb +0 -2
- data/lib/ebooks_renamer/ebooks_renamer.rb +0 -2
- data/lib/ebooks_renamer/epub_parser.rb +0 -1
- data/lib/ebooks_renamer/pdf_parser.rb +0 -2
- data/lib/ebooks_renamer/version.rb +1 -1
- metadata +98 -61
- checksums.yaml +0 -7
- data/lib/ebooks_renamer/logger.rb +0 -10
data/.rubocop.yml
CHANGED
@@ -20,14 +20,6 @@ MethodLength:
|
|
20
20
|
BlockNesting:
|
21
21
|
Max: 4
|
22
22
|
|
23
|
-
# Align with the style guide.
|
24
|
-
CollectionMethods:
|
25
|
-
PreferredMethods:
|
26
|
-
collect: 'map'
|
27
|
-
inject: 'reduce'
|
28
|
-
find: 'detect'
|
29
|
-
find_all: 'select'
|
30
|
-
|
31
23
|
AccessModifierIndentation:
|
32
24
|
Enabled: false
|
33
25
|
|
data/ebooks_renamer.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.description = %q{Bulk rename multiple ebook files (pdf, epub, mobi) using embedded metadata if available (pure ruby implementation)}
|
12
12
|
spec.homepage = 'https://github.com/agilecreativity/ebooks_renamer'
|
13
13
|
spec.license = 'MIT'
|
14
|
-
spec.required_ruby_version = ">=
|
14
|
+
spec.required_ruby_version = ">= 1.9.3"
|
15
15
|
spec.files = Dir.glob('{bin,lib,templates}/**/*') + %w(Gemfile
|
16
16
|
Rakefile
|
17
17
|
ebooks_renamer.gemspec
|
@@ -27,12 +27,12 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_runtime_dependency 'pdf-reader', '~> 1.3.3'
|
28
28
|
spec.add_runtime_dependency 'mobi', '~> 1.0.0'
|
29
29
|
spec.add_runtime_dependency 'epubinfo', '~> 0.4.3'
|
30
|
-
spec.add_runtime_dependency 'filename_cleaner', '~> 0.4.
|
31
|
-
spec.add_runtime_dependency 'agile_utils', '~> 0.2.
|
32
|
-
spec.add_runtime_dependency 'code_lister', '~> 0.2.
|
30
|
+
spec.add_runtime_dependency 'filename_cleaner', '~> 0.4.3'
|
31
|
+
spec.add_runtime_dependency 'agile_utils', '~> 0.2.2'
|
32
|
+
spec.add_runtime_dependency 'code_lister', '~> 0.2.2'
|
33
33
|
|
34
34
|
spec.add_development_dependency 'awesome_print', '~> 1.2.0'
|
35
|
-
spec.add_development_dependency 'bundler', '~> 1.
|
35
|
+
spec.add_development_dependency 'bundler', '~> 1.7.0'
|
36
36
|
spec.add_development_dependency 'gem-ctags', '~> 1.0.6'
|
37
37
|
spec.add_development_dependency 'guard', '~> 2.6.1'
|
38
38
|
spec.add_development_dependency 'guard-minitest', '~> 2.3.1'
|
data/lib/ebooks_renamer.rb
CHANGED
data/lib/ebooks_renamer/cli.rb
CHANGED
@@ -3,8 +3,6 @@ require "agile_utils"
|
|
3
3
|
require_relative "ebooks_renamer"
|
4
4
|
module EbooksRenamer
|
5
5
|
class CLI < Thor
|
6
|
-
using AgileUtils::HashExt
|
7
|
-
|
8
6
|
desc "rename", "Rename ebooks based on given criteria"
|
9
7
|
method_option *AgileUtils::Options::BASE_DIR
|
10
8
|
method_option *AgileUtils::Options::RECURSIVE
|
metadata
CHANGED
@@ -1,265 +1,302 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ebooks_renamer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Burin Choomnuan
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2014-
|
12
|
+
date: 2014-08-14 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: thor
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- -
|
19
|
+
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: 0.19.1
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - ~>
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 0.19.1
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: pdf-reader
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
|
-
- -
|
35
|
+
- - ~>
|
32
36
|
- !ruby/object:Gem::Version
|
33
37
|
version: 1.3.3
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
|
-
- -
|
43
|
+
- - ~>
|
39
44
|
- !ruby/object:Gem::Version
|
40
45
|
version: 1.3.3
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: mobi
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
|
-
- -
|
51
|
+
- - ~>
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: 1.0.0
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
|
-
- -
|
59
|
+
- - ~>
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: 1.0.0
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
63
|
name: epubinfo
|
57
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
58
66
|
requirements:
|
59
|
-
- -
|
67
|
+
- - ~>
|
60
68
|
- !ruby/object:Gem::Version
|
61
69
|
version: 0.4.3
|
62
70
|
type: :runtime
|
63
71
|
prerelease: false
|
64
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
65
74
|
requirements:
|
66
|
-
- -
|
75
|
+
- - ~>
|
67
76
|
- !ruby/object:Gem::Version
|
68
77
|
version: 0.4.3
|
69
78
|
- !ruby/object:Gem::Dependency
|
70
79
|
name: filename_cleaner
|
71
80
|
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
72
82
|
requirements:
|
73
|
-
- -
|
83
|
+
- - ~>
|
74
84
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.4.
|
85
|
+
version: 0.4.3
|
76
86
|
type: :runtime
|
77
87
|
prerelease: false
|
78
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
79
90
|
requirements:
|
80
|
-
- -
|
91
|
+
- - ~>
|
81
92
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.4.
|
93
|
+
version: 0.4.3
|
83
94
|
- !ruby/object:Gem::Dependency
|
84
95
|
name: agile_utils
|
85
96
|
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
86
98
|
requirements:
|
87
|
-
- -
|
99
|
+
- - ~>
|
88
100
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.2.
|
101
|
+
version: 0.2.2
|
90
102
|
type: :runtime
|
91
103
|
prerelease: false
|
92
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
93
106
|
requirements:
|
94
|
-
- -
|
107
|
+
- - ~>
|
95
108
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.2.
|
109
|
+
version: 0.2.2
|
97
110
|
- !ruby/object:Gem::Dependency
|
98
111
|
name: code_lister
|
99
112
|
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
100
114
|
requirements:
|
101
|
-
- -
|
115
|
+
- - ~>
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.2.
|
117
|
+
version: 0.2.2
|
104
118
|
type: :runtime
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
107
122
|
requirements:
|
108
|
-
- -
|
123
|
+
- - ~>
|
109
124
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.2.
|
125
|
+
version: 0.2.2
|
111
126
|
- !ruby/object:Gem::Dependency
|
112
127
|
name: awesome_print
|
113
128
|
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
114
130
|
requirements:
|
115
|
-
- -
|
131
|
+
- - ~>
|
116
132
|
- !ruby/object:Gem::Version
|
117
133
|
version: 1.2.0
|
118
134
|
type: :development
|
119
135
|
prerelease: false
|
120
136
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
121
138
|
requirements:
|
122
|
-
- -
|
139
|
+
- - ~>
|
123
140
|
- !ruby/object:Gem::Version
|
124
141
|
version: 1.2.0
|
125
142
|
- !ruby/object:Gem::Dependency
|
126
143
|
name: bundler
|
127
144
|
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
128
146
|
requirements:
|
129
|
-
- -
|
147
|
+
- - ~>
|
130
148
|
- !ruby/object:Gem::Version
|
131
|
-
version: 1.
|
149
|
+
version: 1.7.0
|
132
150
|
type: :development
|
133
151
|
prerelease: false
|
134
152
|
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
135
154
|
requirements:
|
136
|
-
- -
|
155
|
+
- - ~>
|
137
156
|
- !ruby/object:Gem::Version
|
138
|
-
version: 1.
|
157
|
+
version: 1.7.0
|
139
158
|
- !ruby/object:Gem::Dependency
|
140
159
|
name: gem-ctags
|
141
160
|
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
142
162
|
requirements:
|
143
|
-
- -
|
163
|
+
- - ~>
|
144
164
|
- !ruby/object:Gem::Version
|
145
165
|
version: 1.0.6
|
146
166
|
type: :development
|
147
167
|
prerelease: false
|
148
168
|
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
149
170
|
requirements:
|
150
|
-
- -
|
171
|
+
- - ~>
|
151
172
|
- !ruby/object:Gem::Version
|
152
173
|
version: 1.0.6
|
153
174
|
- !ruby/object:Gem::Dependency
|
154
175
|
name: guard
|
155
176
|
requirement: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
156
178
|
requirements:
|
157
|
-
- -
|
179
|
+
- - ~>
|
158
180
|
- !ruby/object:Gem::Version
|
159
181
|
version: 2.6.1
|
160
182
|
type: :development
|
161
183
|
prerelease: false
|
162
184
|
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
163
186
|
requirements:
|
164
|
-
- -
|
187
|
+
- - ~>
|
165
188
|
- !ruby/object:Gem::Version
|
166
189
|
version: 2.6.1
|
167
190
|
- !ruby/object:Gem::Dependency
|
168
191
|
name: guard-minitest
|
169
192
|
requirement: !ruby/object:Gem::Requirement
|
193
|
+
none: false
|
170
194
|
requirements:
|
171
|
-
- -
|
195
|
+
- - ~>
|
172
196
|
- !ruby/object:Gem::Version
|
173
197
|
version: 2.3.1
|
174
198
|
type: :development
|
175
199
|
prerelease: false
|
176
200
|
version_requirements: !ruby/object:Gem::Requirement
|
201
|
+
none: false
|
177
202
|
requirements:
|
178
|
-
- -
|
203
|
+
- - ~>
|
179
204
|
- !ruby/object:Gem::Version
|
180
205
|
version: 2.3.1
|
181
206
|
- !ruby/object:Gem::Dependency
|
182
207
|
name: minitest
|
183
208
|
requirement: !ruby/object:Gem::Requirement
|
209
|
+
none: false
|
184
210
|
requirements:
|
185
|
-
- -
|
211
|
+
- - ~>
|
186
212
|
- !ruby/object:Gem::Version
|
187
213
|
version: 5.4.0
|
188
214
|
type: :development
|
189
215
|
prerelease: false
|
190
216
|
version_requirements: !ruby/object:Gem::Requirement
|
217
|
+
none: false
|
191
218
|
requirements:
|
192
|
-
- -
|
219
|
+
- - ~>
|
193
220
|
- !ruby/object:Gem::Version
|
194
221
|
version: 5.4.0
|
195
222
|
- !ruby/object:Gem::Dependency
|
196
223
|
name: minitest-spec-context
|
197
224
|
requirement: !ruby/object:Gem::Requirement
|
225
|
+
none: false
|
198
226
|
requirements:
|
199
|
-
- -
|
227
|
+
- - ~>
|
200
228
|
- !ruby/object:Gem::Version
|
201
229
|
version: 0.0.3
|
202
230
|
type: :development
|
203
231
|
prerelease: false
|
204
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
none: false
|
205
234
|
requirements:
|
206
|
-
- -
|
235
|
+
- - ~>
|
207
236
|
- !ruby/object:Gem::Version
|
208
237
|
version: 0.0.3
|
209
238
|
- !ruby/object:Gem::Dependency
|
210
239
|
name: pry
|
211
240
|
requirement: !ruby/object:Gem::Requirement
|
241
|
+
none: false
|
212
242
|
requirements:
|
213
|
-
- -
|
243
|
+
- - ~>
|
214
244
|
- !ruby/object:Gem::Version
|
215
245
|
version: 0.10.0
|
216
246
|
type: :development
|
217
247
|
prerelease: false
|
218
248
|
version_requirements: !ruby/object:Gem::Requirement
|
249
|
+
none: false
|
219
250
|
requirements:
|
220
|
-
- -
|
251
|
+
- - ~>
|
221
252
|
- !ruby/object:Gem::Version
|
222
253
|
version: 0.10.0
|
223
254
|
- !ruby/object:Gem::Dependency
|
224
255
|
name: rake
|
225
256
|
requirement: !ruby/object:Gem::Requirement
|
257
|
+
none: false
|
226
258
|
requirements:
|
227
|
-
- -
|
259
|
+
- - ~>
|
228
260
|
- !ruby/object:Gem::Version
|
229
261
|
version: 10.3.2
|
230
262
|
type: :development
|
231
263
|
prerelease: false
|
232
264
|
version_requirements: !ruby/object:Gem::Requirement
|
265
|
+
none: false
|
233
266
|
requirements:
|
234
|
-
- -
|
267
|
+
- - ~>
|
235
268
|
- !ruby/object:Gem::Version
|
236
269
|
version: 10.3.2
|
237
270
|
- !ruby/object:Gem::Dependency
|
238
271
|
name: rubocop
|
239
272
|
requirement: !ruby/object:Gem::Requirement
|
273
|
+
none: false
|
240
274
|
requirements:
|
241
|
-
- -
|
275
|
+
- - ~>
|
242
276
|
- !ruby/object:Gem::Version
|
243
277
|
version: 0.24.1
|
244
278
|
type: :development
|
245
279
|
prerelease: false
|
246
280
|
version_requirements: !ruby/object:Gem::Requirement
|
281
|
+
none: false
|
247
282
|
requirements:
|
248
|
-
- -
|
283
|
+
- - ~>
|
249
284
|
- !ruby/object:Gem::Version
|
250
285
|
version: 0.24.1
|
251
286
|
- !ruby/object:Gem::Dependency
|
252
287
|
name: yard
|
253
288
|
requirement: !ruby/object:Gem::Requirement
|
289
|
+
none: false
|
254
290
|
requirements:
|
255
|
-
- -
|
291
|
+
- - ~>
|
256
292
|
- !ruby/object:Gem::Version
|
257
293
|
version: 0.8.7
|
258
294
|
type: :development
|
259
295
|
prerelease: false
|
260
296
|
version_requirements: !ruby/object:Gem::Requirement
|
297
|
+
none: false
|
261
298
|
requirements:
|
262
|
-
- -
|
299
|
+
- - ~>
|
263
300
|
- !ruby/object:Gem::Version
|
264
301
|
version: 0.8.7
|
265
302
|
description: Bulk rename multiple ebook files (pdf, epub, mobi) using embedded metadata
|
@@ -271,45 +308,45 @@ executables:
|
|
271
308
|
extensions: []
|
272
309
|
extra_rdoc_files: []
|
273
310
|
files:
|
274
|
-
- ".gitignore"
|
275
|
-
- ".rubocop.yml"
|
276
|
-
- Gemfile
|
277
|
-
- LICENSE
|
278
|
-
- README.md
|
279
|
-
- Rakefile
|
280
311
|
- bin/ebooks_renamer
|
281
|
-
- ebooks_renamer.gemspec
|
282
|
-
- lib/ebooks_renamer.rb
|
283
312
|
- lib/ebooks_renamer/cli.rb
|
284
313
|
- lib/ebooks_renamer/ebooks_renamer.rb
|
285
314
|
- lib/ebooks_renamer/epub_parser.rb
|
286
|
-
- lib/ebooks_renamer/logger.rb
|
287
315
|
- lib/ebooks_renamer/mobi_parser.rb
|
288
316
|
- lib/ebooks_renamer/pdf_parser.rb
|
289
317
|
- lib/ebooks_renamer/version.rb
|
318
|
+
- lib/ebooks_renamer.rb
|
319
|
+
- Gemfile
|
320
|
+
- Rakefile
|
321
|
+
- ebooks_renamer.gemspec
|
322
|
+
- README.md
|
323
|
+
- LICENSE
|
324
|
+
- .rubocop.yml
|
325
|
+
- .gitignore
|
290
326
|
homepage: https://github.com/agilecreativity/ebooks_renamer
|
291
327
|
licenses:
|
292
328
|
- MIT
|
293
|
-
metadata: {}
|
294
329
|
post_install_message:
|
295
330
|
rdoc_options: []
|
296
331
|
require_paths:
|
297
332
|
- lib
|
298
333
|
required_ruby_version: !ruby/object:Gem::Requirement
|
334
|
+
none: false
|
299
335
|
requirements:
|
300
|
-
- -
|
336
|
+
- - ! '>='
|
301
337
|
- !ruby/object:Gem::Version
|
302
|
-
version:
|
338
|
+
version: 1.9.3
|
303
339
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
340
|
+
none: false
|
304
341
|
requirements:
|
305
|
-
- -
|
342
|
+
- - ! '>='
|
306
343
|
- !ruby/object:Gem::Version
|
307
344
|
version: '0'
|
308
345
|
requirements: []
|
309
346
|
rubyforge_project:
|
310
|
-
rubygems_version:
|
347
|
+
rubygems_version: 1.8.23.2
|
311
348
|
signing_key:
|
312
|
-
specification_version:
|
349
|
+
specification_version: 3
|
313
350
|
summary: Bulk rename multiple ebook files (pdf, epub, mobi) using embedded metadata
|
314
351
|
when available (pure ruby implementation)
|
315
352
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 936695fbcb9f9594b70a33f835a9e43a1dad1aa6
|
4
|
-
data.tar.gz: fa6cfa06158d618afb4434fcfb66ff148e7a0ca0
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 59f29a40f1771f9d21b31b02944ecd10219c6ba738c125f54e1fca772b191495b27ef567a0bcc4fcbe9e47ddaecf33ebbcd8b5c03160edea9bee70ec8623bda5
|
7
|
-
data.tar.gz: d0ddf509fa2655694fd840705b95a1cde5a006843d34a16f08607f3b2e3c6b3311ca192666093cf2d1ef85fee7c3eb131227e69592929ff072347db2685cced2
|