wetransfer_style 0.8.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/ruby/default.yml +88 -24
  4. metadata +8 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c61d38a3aadcdd9d2a165fffcaa16274cde56aa33bb7459de017bbd078e687c6
4
- data.tar.gz: 6c5ddc6b63fbf5aa5d59935d951d1b06212c2af34ca661486c125a7b6f5ff10a
3
+ metadata.gz: 3b9db2f5338afed84e56fb76b5bd6df8216746e8393732a1e85b86913c608227
4
+ data.tar.gz: b7b491308376facb7338d09189ae46ad2e1b3735431d7a6a7aabb1a7e785983e
5
5
  SHA512:
6
- metadata.gz: 1e9d395b9396de5de515fe25776cd11c862bb1410b54af1696c3dabd6eef413a42b03ecb192b9e6799a049d5b181c3fb6dc690341ed192569140c4bbb8179a2d
7
- data.tar.gz: 89916f75a7f722d53f6ca318491b42193b367a6f97a12e7a9afa0b0107bfec4870693fc4ebe6c37dccb3ecafacc2bedb2b10346250a6d36516fa92c253807b8a
6
+ metadata.gz: 3db2b0f1711ab01c235e327c519e1b76df4fadb8cff543d00f21fc7930144344246966b458c0d2599d9e724287481b432496c1c0a142a9d849d701f9376c1308
7
+ data.tar.gz: 139f56a13613d47431243b4adb1eec1030debd6aa977f00e2991c9cae6d615fef02e3baaa0afc7621df4c951981f7d1109a7aac6d1ef8e0936f943919d04f2b3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.0
4
+
5
+ [Changed]
6
+
7
+ - Pin Rubocop version to 1.45.1
8
+ - Set TargetRubyVersion to 3.2
9
+
10
+ ## 1.0.0
11
+
12
+ [Changed]
13
+
14
+ - Pin Rubocop version to 1.22.1
15
+ - Set TargetRubyVersion to 3.0
16
+
3
17
  ## 0.8.0
4
18
 
5
19
  [Changed]
data/ruby/default.yml CHANGED
@@ -2,7 +2,8 @@
2
2
  # specify what we *need*
3
3
  AllCops:
4
4
  DisabledByDefault: true
5
- TargetRubyVersion: 2.7
5
+ TargetRubyVersion: 3.2
6
+ SuggestExtensions: False
6
7
 
7
8
  Layout/AccessModifierIndentation:
8
9
  Enabled: True
@@ -18,9 +19,6 @@ Layout/ClosingParenthesisIndentation:
18
19
  Enabled: True
19
20
  Layout/CommentIndentation:
20
21
  Enabled: True
21
- # TODO: This is not working as expected, as of rubocop 0.52.0
22
- # Layout/ElseAlignment:
23
- # Enabled: True
24
22
  Layout/EmptyLineAfterMagicComment:
25
23
  Enabled: True
26
24
  Layout/EmptyLineBetweenDefs:
@@ -54,7 +52,7 @@ Layout/FirstHashElementIndentation:
54
52
  Layout/FirstHashElementLineBreak:
55
53
  Enabled: True
56
54
  Layout/FirstMethodArgumentLineBreak:
57
- Enabled: True
55
+ Enabled: False
58
56
  Layout/FirstMethodParameterLineBreak:
59
57
  Enabled: True
60
58
  Layout/FirstParameterIndentation:
@@ -63,21 +61,24 @@ Layout/HeredocIndentation:
63
61
  Enabled: True
64
62
  Layout/IndentationConsistency:
65
63
  Enabled: True
66
- # TODO: This is not working as expected, as of rubocop 0.52.0
67
- # Layout/IndentationWidth:
68
- # Enabled: True
69
64
  Layout/InitialIndentation:
70
65
  Enabled: True
71
66
  Layout/HashAlignment:
72
67
  Enabled: True
73
68
  Layout/LeadingCommentSpace:
74
69
  Enabled: True
70
+ Layout/LineContinuationLeadingSpace:
71
+ Enabled: True
72
+ Layout/LineContinuationSpacing:
73
+ Enabled: True
75
74
  Layout/MultilineArrayBraceLayout:
76
75
  Enabled: True
77
76
  Layout/MultilineBlockLayout:
78
77
  Enabled: True
79
78
  Layout/MultilineHashBraceLayout:
80
79
  Enabled: True
