folders_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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## Changelogs
2
2
 
3
+ ### 0.2.2
4
+
5
+ * Support ruby version start from 1.9.3+
6
+ * Misc code cleanup
7
+
3
8
  ### 0.2.1
4
9
 
5
10
  * Only support version 2.1.0+ that fully support refinement
data/Gemfile CHANGED
@@ -1,4 +1,2 @@
1
1
  source "https://rubygems.org"
2
-
3
- # Specify your gem's dependencies in valid_filename.gemspec
4
2
  gemspec
data/Rakefile CHANGED
@@ -1,13 +1,11 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rake/testtask"
3
3
  project_name = "folders_renamer"
4
-
5
4
  Rake::TestTask.new do |t|
6
5
  t.libs << "lib/#{project_name}"
7
6
  t.test_files = FileList["test/lib/#{project_name}/test_*.rb"]
8
7
  t.verbose = true
9
8
  end
10
-
11
9
  task default: [:test, :rubocop]
12
10
  task :pry do
13
11
  require "pry"
@@ -17,7 +15,6 @@ task :pry do
17
15
  ARGV.clear
18
16
  Pry.start
19
17
  end
20
-
21
18
  require "rubocop/rake_task"
22
19
  desc "Run RuboCop on the lib directory"
23
20
  RuboCop::RakeTask.new(:rubocop) do |task|
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  Make the folder consistence and simple to use, work recursively from any directory}
12
12
  spec.description = %q{Bulk cleanup/rename folders name that contain special characters with valid string (dash, dot, underscore, etc)}
13
13
  spec.homepage = "https://github.com/agilecreativity/folders_renamer"
14
- spec.required_ruby_version = ">= 2.1.0"
14
+ spec.required_ruby_version = ">= 1.9.3"
15
15
  spec.license = "MIT"
