ebook_renamer 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,10 @@
1
1
  ### Changelog
2
2
 
3
+ #### 0.2.2
4
+
5
+ - Support ruby version 1.9.3+
6
+ - Minor code cleanup
7
+
3
8
  #### 0.2.1
4
9
 
5
10
  - Make ruby 2.1.0+ mandatory due to the refinement support
data/Gemfile CHANGED
@@ -1,4 +1,2 @@
1
1
  source "https://rubygems.org"
2
-
3
- # Specify your gem's dependencies in ebook_renamer.gemspec
4
2
  gemspec
data/README.md CHANGED
@@ -166,12 +166,18 @@ In addition to the above usage, you can also use the two new flags `--downcase`
166
166
 
167
167
  ```shell
168
168
  # Lowercase each word in the result filename
169
- ebook_renamer --base-dir . --recursive --downcase --commit
169
+ ebook_renamer --base-dir . --sep-string '_' --recursive --downcase --commit
170
+ ```
171
+
172
+ will produce the result filename like `start_with_why_how_great_leader_inspire_everyone_to_take_action_by_simon_sinek.pdf`.
170
173
 
174
+ ```shell
171
175
  # Capitalize each word in the result filename
172
- ebook_renamer --base-dir . --recursive --capitalize --commit
176
+ ebook_renamer --base-dir . --sep-string '_' --recursive --capitalize --commit
173
177
  ```
174
178
 
179
+ will produce the result filename like `Start_With_Why_How_Great_Leader_Inspire_Everyone_To_Take_Action_by_Simon_Sinek.pdf`.
180
+
175
181
  ### Contributing
176
182
 
177
183
  1. Fork it
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.summary = %q{Rename multiple ebook files (pdf, epub, mobi) based on existing metadata if available}
13
13
  spec.homepage = "https://github.com/agilecreativity/ebook_renamer"
14
14
  spec.license = "MIT"
