filename_cleaner 0.3.11 → 0.4.0

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: c6e7c4d2b74bf70c0ebc691636411eba582774f0
4
- data.tar.gz: dcdab750202edc88dafb11bc4f06b403ec384e0d
3
+ metadata.gz: c1e49ef9a723cc040a76ab070bcaca7ba0a8c455
4
+ data.tar.gz: b94558846df30967683be1e1244f4d4bd1a5b710
5
5
  SHA512:
6
- metadata.gz: b3291eae4d4f047ef25fda3a86ec963471f4fe258f4124394ff77fa461d36a2b20b5bb59c4da5c577b579ec027e48bc7ddf35ff624f8ccd3798e07f691923a2d
7
- data.tar.gz: 901dca9581b8e59844f05768fbf4de51cbed3079024d81e18cec6fae89c83dd108495f8580c9e9fc07925204c91959165f8ed87a4abd2cac8693f7282868bad2
6
+ metadata.gz: 4402ef656132e1c0ecd40004c5227a5b5121aa0a755862002f2a536da5c1a929bd19fa6e6141b3e4b848eb16298f29917d22fc26bb26c0b64dd138d40a62a0a9
7
+ data.tar.gz: 55b5e2d7875def5a45231c1461a258411aab020d9e700a502df968669fd95d7ca3b1420ce0a46a8a01fd2c9fc696b507512a97ebb113f68e19b72a119de26507
data/.rubocop.yml CHANGED
@@ -27,15 +27,6 @@ CollectionMethods:
27
27
  find: 'detect'
28
28
  find_all: 'select'
29
29
 
30
- # Do not force public/protected/private keyword to be indented at the same
31
- # level as the def keyword. My personal preference is to outdent these keywords
32
- # because I think when scanning code it makes it easier to identify the
33
- # sections of code and visually separate them. When the keyword is at the same
34
- # level I think it sort of blends in with the def keywords and makes it harder
35
- # to scan the code and see where the sections are.
36
- AccessModifierIndentation:
37
- Enabled: false
38
-
39
30
  # Limit line length
40
31
  LineLength:
41
32
  Enabled: false
@@ -60,9 +51,8 @@ DotPosition:
60
51
  Encoding:
61
52
  Enabled: false
62
53
 
63
- # Enforce outdenting of access modifiers (i.e. public, private, protected)
64
54
  AccessModifierIndentation:
65
- EnforcedStyle: outdent
55
+ Enabled: false
66
56
 
67
57
  EmptyLinesAroundAccessModifier:
68
58
  Enabled: true
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ### 0.4.0
2
+
3
+ * Update to latest gems that do not use monkeypatch
4
+ * Use refinement instead of monkeypatch (using AgileUtils::HashExt)
5
+ * Be more precise about the gem version in the gemspec file
6
+ * Fix the rubocop style
7
+
1
8
  ### 0.3.11
2
9
 
3
10
  * Remove the `core_ext`, and use method from `agile_utils`
@@ -28,18 +28,19 @@ Gem::Specification.new do |spec|
28
28
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
29
29
  spec.require_paths = ["lib"]
30
30
  spec.add_runtime_dependency "thor", "~> 0.19"
31
- spec.add_runtime_dependency "agile_utils", "~> 0.1.5"
32
- spec.add_runtime_dependency "code_lister", "~> 0.1.7"
33
- spec.add_development_dependency "bundler", "~> 1.5"
34
- spec.add_development_dependency "rake", "~> 10.1"
35
- spec.add_development_dependency "awesome_print", "~> 1.2"
31
+ spec.add_runtime_dependency "agile_utils", "~> 0.2.0"
32
+ spec.add_runtime_dependency "code_lister", "~> 0.2.0"
33
+ spec.add_development_dependency "bundler", "~> 1.6.2"
34
+ spec.add_development_dependency "rake", "~> 10.3.2"
35
+ spec.add_development_dependency "awesome_print", "~> 1.2.0"
36
36
  spec.add_development_dependency "minitest-spec-context", "~> 0.0.3"
37
- spec.add_development_dependency "guard-minitest", "~> 2.2"
38
- spec.add_development_dependency "minitest", "~> 5.3"
39
- spec.add_development_dependency "guard", "~> 2.6"
40
- spec.add_development_dependency "pry", "~> 0.9"
41
- spec.add_development_dependency "gem-ctags", "~> 1.0"
42
- spec.add_development_dependency "yard", "~> 0.8"
43
- spec.add_development_dependency "rubocop", "~> 0.23"
44
- spec.add_development_dependency "coveralls", "~> 0.7"
37
+ spec.add_development_dependency "guard-minitest", "~> 2.3.1"
38
+ spec.add_development_dependency "minitest", "~> 5.4.0"
39
+ spec.add_development_dependency "guard", "~> 2.6.1"
40
+ spec.add_development_dependency "pry", "~> 0.10.0"
41
+ spec.add_development_dependency "pry-byebug", "~> 1.3.3"
42
+ spec.add_development_dependency "gem-ctags", "~> 1.0.6"
43
+ spec.add_development_dependency "yard", "~> 0.8.7"
44
+ spec.add_development_dependency "rubocop", "~> 0.24.1"
45
+ spec.add_development_dependency "coveralls", "~> 0.7.0"
45
46
  end
