maid 0.10.0.pre.alpha.1 → 0.10.0.pre.alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/coverage.yml +29 -0
- data/.github/workflows/lint.yml +24 -0
- data/.github/workflows/release.yml +5 -2
- data/.gitignore +1 -0
- data/.release-please-manifest.json +1 -1
- data/.rubocop.yml +35 -0
- data/.rubocop_todo.yml +372 -0
- data/CHANGELOG.md +8 -1
- data/Guardfile +31 -4
- data/README.md +3 -3
- data/Rakefile +1 -1
- data/Vagrantfile +2 -2
- data/lib/maid/app.rb +48 -51
- data/lib/maid/maid.rb +38 -38
- data/lib/maid/numeric_extensions.rb +26 -25
- data/lib/maid/platform.rb +1 -1
- data/lib/maid/rake/task.rb +1 -1
- data/lib/maid/repeat.rb +8 -8
- data/lib/maid/rule_container.rb +3 -3
- data/lib/maid/rules.sample.rb +17 -17
- data/lib/maid/tools.rb +142 -127
- data/lib/maid/trash_migration.rb +4 -4
- data/lib/maid/user_agent.rb +2 -2
- data/lib/maid/version.rb +5 -2
- data/lib/maid/watch.rb +10 -12
- data/maid.gemspec +29 -22
- data/spec/dependency_spec.rb +9 -8
- data/spec/lib/maid/app_spec.rb +15 -7
- data/spec/lib/maid/maid_spec.rb +63 -41
- data/spec/lib/maid/numeric_extensions_spec.rb +1 -1
- data/spec/lib/maid/rake/single_rule_spec.rb +4 -5
- data/spec/lib/maid/rake/task_spec.rb +3 -5
- data/spec/lib/maid/rule_spec.rb +1 -1
- data/spec/lib/maid/tools_spec.rb +87 -85
- data/spec/lib/maid/trash_migration_spec.rb +7 -6
- data/spec/lib/maid_spec.rb +1 -1
- data/spec/spec_helper.rb +18 -3
- metadata +161 -58
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.0.pre.alpha.
|
4
|
+
version: 0.10.0.pre.alpha.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Oakes
|
@@ -9,8 +9,42 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-03-
|
12
|
+
date: 2023-03-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: deprecated
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 3.0.0
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 3.0.0
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: dimensions
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 1.0.0
|
35
|
+
- - "<"
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '2.0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: 1.0.0
|
45
|
+
- - "<"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.0'
|
14
48
|
- !ruby/object:Gem::Dependency
|
15
49
|
name: escape
|
16
50
|
requirement: !ruby/object:Gem::Requirement
|
@@ -32,53 +66,47 @@ dependencies:
|
|
32
66
|
- !ruby/object:Gem::Version
|
33
67
|
version: 0.1.0
|
34
68
|
- !ruby/object:Gem::Dependency
|
35
|
-
name:
|
69
|
+
name: exifr
|
36
70
|
requirement: !ruby/object:Gem::Requirement
|
37
71
|
requirements:
|
38
72
|
- - "~>"
|
39
73
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
74
|
+
version: 1.3.10
|
41
75
|
type: :runtime
|
42
76
|
prerelease: false
|
43
77
|
version_requirements: !ruby/object:Gem::Requirement
|
44
78
|
requirements:
|
45
79
|
- - "~>"
|
46
80
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
81
|
+
version: 1.3.10
|
48
82
|
- !ruby/object:Gem::Dependency
|
49
|
-
name:
|
83
|
+
name: geocoder
|
50
84
|
requirement: !ruby/object:Gem::Requirement
|
51
85
|
requirements:
|
52
86
|
- - "~>"
|
53
87
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
88
|
+
version: 1.8.1
|
55
89
|
type: :runtime
|
56
90
|
prerelease: false
|
57
91
|
version_requirements: !ruby/object:Gem::Requirement
|
58
92
|
requirements:
|
59
93
|
- - "~>"
|
60
94
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
95
|
+
version: 1.8.1
|
62
96
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
97
|
+
name: listen
|
64
98
|
requirement: !ruby/object:Gem::Requirement
|
65
99
|
requirements:
|
66
|
-
- - "
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 1.0.0
|
69
|
-
- - "<"
|
100
|
+
- - "~>"
|
70
101
|
- !ruby/object:Gem::Version
|
71
|
-
version:
|
102
|
+
version: 3.8.0
|
72
103
|
type: :runtime
|
73
104
|
prerelease: false
|
74
105
|
version_requirements: !ruby/object:Gem::Requirement
|
75
106
|
requirements:
|
76
|
-
- - "
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version: 1.0.0
|
79
|
-
- - "<"
|
107
|
+
- - "~>"
|
80
108
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
109
|
+
version: 3.8.0
|
82
110
|
- !ruby/object:Gem::Dependency
|
83
111
|
name: mime-types
|
84
112
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,117 +142,145 @@ dependencies:
|
|
114
142
|
- !ruby/object:Gem::Version
|
115
143
|
version: 2.3.2
|
116
144
|
- !ruby/object:Gem::Dependency
|
117
|
-
name:
|
145
|
+
name: rufus-scheduler
|
118
146
|
requirement: !ruby/object:Gem::Requirement
|
119
147
|
requirements:
|
120
148
|
- - "~>"
|
121
149
|
- !ruby/object:Gem::Version
|
122
|
-
version:
|
150
|
+
version: 3.8.2
|
123
151
|
type: :runtime
|
124
152
|
prerelease: false
|
125
153
|
version_requirements: !ruby/object:Gem::Requirement
|
126
154
|
requirements:
|
127
155
|
- - "~>"
|
128
156
|
- !ruby/object:Gem::Version
|
129
|
-
version:
|
157
|
+
version: 3.8.2
|
130
158
|
- !ruby/object:Gem::Dependency
|
131
|
-
name:
|
159
|
+
name: thor
|
132
160
|
requirement: !ruby/object:Gem::Requirement
|
133
161
|
requirements:
|
134
162
|
- - "~>"
|
135
163
|
- !ruby/object:Gem::Version
|
136
|
-
version:
|
164
|
+
version: 1.2.1
|
137
165
|
type: :runtime
|
138
166
|
prerelease: false
|
139
167
|
version_requirements: !ruby/object:Gem::Requirement
|
140
168
|
requirements:
|
141
169
|
- - "~>"
|
142
170
|
- !ruby/object:Gem::Version
|
143
|
-
version:
|
171
|
+
version: 1.2.1
|
144
172
|
- !ruby/object:Gem::Dependency
|
145
|
-
name:
|
173
|
+
name: xdg
|
146
174
|
requirement: !ruby/object:Gem::Requirement
|
147
175
|
requirements:
|
148
176
|
- - "~>"
|
149
177
|
- !ruby/object:Gem::Version
|
150
|
-
version:
|
178
|
+
version: 2.2.3
|
151
179
|
type: :runtime
|
152
180
|
prerelease: false
|
153
181
|
version_requirements: !ruby/object:Gem::Requirement
|
154
182
|
requirements:
|
155
183
|
- - "~>"
|
156
184
|
- !ruby/object:Gem::Version
|
157
|
-
version:
|
185
|
+
version: 2.2.3
|
158
186
|
- !ruby/object:Gem::Dependency
|
159
|
-
name:
|
187
|
+
name: fakefs
|
160
188
|
requirement: !ruby/object:Gem::Requirement
|
161
189
|
requirements:
|
162
190
|
- - "~>"
|
163
191
|
- !ruby/object:Gem::Version
|
164
|
-
version:
|
165
|
-
type: :
|
192
|
+
version: 2.4.0
|
193
|
+
type: :development
|
166
194
|
prerelease: false
|
167
195
|
version_requirements: !ruby/object:Gem::Requirement
|
168
196
|
requirements:
|
169
197
|
- - "~>"
|
170
198
|
- !ruby/object:Gem::Version
|
171
|
-
version:
|
199
|
+
version: 2.4.0
|
172
200
|
- !ruby/object:Gem::Dependency
|
173
|
-
name:
|
201
|
+
name: fuubar
|
174
202
|
requirement: !ruby/object:Gem::Requirement
|
175
203
|
requirements:
|
176
|
-
- - "
|
204
|
+
- - ">="
|
177
205
|
- !ruby/object:Gem::Version
|
178
|
-
version:
|
179
|
-
type: :
|
206
|
+
version: '0'
|
207
|
+
type: :development
|
180
208
|
prerelease: false
|
181
209
|
version_requirements: !ruby/object:Gem::Requirement
|
182
210
|
requirements:
|
183
|
-
- - "
|
211
|
+
- - ">="
|
184
212
|
- !ruby/object:Gem::Version
|
185
|
-
version:
|
213
|
+
version: '0'
|
186
214
|
- !ruby/object:Gem::Dependency
|
187
|
-
name:
|
215
|
+
name: guard
|
188
216
|
requirement: !ruby/object:Gem::Requirement
|
189
217
|
requirements:
|
190
218
|
- - "~>"
|
191
219
|
- !ruby/object:Gem::Version
|
192
|
-
version: 2.
|
220
|
+
version: 2.18.0
|
193
221
|
type: :development
|
194
222
|
prerelease: false
|
195
223
|
version_requirements: !ruby/object:Gem::Requirement
|
196
224
|
requirements:
|
197
225
|
- - "~>"
|
198
226
|
- !ruby/object:Gem::Version
|
199
|
-
version: 2.
|
227
|
+
version: 2.18.0
|
200
228
|
- !ruby/object:Gem::Dependency
|
201
|
-
name: guard
|
229
|
+
name: guard-bundler
|
202
230
|
requirement: !ruby/object:Gem::Requirement
|
203
231
|
requirements:
|
204
232
|
- - "~>"
|
205
233
|
- !ruby/object:Gem::Version
|
206
|
-
version:
|
234
|
+
version: 3.0.1
|
207
235
|
type: :development
|
208
236
|
prerelease: false
|
209
237
|
version_requirements: !ruby/object:Gem::Requirement
|
210
238
|
requirements:
|
211
239
|
- - "~>"
|
212
240
|
- !ruby/object:Gem::Version
|
213
|
-
version:
|
241
|
+
version: 3.0.1
|
214
242
|
- !ruby/object:Gem::Dependency
|
215
243
|
name: guard-rspec
|
216
244
|
requirement: !ruby/object:Gem::Requirement
|
217
245
|
requirements:
|
218
246
|
- - "~>"
|
219
247
|
- !ruby/object:Gem::Version
|
220
|
-
version: 4.
|
248
|
+
version: 4.7.3
|
221
249
|
type: :development
|
222
250
|
prerelease: false
|
223
251
|
version_requirements: !ruby/object:Gem::Requirement
|
224
252
|
requirements:
|
225
253
|
- - "~>"
|
226
254
|
- !ruby/object:Gem::Version
|
227
|
-
version: 4.
|
255
|
+
version: 4.7.3
|
256
|
+
- !ruby/object:Gem::Dependency
|
257
|
+
name: guard-rubocop
|
258
|
+
requirement: !ruby/object:Gem::Requirement
|
259
|
+
requirements:
|
260
|
+
- - ">="
|
261
|
+
- !ruby/object:Gem::Version
|
262
|
+
version: '0'
|
263
|
+
type: :development
|
264
|
+
prerelease: false
|
265
|
+
version_requirements: !ruby/object:Gem::Requirement
|
266
|
+
requirements:
|
267
|
+
- - ">="
|
268
|
+
- !ruby/object:Gem::Version
|
269
|
+
version: '0'
|
270
|
+
- !ruby/object:Gem::Dependency
|
271
|
+
name: pry-byebug
|
272
|
+
requirement: !ruby/object:Gem::Requirement
|
273
|
+
requirements:
|
274
|
+
- - ">="
|
275
|
+
- !ruby/object:Gem::Version
|
276
|
+
version: '0'
|
277
|
+
type: :development
|
278
|
+
prerelease: false
|
279
|
+
version_requirements: !ruby/object:Gem::Requirement
|
280
|
+
requirements:
|
281
|
+
- - ">="
|
282
|
+
- !ruby/object:Gem::Version
|
283
|
+
version: '0'
|
228
284
|
- !ruby/object:Gem::Dependency
|
229
285
|
name: rake
|
230
286
|
requirement: !ruby/object:Gem::Requirement
|
@@ -268,35 +324,35 @@ dependencies:
|
|
268
324
|
- !ruby/object:Gem::Version
|
269
325
|
version: 3.12.0
|
270
326
|
- !ruby/object:Gem::Dependency
|
271
|
-
name:
|
327
|
+
name: rubocop
|
272
328
|
requirement: !ruby/object:Gem::Requirement
|
273
329
|
requirements:
|
274
|
-
- - "
|
330
|
+
- - ">="
|
275
331
|
- !ruby/object:Gem::Version
|
276
|
-
version: 0
|
332
|
+
version: '0'
|
277
333
|
type: :development
|
278
334
|
prerelease: false
|
279
335
|
version_requirements: !ruby/object:Gem::Requirement
|
280
336
|
requirements:
|
281
|
-
- - "
|
337
|
+
- - ">="
|
282
338
|
- !ruby/object:Gem::Version
|
283
|
-
version: 0
|
339
|
+
version: '0'
|
284
340
|
- !ruby/object:Gem::Dependency
|
285
|
-
name:
|
341
|
+
name: rubocop-rake
|
286
342
|
requirement: !ruby/object:Gem::Requirement
|
287
343
|
requirements:
|
288
344
|
- - ">="
|
289
345
|
- !ruby/object:Gem::Version
|
290
|
-
version: 0
|
346
|
+
version: '0'
|
291
347
|
type: :development
|
292
348
|
prerelease: false
|
293
349
|
version_requirements: !ruby/object:Gem::Requirement
|
294
350
|
requirements:
|
295
351
|
- - ">="
|
296
352
|
- !ruby/object:Gem::Version
|
297
|
-
version: 0
|
353
|
+
version: '0'
|
298
354
|
- !ruby/object:Gem::Dependency
|
299
|
-
name:
|
355
|
+
name: rubocop-rspec
|
300
356
|
requirement: !ruby/object:Gem::Requirement
|
301
357
|
requirements:
|
302
358
|
- - ">="
|
@@ -310,19 +366,47 @@ dependencies:
|
|
310
366
|
- !ruby/object:Gem::Version
|
311
367
|
version: '0'
|
312
368
|
- !ruby/object:Gem::Dependency
|
313
|
-
name:
|
369
|
+
name: simplecov
|
370
|
+
requirement: !ruby/object:Gem::Requirement
|
371
|
+
requirements:
|
372
|
+
- - ">="
|
373
|
+
- !ruby/object:Gem::Version
|
374
|
+
version: '0'
|
375
|
+
type: :development
|
376
|
+
prerelease: false
|
377
|
+
version_requirements: !ruby/object:Gem::Requirement
|
378
|
+
requirements:
|
379
|
+
- - ">="
|
380
|
+
- !ruby/object:Gem::Version
|
381
|
+
version: '0'
|
382
|
+
- !ruby/object:Gem::Dependency
|
383
|
+
name: timecop
|
314
384
|
requirement: !ruby/object:Gem::Requirement
|
315
385
|
requirements:
|
316
386
|
- - "~>"
|
317
387
|
- !ruby/object:Gem::Version
|
318
|
-
version: 0.
|
388
|
+
version: 0.9.6
|
319
389
|
type: :development
|
320
390
|
prerelease: false
|
321
391
|
version_requirements: !ruby/object:Gem::Requirement
|
322
392
|
requirements:
|
323
393
|
- - "~>"
|
324
394
|
- !ruby/object:Gem::Version
|
325
|
-
version: 0.
|
395
|
+
version: 0.9.6
|
396
|
+
- !ruby/object:Gem::Dependency
|
397
|
+
name: yard
|
398
|
+
requirement: !ruby/object:Gem::Requirement
|
399
|
+
requirements:
|
400
|
+
- - ">="
|
401
|
+
- !ruby/object:Gem::Version
|
402
|
+
version: 0.9.11
|
403
|
+
type: :development
|
404
|
+
prerelease: false
|
405
|
+
version_requirements: !ruby/object:Gem::Requirement
|
406
|
+
requirements:
|
407
|
+
- - ">="
|
408
|
+
- !ruby/object:Gem::Version
|
409
|
+
version: 0.9.11
|
326
410
|
- !ruby/object:Gem::Dependency
|
327
411
|
name: rb-fsevent
|
328
412
|
requirement: !ruby/object:Gem::Requirement
|
@@ -337,6 +421,20 @@ dependencies:
|
|
337
421
|
- - "~>"
|
338
422
|
- !ruby/object:Gem::Version
|
339
423
|
version: 0.11.2
|
424
|
+
- !ruby/object:Gem::Dependency
|
425
|
+
name: rb-inotify
|
426
|
+
requirement: !ruby/object:Gem::Requirement
|
427
|
+
requirements:
|
428
|
+
- - "~>"
|
429
|
+
- !ruby/object:Gem::Version
|
430
|
+
version: 0.10.1
|
431
|
+
type: :development
|
432
|
+
prerelease: false
|
433
|
+
version_requirements: !ruby/object:Gem::Requirement
|
434
|
+
requirements:
|
435
|
+
- - "~>"
|
436
|
+
- !ruby/object:Gem::Version
|
437
|
+
version: 0.10.1
|
340
438
|
description: Be lazy. Let Maid clean up after you, based on rules you define. Think
|
341
439
|
of it as "Hazel for hackers".
|
342
440
|
email:
|
@@ -349,11 +447,15 @@ extra_rdoc_files: []
|
|
349
447
|
files:
|
350
448
|
- ".act-env"
|
351
449
|
- ".act-secrets.example"
|
450
|
+
- ".github/workflows/coverage.yml"
|
451
|
+
- ".github/workflows/lint.yml"
|
352
452
|
- ".github/workflows/release.yml"
|
353
453
|
- ".github/workflows/test.yml"
|
354
454
|
- ".gitignore"
|
355
455
|
- ".release-please-manifest.json"
|
356
456
|
- ".rspec"
|
457
|
+
- ".rubocop.yml"
|
458
|
+
- ".rubocop_todo.yml"
|
357
459
|
- ".ruby-gemset"
|
358
460
|
- ".ruby-version"
|
359
461
|
- ".yardopts"
|
@@ -423,6 +525,7 @@ metadata:
|
|
423
525
|
documentation_uri: https://github.com/maid/maid/blob/master/README.md
|
424
526
|
source_code_uri: https://github.com/maid/maid
|
425
527
|
wiki_uri: https://github.com/maid/maid/wiki
|
528
|
+
rubygems_mfa_required: 'true'
|
426
529
|
post_install_message: "\U0001F64F Thank you for installing Maid, we hope it's useful
|
427
530
|
to you! Visit http://github.com/maid/maid to report issues or contribute code."
|
428
531
|
rdoc_options: []
|