80
+ Layout/MultilineMethodParameterLineBreaks:
81
+ Enabled: True
81
82
  Layout/MultilineOperationIndentation:
82
83
  Enabled: True
83
84
  Layout/ParameterAlignment:
@@ -130,12 +131,13 @@ Layout/SpaceInsideReferenceBrackets:
130
131
  Enabled: True
131
132
  Layout/SpaceInsideStringInterpolation:
132
133
  Enabled: True
133
- Layout/Tab:
134
+ Layout/IndentationStyle:
134
135
  Enabled: True
135
136
  Layout/TrailingEmptyLines:
136
137
  Enabled: True
137
138
  Layout/TrailingWhitespace:
138
139
  Enabled: True
140
+
139
141
  Lint/AmbiguousBlockAssociation:
140
142
  Enabled: True
141
143
  Lint/AmbiguousRegexpLiteral:
@@ -144,12 +146,16 @@ Lint/BooleanSymbol:
144
146
  Enabled: True
145
147
  Lint/CircularArgumentReference:
146
148
  Enabled: True
149
+ Lint/ConstantOverwrittenInRescue:
150
+ Enabled: True
147
151
  Lint/Debugger:
148
152
  Enabled: True
149
153
  Lint/DeprecatedClassMethods:
150
154
  Enabled: True
151
155
  Lint/DuplicateCaseCondition:
152
156
  Enabled: True
157
+ Lint/DuplicateMagicComment:
158
+ Enabled: True
153
159
  Lint/DuplicateMethods:
154
160
  Enabled: True
155
161
  Lint/DuplicateHashKey:
@@ -166,11 +172,6 @@ Lint/EmptyInterpolation:
166
172
  Enabled: True
167
173
  Lint/EmptyWhen:
168
174
  Enabled: True
169
- # TODO: This is not working as expected, as of rubocop 0.52.0
170
- # Lint/EndAlignment:
171
- # EnforcedStyleAlignWith: start_of_line
172
- Lint/EndInMethod:
173
- Enabled: True
174
175
  Lint/EnsureReturn:
175
176
  Enabled: True
176
177
  Lint/FlipFlop:
@@ -194,6 +195,8 @@ Lint/LiteralInInterpolation:
194
195
  Enabled: True
195
196
  Lint/Loop:
196
197
  Enabled: True
198
+ Lint/MissingSuper:
199
+ Enabled: True
197
200
  Lint/MultipleComparison:
198
201
  Enabled: True
199
202
  Lint/NestedMethodDefinition:
@@ -202,6 +205,8 @@ Lint/NestedPercentLiteral:
202
205
  Enabled: True
203
206
  Lint/NextWithoutAccumulator:
204
207
  Enabled: True
208
+ Lint/NonAtomicFileOperation:
209
+ Enabled: True
205
210
  Lint/NonLocalExitFromIterator:
206
211
  Enabled: True
207
212
  Lint/ParenthesesAsGroupedExpression:
@@ -220,10 +225,14 @@ Lint/RedundantWithIndex:
220
225
  Enabled: True
221
226
  Lint/RedundantWithObject:
222
227
  Enabled: True
228
+ Lint/RefinementImportMethods:
229
+ Enabled: True
223
230
  Lint/RegexpAsCondition:
224
231
  Enabled: True
225
232
  Lint/RequireParentheses:
226
233
  Enabled: True
234
+ Lint/RequireRangeParentheses:
235
+ Enabled: True
227
236
  Lint/RescueException:
228
237
  Enabled: True
229
238
  Lint/RescueType:
@@ -249,7 +258,7 @@ Lint/UnreachableCode:
249
258
  Lint/UnusedBlockArgument:
250
259
  Enabled: True
251
260
  Lint/UnusedMethodArgument:
252
- Enabled: True
261
+ Enabled: False
253
262
  Lint/UriEscapeUnescape:
254
263
  Enabled: True
255
264
  Lint/UriRegexp:
@@ -258,9 +267,11 @@ Lint/UselessAccessModifier:
258
267
  Enabled: True
259
268
  Lint/UselessAssignment:
260
269
  Enabled: True
261
- Lint/UselessComparison:
270
+ Lint/UselessRuby2Keywords:
262
271
  Enabled: True
263
- Lint/UselessElseWithoutRescue:
272
+ Lint/BinaryOperatorWithIdenticalOperands:
273
+ Enabled: True
274
+ Lint/UselessRescue:
264
275
  Enabled: True