15
- spec.required_ruby_version = ">= 2.1.0"
15
+ spec.required_ruby_version = ">= 1.9.3"
16
16
  spec.files = Dir.glob("{bin,lib}/**/*") + %w[Gemfile
17
17
  Rakefile
18
18
  ebook_renamer.gemspec
@@ -26,11 +26,11 @@ Gem::Specification.new do |spec|
26
26
  spec.require_paths = ["lib"]
27
27
 
28
28
  spec.add_runtime_dependency "thor", "~> 0.19.1"
29
- spec.add_runtime_dependency "agile_utils", "~> 0.2.1"
30
- spec.add_runtime_dependency "code_lister", "~> 0.2.1"
31
- spec.add_runtime_dependency "filename_cleaner", "~> 0.4.2"
29
+ spec.add_runtime_dependency "agile_utils", "~> 0.2.2"
30
+ spec.add_runtime_dependency "code_lister", "~> 0.2.2"
31
+ spec.add_runtime_dependency "filename_cleaner", "~> 0.4.3"
32
32
 
33
- spec.add_development_dependency "bundler", "~> 1.6.2"
33
+ spec.add_development_dependency "bundler", "~> 1.7.0"
34
34
  spec.add_development_dependency "rake", "~> 10.3.2"
35
35
  spec.add_development_dependency "awesome_print", "~> 1.2.0"
36
36
  spec.add_development_dependency "minitest-spec-context", "~> 0.0.3"
@@ -2,6 +2,5 @@ require "thor"
2
2
  require "code_lister"
3
3
  require "agile_utils"
4
4
  require_relative "ebook_renamer/version"
5
- require_relative "ebook_renamer/logger"
6
5
  require_relative "ebook_renamer/ebook_renamer"
7
6
  require_relative "ebook_renamer/cli"
@@ -5,8 +5,6 @@ require "fileutils"
5
5
  require_relative "../ebook_renamer"
6
6
  module EbookRenamer
7
7
  class CLI < Thor
8
- using AgileUtils::HashExt
9
-
10
8
  desc "rename", "Rename multiple ebook files (pdf,epub,mobi) from a given directory"
11
9
  method_option *AgileUtils::Options::BASE_DIR
12
10
  method_option *AgileUtils::Options::RECURSIVE
@@ -1,3 +1,3 @@
1
1
  module EbookRenamer
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,223 +1,254 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ebook_renamer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
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-07-31 00:00:00.000000000 Z
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: agile_utils
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - "~>"
35
+ - - ~>
32
36
  - !ruby/object:Gem::Version
33
- version: 0.2.1
37
+ version: 0.2.2
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
- version: 0.2.1
45
+ version: 0.2.2
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: code_lister
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - "~>"
51
+ - - ~>
46
52
  - !ruby/object:Gem::Version
47
- version: 0.2.1
53
+ version: 0.2.2
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
- version: 0.2.1
61
+ version: 0.2.2
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: filename_cleaner
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - "~>"
67
+ - - ~>
60
68
  - !ruby/object:Gem::Version
61
- version: 0.4.2
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
- version: 0.4.2
77
+ version: 0.4.3
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: bundler
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - "~>"
83
+ - - ~>
74
84
  - !ruby/object:Gem::Version
75
- version: 1.6.2
85
+ version: 1.7.0
76
86
  type: :development
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: 1.6.2
93
+ version: 1.7.0
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: rake
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - "~>"
99
+ - - ~>
88
100
  - !ruby/object:Gem::Version
89
101
  version: 10.3.2
90
102
  type: :development
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
109
  version: 10.3.2
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: awesome_print
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
- - - "~>"
115
+ - - ~>
102
116
  - !ruby/object:Gem::Version
103
117
  version: 1.2.0
104
118
  type: :development
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
125
  version: 1.2.0
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: minitest-spec-context
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
- - - "~>"
131
+ - - ~>
116
132
  - !ruby/object:Gem::Version
117
133
  version: 0.0.3
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: 0.0.3
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: guard-minitest
127
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
128
146
  requirements:
129
- - - "~>"
147
+ - - ~>
130
148
  - !ruby/object:Gem::Version
131
149
  version: 2.3.1
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
157
  version: 2.3.1
139
158
  - !ruby/object:Gem::Dependency
140
159
  name: minitest
141
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
142
162
  requirements:
143
- - - "~>"
163
+ - - ~>
144
164
  - !ruby/object:Gem::Version
145
165
  version: 5.4.0
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: 5.4.0
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: pry
169
192
  requirement: !ruby/object:Gem::Requirement
193
+ none: false
170
194
  requirements:
171
- - - "~>"
195
+ - - ~>
172
196
  - !ruby/object:Gem::Version
173
197
  version: 0.10.0
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: 0.10.0
181
206
  - !ruby/object:Gem::Dependency
182
207
  name: gem-ctags
183
208
  requirement: !ruby/object:Gem::Requirement
209
+ none: false
184
210
  requirements:
185
- - - "~>"
211
+ - - ~>
186
212
  - !ruby/object:Gem::Version
187
213
  version: 1.0.6
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: 1.0.6
195
222
  - !ruby/object:Gem::Dependency
196
223
  name: yard
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.8.7
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.8.7
209
238
  - !ruby/object:Gem::Dependency
210
239
  name: rubocop
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.24.1
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.24.1
223
254
  description: Bulk rename of ebook files (pdf, epub, mobi) based on embedded metadata
@@ -228,43 +259,43 @@ executables:
228
259
  extensions: []
229
260
  extra_rdoc_files: []
230
261
  files:
231
- - ".gitignore"
232
- - ".rubocop.yml"
233
- - CHANGELOG.md
234
- - Gemfile
235
- - LICENSE
236
- - README.md
237
- - Rakefile
238
262
  - bin/ebook_renamer
239
- - ebook_renamer.gemspec
240
- - lib/ebook_renamer.rb
241
263
  - lib/ebook_renamer/cli.rb
242
264
  - lib/ebook_renamer/ebook_renamer.rb
243
- - lib/ebook_renamer/logger.rb
244
265
  - lib/ebook_renamer/version.rb
266
+ - lib/ebook_renamer.rb
267
+ - Gemfile
268
+ - Rakefile
269
+ - ebook_renamer.gemspec
270
+ - README.md
271
+ - CHANGELOG.md
272
+ - LICENSE
273
+ - .rubocop.yml
274
+ - .gitignore
245
275
  homepage: https://github.com/agilecreativity/ebook_renamer
246
276
  licenses:
247
277
  - MIT
248
- metadata: {}
249
278
  post_install_message:
250
279
  rdoc_options: []
251
280
  require_paths:
252
281
  - lib
253
282
  required_ruby_version: !ruby/object:Gem::Requirement
283
+ none: false
254
284
  requirements:
255
- - - ">="
285
+ - - ! '>='
256
286
  - !ruby/object:Gem::Version
257
- version: 2.1.0
287
+ version: 1.9.3
258
288
  required_rubygems_version: !ruby/object:Gem::Requirement
289
+ none: false
259
290
  requirements:
260
- - - ">="
291
+ - - ! '>='
261
292
  - !ruby/object:Gem::Version
262
293
  version: '0'
263
294
  requirements: []
264
295
  rubyforge_project:
265
- rubygems_version: 2.2.2
296
+ rubygems_version: 1.8.23.2
266
297
  signing_key:
267
- specification_version: 4
298
+ specification_version: 3
268
299
  summary: Rename multiple ebook files (pdf, epub, mobi) based on existing metadata
269
300
  if available
270
301
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 1af7f82ee3ae16728c70213345cd72bbe0d5f21d
4
- data.tar.gz: 21437e1b948aee5e683f0b18017d75373ad7e13c
5
- SHA512:
6
- metadata.gz: a4e8586ead1a9178bd8a47725a837904562f4a869acf558aa6661fc0bbba1a9eed3be2490630c7b3568d801265718a10465553c59dd50d0f8e993c5a18d66606
7
- data.tar.gz: 1b4254adf0ebfc95cc47b6c9dade184f0fb18cedfc2b9fb2a1f2bb5c519d5ed5f6dfc0b8656148d8919cd507e1712546038ce62b6a348089ecbde502a8c57dfd
@@ -1,10 +0,0 @@
1
- require "logger"
2
- module EbookRenamer
3
- class << self
4
- attr_writer :logger
5
- # @return [Logger] the Logger for the project
6
- def logger
7
- @logger ||= Logger.new STDOUT
8
- end
9
- end
10
- end