@@ -4,6 +4,8 @@ require "fileutils"
4
4
  require_relative "../filename_cleaner"
5
5
  module FilenameCleaner
6
6
  class CLI < Thor
7
+ using AgileUtils::HashExt
8
+
7
9
  # rubocop:disable AmbiguousOperator, LineLength
8
10
  desc "rename", "Sanitize and rename file with special characters"
9
11
  method_option *AgileUtils::Options::BASE_DIR
@@ -1,3 +1,3 @@
1
1
  module FilenameCleaner
2
- VERSION = "0.3.11"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filename_cleaner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.11
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burin Choomnuan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-23 00:00:00.000000000 Z
11
+ date: 2014-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -30,70 +30,70 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.5
33
+ version: 0.2.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.5
40
+ version: 0.2.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: code_lister
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.1.7
47
+ version: 0.2.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.1.7
54
+ version: 0.2.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.5'
61
+ version: 1.6.2
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.5'
68
+ version: 1.6.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '10.1'
75
+ version: 10.3.2
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '10.1'
82
+ version: 10.3.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: awesome_print
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.2'
89
+ version: 1.2.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '1.2'
96
+ version: 1.2.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: minitest-spec-context
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -114,112 +114,126 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '2.2'
117
+ version: 2.3.1
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '2.2'
124
+ version: 2.3.1
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: minitest
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '5.3'
131
+ version: 5.4.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '5.3'
138
+ version: 5.4.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: guard
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '2.6'
145
+ version: 2.6.1
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '2.6'
152
+ version: 2.6.1
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: pry
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '0.9'
159
+ version: 0.10.0
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '0.9'
166
+ version: 0.10.0
167
+ - !ruby/object:Gem::Dependency
168
+ name: pry-byebug
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: 1.3.3
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: 1.3.3
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: gem-ctags
169
183
  requirement: !ruby/object:Gem::Requirement
170
184
  requirements:
171
185
  - - "~>"
172
186
  - !ruby/object:Gem::Version
173
- version: '1.0'
187
+ version: 1.0.6
174
188
  type: :development
175
189
  prerelease: false
176
190
  version_requirements: !ruby/object:Gem::Requirement
177
191
  requirements:
178
192
  - - "~>"
179
193
  - !ruby/object:Gem::Version
180
- version: '1.0'
194
+ version: 1.0.6
181
195
  - !ruby/object:Gem::Dependency
182
196
  name: yard
183
197
  requirement: !ruby/object:Gem::Requirement
184
198
  requirements:
185
199
  - - "~>"
186
200
  - !ruby/object:Gem::Version
187
- version: '0.8'
201
+ version: 0.8.7
188
202
  type: :development
189
203
  prerelease: false
190
204
  version_requirements: !ruby/object:Gem::Requirement
191
205
  requirements:
192
206
  - - "~>"
193
207
  - !ruby/object:Gem::Version
194
- version: '0.8'
208
+ version: 0.8.7
195
209
  - !ruby/object:Gem::Dependency
196
210
  name: rubocop
197
211
  requirement: !ruby/object:Gem::Requirement
198
212
  requirements:
199
213
  - - "~>"
200
214
  - !ruby/object:Gem::Version
201
- version: '0.23'
215
+ version: 0.24.1
202
216
  type: :development
203
217
  prerelease: false
204
218
  version_requirements: !ruby/object:Gem::Requirement
205
219
  requirements:
206
220
  - - "~>"
207
221
  - !ruby/object:Gem::Version
208
- version: '0.23'
222
+ version: 0.24.1
209
223
  - !ruby/object:Gem::Dependency
210
224
  name: coveralls
211
225
  requirement: !ruby/object:Gem::Requirement
212
226
  requirements:
213
227
  - - "~>"
214
228
  - !ruby/object:Gem::Version
215
- version: '0.7'
229
+ version: 0.7.0
216
230
  type: :development
217
231
  prerelease: false
218
232
  version_requirements: !ruby/object:Gem::Requirement
219
233
  requirements:
220
234
  - - "~>"
221
235
  - !ruby/object:Gem::Version
222
- version: '0.7'
236
+ version: 0.7.0
223
237
  description: " Bulk rename and remove unwanted characters from list of files in any
224
238
  directory recursively.\n Turn something like 'my_#$@#$_bad_$!@_filename!!.txt' into
225
239
  'my_bad_filename.txt'\n "