16
16
  spec.files = Dir.glob("{bin,lib}/**/*") + %w[Gemfile
17
17
  Rakefile
@@ -24,13 +24,11 @@ Gem::Specification.new do |spec|
24
24
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
25
25
  spec.test_files = Dir.glob("{test}/**/*")
26
26
  spec.require_paths = ["lib"]
27
-
28
27
  spec.add_runtime_dependency "thor", "~> 0.19.1"
29
- spec.add_runtime_dependency "agile_utils", "~> 0.2.1"
30
- spec.add_runtime_dependency "filename_cleaner", "~> 0.4.2"
31
-
28
+ spec.add_runtime_dependency "agile_utils", "~> 0.2.2"
29
+ spec.add_runtime_dependency "filename_cleaner", "~> 0.4.3"
32
30
  spec.add_development_dependency "awesome_print", "~> 1.2.0"
33
- spec.add_development_dependency "bundler", "~> 1.6.2"
31
+ spec.add_development_dependency "bundler", "~> 1.7.0"
34
32
  spec.add_development_dependency "gem-ctags", "~> 1.0.6"
35
33
  spec.add_development_dependency "guard", "~> 2.6.1"
36
34
  spec.add_development_dependency "guard-minitest", "~> 2.3.1"
@@ -38,7 +36,6 @@ Gem::Specification.new do |spec|
38
36
  spec.add_development_dependency "minitest-spec-context", "~> 0.0.3"
39
37
  spec.add_development_dependency "minitest-filesystem", "~> 1.2.0"
40
38
  spec.add_development_dependency "pry", "~> 0.10.0"
41
- spec.add_development_dependency "pry-byebug", "~> 1.3.3"
42
39
  spec.add_development_dependency "rake", "~> 10.3.2"
43
40
  spec.add_development_dependency "rubocop", "~> 0.24.1"
44
41
  spec.add_development_dependency "yard", "~> 0.8.7"
@@ -2,8 +2,6 @@ require "thor"
2
2
  require "agile_utils"
3
3
  module FoldersRenamer
4
4
  class CLI < Thor
5
- using AgileUtils::HashExt
6
-
7
5
  desc "rename", "Cleanup and rename folders"
8
6
  method_option "base_dir",
9
7
  aliases: "-b",
@@ -32,7 +32,7 @@ module FoldersRenamer
32
32
  end
33
33
  end
34
34
 
35
- private
35
+ private
36
36
 
37
37
  def find_depth_first(pathname)
38
38
  acc = []
@@ -1,3 +1,3 @@
1
1
  module FoldersRenamer
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -1,5 +1,4 @@
1
1
  require_relative "folders_renamer/version"
2
- require_relative "folders_renamer/logger"
3
2
  require_relative "folders_renamer/folders_renamer"
4
3
  require_relative "folders_renamer/cli"
5
4
  include FoldersRenamer
metadata CHANGED
@@ -1,237 +1,254 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: folders_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: filename_cleaner
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - "~>"
51
+ - - ~>
46
52
  - !ruby/object:Gem::Version
47
- version: 0.4.2
53
+ version: 0.4.3
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.4.2
61
+ version: 0.4.3
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: awesome_print
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - "~>"
67
+ - - ~>
60
68
  - !ruby/object:Gem::Version
61
69
  version: 1.2.0
62
70
  type: :development
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: 1.2.0
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: gem-ctags
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - "~>"
99
+ - - ~>
88
100
  - !ruby/object:Gem::Version
89
101
  version: 1.0.6
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: 1.0.6
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: guard
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
- - - "~>"
115
+ - - ~>
102
116
  - !ruby/object:Gem::Version
103
117
  version: 2.6.1
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: 2.6.1
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: guard-minitest
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
- - - "~>"
131
+ - - ~>
116
132
  - !ruby/object:Gem::Version
117
133
  version: 2.3.1
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: 2.3.1
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: 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: 5.4.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
157
  version: 5.4.0
139
158
  - !ruby/object:Gem::Dependency
140
159
  name: minitest-spec-context
141
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
142
162
  requirements:
143
- - - "~>"
163
+ - - ~>
144
164
  - !ruby/object:Gem::Version
145
165
  version: 0.0.3
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: 0.0.3
153
174
  - !ruby/object:Gem::Dependency
154
175
  name: minitest-filesystem
155
176
  requirement: !ruby/object:Gem::Requirement
177
+ none: false
156
178
  requirements:
157
- - - "~>"
179
+ - - ~>
158
180
  - !ruby/object:Gem::Version
159
181
  version: 1.2.0
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: 1.2.0
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
- - !ruby/object:Gem::Dependency
182
- name: pry-byebug
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - "~>"
186
- - !ruby/object:Gem::Version
187
- version: 1.3.3
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - "~>"
193
- - !ruby/object:Gem::Version
194
- version: 1.3.3
195
206
  - !ruby/object:Gem::Dependency
196
207
  name: rake
197
208
  requirement: !ruby/object:Gem::Requirement
209
+ none: false
198
210
  requirements:
199
- - - "~>"
211
+ - - ~>
200
212
  - !ruby/object:Gem::Version
201
213
  version: 10.3.2
202
214
  type: :development
203
215
  prerelease: false
204
216
  version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
205
218
  requirements:
206
- - - "~>"
219
+ - - ~>
207
220
  - !ruby/object:Gem::Version
208
221
  version: 10.3.2
209
222
  - !ruby/object:Gem::Dependency
210
223
  name: rubocop
211
224
  requirement: !ruby/object:Gem::Requirement
225
+ none: false
212
226
  requirements:
213
- - - "~>"
227
+ - - ~>
214
228
  - !ruby/object:Gem::Version
215
229
  version: 0.24.1
216
230
  type: :development
217
231
  prerelease: false
218
232
  version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
219
234
  requirements:
220
- - - "~>"
235
+ - - ~>
221
236
  - !ruby/object:Gem::Version
222
237
  version: 0.24.1
223
238
  - !ruby/object:Gem::Dependency
224
239
  name: yard
225
240
  requirement: !ruby/object:Gem::Requirement
241
+ none: false
226
242
  requirements:
227
- - - "~>"
243
+ - - ~>
228
244
  - !ruby/object:Gem::Version
229
245
  version: 0.8.7
230
246
  type: :development
231
247
  prerelease: false
232
248
  version_requirements: !ruby/object:Gem::Requirement
249
+ none: false
233
250
  requirements:
234
- - - "~>"
251
+ - - ~>
235
252
  - !ruby/object:Gem::Version
236
253
  version: 0.8.7
237
254
  description: Bulk cleanup/rename folders name that contain special characters with
@@ -243,45 +260,45 @@ executables:
243
260
  extensions: []
244
261
  extra_rdoc_files: []
245
262
  files:
246
- - ".gitignore"
247
- - ".rubocop.yml"
248
- - CHANGELOG.md
249
- - Gemfile
250
- - LICENSE
251
- - README.md
252
- - Rakefile
253
263
  - bin/folders_renamer
254
- - folders_renamer.gemspec
255
- - lib/folders_renamer.rb
256
264
  - lib/folders_renamer/cli.rb
257
265
  - lib/folders_renamer/folders_renamer.rb
258
- - lib/folders_renamer/logger.rb
259
266
  - lib/folders_renamer/version.rb
267
+ - lib/folders_renamer.rb
268
+ - Gemfile
269
+ - Rakefile
270
+ - folders_renamer.gemspec
271
+ - README.md
272
+ - CHANGELOG.md
273
+ - LICENSE
274
+ - .rubocop.yml
275
+ - .gitignore
260
276
  - test/lib/folders_renamer/test_folders_renamer.rb
261
277
  - test/test_helper.rb
262
278
  homepage: https://github.com/agilecreativity/folders_renamer
263
279
  licenses:
264
280
  - MIT
265
- metadata: {}
266
281
  post_install_message:
267
282
  rdoc_options: []
268
283
  require_paths:
269
284
  - lib
270
285
  required_ruby_version: !ruby/object:Gem::Requirement
286
+ none: false
271
287
  requirements:
272
- - - ">="
288
+ - - ! '>='
273
289
  - !ruby/object:Gem::Version
274
- version: 2.1.0
290
+ version: 1.9.3
275
291
  required_rubygems_version: !ruby/object:Gem::Requirement
292
+ none: false
276
293
  requirements:
277
- - - ">="
294
+ - - ! '>='
278
295
  - !ruby/object:Gem::Version
279
296
  version: '0'
280
297
  requirements: []
281
298
  rubyforge_project:
282
- rubygems_version: 2.2.2
299
+ rubygems_version: 1.8.23.2
283
300
  signing_key:
284
- specification_version: 4
301
+ specification_version: 3
285
302
  summary: Bulk cleanup/rename folders using with your choice of string (dash, dot,
286
303
  underscore, etc). Make the folder consistence and simple to use, work recursively
287
304
  from any directory
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 3ba0d88407b5417dd5d83cbaffb38187e995481e
4
- data.tar.gz: 24df95bb4ef0c285e510abd2d4dbe93df9300996
5
- SHA512:
6
- metadata.gz: 084c21e50b966310284e2d07ccbd9c5d8a0fe247bc0384ffa7d466c591572b8a26c2ea17ce6633590f12a2c9f627b0344f7492959027368d727c272f45a5b939
7
- data.tar.gz: 427a4b6d8437a9666e74c41bcfa4fcb79aa7bdda3c7a2c0b09bc2ea4788f7b0fa8bb4d0297d14ed89d93f96840ffd14e931c8c44f8b87ec1d6bf46b4762b5a2b
@@ -1,10 +0,0 @@
1
- require "logger"
2
- module FoldersRenamer
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