265
276
  Lint/UselessSetterCall:
266
277
  Enabled: True
@@ -271,6 +282,8 @@ Naming/AccessorMethodName:
271
282
  Enabled: True
272
283
  Naming/BinaryOperatorParameterName:
273
284
  Enabled: True
285
+ Naming/BlockForwarding:
286
+ Enabled: True
274
287
  Naming/ClassAndModuleCamelCase:
275
288
  Enabled: True
276
289
  Naming/ConstantName:
@@ -280,9 +293,9 @@ Naming/FileName:
280
293
  Naming/HeredocDelimiterCase:
281
294
  Enabled: True
282
295
  Naming/HeredocDelimiterNaming:
283
- Enabled: True
296
+ Enabled: False
284
297
  Naming/MethodName:
285
- Enabled: True
298
+ Enabled: False
286
299
  Naming/PredicateName:
287
300
  Enabled: True
288
301
  Naming/VariableName:
@@ -291,27 +304,30 @@ Naming/VariableName:
291
304
  Style/Alias:
292
305
  EnforcedStyle: prefer_alias_method
293
306
  Enabled: True
307
+ Style/ArrayIntersect:
308
+ Enabled: True
294
309
  Style/ArrayJoin:
295
310
  Enabled: True
296
311
  Style/BeginBlock:
297
312
  Enabled: True
298
313
  Style/BlockComments:
299
314
  Enabled: True
300
- Style/BracesAroundHashParameters:
301
- Enabled: True
302
- EnforcedStyle: context_dependent
303
315
  Style/CaseEquality:
304
316
  Enabled: True
305
317
  Style/CharacterLiteral:
306
318
  Enabled: True
307
319
  Style/ClassMethods:
308
320
  Enabled: True
321
+ Style/ComparableClamp:
322
+ Enabled: True
309
323
  Style/ColonMethodCall:
310
324
  Enabled: True
311
325
  Style/ColonMethodDefinition:
312
326
  Enabled: True
313
327
  Style/CommentAnnotation:
314
328
  Enabled: True
329
+ Style/ConcatArrayLiterals:
330
+ Enabled: True
315
331
  Style/ConditionalAssignment:
316
332
  Enabled: True
317
333
  Style/DefWithParentheses:
@@ -329,6 +345,8 @@ Style/EmptyCaseCondition:
329
345
  Style/EmptyElse:
330
346
  Enabled: True
331
347
  EnforcedStyle: empty
348
+ Style/EmptyHeredoc:
349
+ Enabled: True
332
350
  Style/EmptyLambdaParameter:
333
351
  Enabled: True
334
352
  Style/EmptyLiteral:
@@ -337,8 +355,16 @@ Style/Encoding:
337
355
  Enabled: True
338
356
  Style/EndBlock:
339
357
  Enabled: True
358
+ Style/EnvHome:
359
+ Enabled: True
340
360
  Style/EvenOdd:
341
361
  Enabled: True
362
+ Style/FetchEnvVar:
363
+ Enabled: True
364
+ Style/FileRead:
365
+ Enabled: True
366
+ Style/FileWrite:
367
+ Enabled: True
342
368
  Style/For:
343
369
  Enabled: True
344
370
  Style/GlobalVars:
@@ -359,20 +385,32 @@ Style/InfiniteLoop:
359
385
  Enabled: True
360
386
  Style/InverseMethods:
361
387
  Enabled: True
388
+ Style/InvertibleUnlessCondition:
389
+ Enabled: True
362
390
  Style/LambdaCall:
363
391
  Enabled: True
364
392
  Style/LineEndConcatenation:
365
393
  Enabled: True
394
+ Style/MagicCommentFormat:
395
+ Enabled: True
396
+ Style/MapCompactWithConditionalBlock:
397
+ Enabled: True
398
+ Style/MapToHash:
399
+ Enabled: True
400
+ Style/MapToSet:
401
+ Enabled: True
366
402
  Style/MethodCallWithoutArgsParentheses:
367
403
  Enabled: True
368
404
  Style/MethodDefParentheses:
369
405
  Enabled: True
370
- Style/MethodMissingSuper:
371
- Enabled: True
372
406
  Style/MissingRespondToMissing:
373
407
  Enabled: True
374
408
  Style/MinMax:
375
409
  Enabled: True
410
+ Style/MinMaxComparison:
411
+ Enabled: True
412
+ Style/MissingElse:
413
+ Enabled: True
376
414
  Style/MixinGrouping:
377
415
  Enabled: True
378
416
  Style/MixinUsage:
@@ -392,6 +430,8 @@ Style/NegatedIf:
392
430
  Enabled: True
393
431
  Style/NegatedWhile:
394
432
  Enabled: True
433
+ Style/NestedFileDirname:
434
+ Enabled: True
395
435
  Style/NestedModifier:
396
436
  Enabled: True
397
437
  Style/NestedParenthesizedCalls:
@@ -406,8 +446,14 @@ Style/NonNilCheck:
406
446
  Enabled: True
407
447
  Style/Not:
408
448
  Enabled: True
449
+ Style/ObjectThen:
450
+ Enabled: True
409
451
  Style/OneLineConditional:
410
452
  Enabled: True
453
+ Style/OpenStructUse:
454
+ Enabled: True
455
+ Style/OperatorMethodCall:
456
+ Enabled: True
411
457
  Style/OptionHash:
412
458
  Enabled: True
413
459
  Style/OptionalArguments:
@@ -430,10 +476,20 @@ Style/RedundantCapitalW:
430
476
  Enabled: True
431
477
  Style/RedundantConditional:
432
478
  Enabled: True
479
+ Style/RedundantConstantBase:
480
+ Enabled: True
481
+ Style/RedundantDoubleSplatHashBraces:
482
+ Enabled: True
483
+ Style/RedundantEach:
484
+ Enabled: True
433
485
  Style/RedundantException:
434
486
  Enabled: True
435
487
  Style/RedundantFreeze:
436
488
  Enabled: True
489
+ Style/RedundantHeredocDelimiterQuotes:
490
+ Enabled: True
491
+ Style/RedundantInitialize:
492
+ Enabled: True
437
493
  Style/RedundantInterpolation:
438
494
  Enabled: True
439
495
  Style/RedundantParentheses:
@@ -442,11 +498,17 @@ Style/RedundantReturn:
442
498
  Enabled: True
443
499
  Style/RedundantSelf:
444
500
  Enabled: True
501
+ Style/RedundantStringEscape:
502
+ Enabled: True
503
+ Style/RequireOrder:
504
+ Enabled: True
445
505
  Style/RescueStandardError:
446
506
  Enabled: True
447
507
  EnforcedStyle: implicit
448
508
  Style/ReturnNil:
449
509
  Enabled: True
510
+ Style/SelectByRegexp:
511
+ Enabled: True
450
512
  Style/SelfAssignment:
451
513
  Enabled: True
452
514
  Style/Semicolon:
@@ -483,3 +545,5 @@ Style/WhileUntilModifier:
483
545
  Enabled: True
484
546
  Style/YodaCondition:
485
547
  Enabled: True
548
+ Style/YodaExpression:
549
+ Enabled: True
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wetransfer_style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Horak
@@ -14,10 +14,10 @@ authors:
14
14
  - Lorenzo Grandi
15
15
  - Tors Dalid
16
16
  - grdw
17
- autorequire:
17
+ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
- date: 2021-07-19 00:00:00.000000000 Z
20
+ date: 2023-02-16 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rubocop
@@ -25,14 +25,14 @@ dependencies:
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.79.0
28
+ version: 1.45.1
29
29
  type: :runtime
30
30
  prerelease: false
31
31
  version_requirements: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.79.0
35
+ version: 1.45.1
36
36
  description: At WeTransfer we code in style. This is our style.
37
37
  email: developers@wetransfer.com
38
38
  executables: []
@@ -50,7 +50,7 @@ metadata:
50
50
  homepage_uri: https://github.com/WeTransfer/wetransfer_style
51
51
  changelog_uri: https://github.com/WeTransfer/wetransfer_style/blob/master/CHANGELOG.md
52
52
  source_code_uri: https://github.com/WeTransfer/wetransfer_style
53
- post_install_message:
53
+ post_install_message:
54
54
  rdoc_options: []
55
55
  require_paths:
56
56
  - lib
@@ -65,8 +65,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
67
  requirements: []
68
- rubygems_version: 3.1.6
69
- signing_key:
68
+ rubygems_version: 3.4.1
69
+ signing_key:
70
70
  specification_version: 4
71
71
  summary: At WeTransfer we code in style. This is our style.
72
72
  test_files: []