aroundhome_cops 5.0.2 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +1 -8
- data/.ruby-version +1 -1
- data/CHANGELOG.md +12 -1
- data/aroundhome_cops.gemspec +3 -3
- data/default.yml +161 -1
- data/lib/aroundhome_cops.rb +1 -1
- metadata +12 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a35fcd55f78d6a4fb19bc2a788ea4823866b8367b3b8223ae5d84390d27e6911
|
|
4
|
+
data.tar.gz: bc4712d7e3da71cdf98a2d3e83f25129756cb41beec1c63dace41229247aa8ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: db604599b4b66e0481ecabb06debc543df1000feb641903b5d8f7b98bb9d403048dcecc023e41f1f9a61cb54db0aef9c569e4766ec994c3ac32721685dd6d800
|
|
7
|
+
data.tar.gz: dc707c3c258a163f0ece5b506089c4992e3ea941ee0074b3b5628f3054b571867de47119bfabdaefe2f1a2829a65eb07f031db3778f80c307504ad2f0273dc6b
|
data/.gitlab-ci.yml
CHANGED
|
@@ -20,14 +20,7 @@ rubocop:
|
|
|
20
20
|
publish_gem:
|
|
21
21
|
stage: publish
|
|
22
22
|
script:
|
|
23
|
-
- mkdir ~/.gem
|
|
24
|
-
- |
|
|
25
|
-
cat << EOF > ~/.gem/credentials
|
|
26
|
-
---
|
|
27
|
-
:rubygems_api_key: ${RUBYGEMS_API_KEY}
|
|
28
|
-
EOF
|
|
29
|
-
- chmod 0600 ~/.gem/credentials
|
|
30
23
|
- gem build aroundhome_cops.gemspec
|
|
31
24
|
- gem push $(find `pwd` -name "aroundhome_cops-*.gem")
|
|
32
25
|
only:
|
|
33
|
-
-
|
|
26
|
+
- main
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
3.3.0
|
data/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
|
+
## Version 6.0.0
|
|
2
|
+
|
|
3
|
+
* Update underlying rubocop to at least 1.63
|
|
4
|
+
* Opt into all Rubocop offenses up until 1.63
|
|
5
|
+
* **Breaking**: Effectively dropping runtime support for Ruby 2.6 and below
|
|
6
|
+
* Adds support for Ruby 3.3
|
|
7
|
+
|
|
8
|
+
## Version 5.1.0
|
|
9
|
+
|
|
10
|
+
* Disable `Rake/Desc` cop
|
|
11
|
+
|
|
1
12
|
## Version 5.0.2
|
|
2
13
|
* use EnforcedStyle: explicit for [BlockForwarding](https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Naming/BlockForwarding)
|
|
3
14
|
|
|
4
15
|
## Version 5.0.1
|
|
5
16
|
* [do not expect syntax](https://www.rubydoc.info/gems/rubocop-rspec/1.10.0/RuboCop/Cop/RSpec/MessageSpies) of [message spies](https://relishapp.com/rspec/rspec-mocks/docs/basics/spies) by default
|
|
6
|
-
|
|
17
|
+
|
|
7
18
|
## Version 5.0.0
|
|
8
19
|
* Opt into all Rubocop offenses up until 1.35 & rspec 2.12
|
|
9
20
|
* Update minimum rubocop to 1.35
|
data/aroundhome_cops.gemspec
CHANGED
|
@@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
.reject { |f| f.match(%r{^spec/}) }
|
|
19
19
|
spec.require_paths = ['lib']
|
|
20
20
|
|
|
21
|
-
spec.required_ruby_version = '>= 2.
|
|
21
|
+
spec.required_ruby_version = '>= 2.7.0'
|
|
22
22
|
|
|
23
|
-
spec.add_dependency 'rubocop', '~> 1.
|
|
23
|
+
spec.add_dependency 'rubocop', '~> 1.63'
|
|
24
24
|
spec.add_dependency 'rubocop-rake', '~> 0.6'
|
|
25
|
-
spec.add_dependency 'rubocop-rspec', '~> 2.
|
|
25
|
+
spec.add_dependency 'rubocop-rspec', '~> 2.29'
|
|
26
26
|
end
|
data/default.yml
CHANGED
|
@@ -188,6 +188,13 @@ RSpec/MessageSpies:
|
|
|
188
188
|
Gemspec/RequireMFA: # new in 1.23
|
|
189
189
|
Enabled: false
|
|
190
190
|
|
|
191
|
+
# Suggests to add a description to every rake task. However, we only
|
|
192
|
+
# want to describe "public" tasks, not all of them.
|
|
193
|
+
# The cop also flags places where we hook into internal tasks of other gems, e.g.
|
|
194
|
+
# task 'resque:setup' => :environment
|
|
195
|
+
Rake/Desc:
|
|
196
|
+
Enabled: false
|
|
197
|
+
|
|
191
198
|
# ----------------- Rubocop-forced enablements --------------
|
|
192
199
|
|
|
193
200
|
# Since version 0.80 rubocop wants to cause fewer breaking changes by new cops.
|
|
@@ -326,6 +333,78 @@ Style/OpenStructUse: # new in 1.23
|
|
|
326
333
|
Enabled: true
|
|
327
334
|
Style/RedundantInitialize: # new in 1.27
|
|
328
335
|
Enabled: true
|
|
336
|
+
Gemspec/DevelopmentDependencies: # new in 1.44
|
|
337
|
+
Enabled: true
|
|
338
|
+
Lint/DuplicateMagicComment: # new in 1.37
|
|
339
|
+
Enabled: true
|
|
340
|
+
Lint/DuplicateMatchPattern: # new in 1.50
|
|
341
|
+
Enabled: true
|
|
342
|
+
Lint/ItWithoutArgumentsInBlock: # new in 1.59
|
|
343
|
+
Enabled: true
|
|
344
|
+
Lint/LiteralAssignmentInCondition: # new in 1.58
|
|
345
|
+
Enabled: true
|
|
346
|
+
Lint/MixedCaseRange: # new in 1.53
|
|
347
|
+
Enabled: true
|
|
348
|
+
Lint/RedundantRegexpQuantifiers: # new in 1.53
|
|
349
|
+
Enabled: true
|
|
350
|
+
Lint/UselessRescue: # new in 1.43
|
|
351
|
+
Enabled: true
|
|
352
|
+
Metrics/CollectionLiteralLength: # new in 1.47
|
|
353
|
+
Enabled: true
|
|
354
|
+
Naming/BlockForwarding: # new in 1.24
|
|
355
|
+
Enabled: true
|
|
356
|
+
Style/ArrayIntersect: # new in 1.40
|
|
357
|
+
Enabled: true
|
|
358
|
+
Style/ComparableClamp: # new in 1.44
|
|
359
|
+
Enabled: true
|
|
360
|
+
Style/ConcatArrayLiterals: # new in 1.41
|
|
361
|
+
Enabled: true
|
|
362
|
+
Style/DataInheritance: # new in 1.49
|
|
363
|
+
Enabled: true
|
|
364
|
+
Style/DirEmpty: # new in 1.48
|
|
365
|
+
Enabled: true
|
|
366
|
+
Style/ExactRegexpMatch: # new in 1.51
|
|
367
|
+
Enabled: true
|
|
368
|
+
Style/FileEmpty: # new in 1.48
|
|
369
|
+
Enabled: true
|
|
370
|
+
Style/MapIntoArray: # new in 1.63
|
|
371
|
+
Enabled: true
|
|
372
|
+
Style/MapToSet: # new in 1.42
|
|
373
|
+
Enabled: true
|
|
374
|
+
Style/MinMaxComparison: # new in 1.42
|
|
375
|
+
Enabled: true
|
|
376
|
+
Style/OperatorMethodCall: # new in 1.37
|
|
377
|
+
Enabled: true
|
|
378
|
+
Style/RedundantArrayConstructor: # new in 1.52
|
|
379
|
+
Enabled: true
|
|
380
|
+
Style/RedundantConstantBase: # new in 1.40
|
|
381
|
+
Enabled: true
|
|
382
|
+
Style/RedundantCurrentDirectoryInPath: # new in 1.53
|
|
383
|
+
Enabled: true
|
|
384
|
+
Style/RedundantDoubleSplatHashBraces: # new in 1.41
|
|
385
|
+
Enabled: true
|
|
386
|
+
Style/RedundantEach: # new in 1.38
|
|
387
|
+
Enabled: true
|
|
388
|
+
Style/RedundantFilterChain: # new in 1.52
|
|
389
|
+
Enabled: true
|
|
390
|
+
Style/RedundantHeredocDelimiterQuotes: # new in 1.45
|
|
391
|
+
Enabled: true
|
|
392
|
+
Style/RedundantLineContinuation: # new in 1.49
|
|
393
|
+
Enabled: true
|
|
394
|
+
Style/RedundantRegexpArgument: # new in 1.53
|
|
395
|
+
Enabled: true
|
|
396
|
+
Style/RedundantRegexpConstructor: # new in 1.52
|
|
397
|
+
Enabled: true
|
|
398
|
+
Style/RedundantStringEscape: # new in 1.37
|
|
399
|
+
Enabled: true
|
|
400
|
+
Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
|
|
401
|
+
Enabled: true
|
|
402
|
+
Style/SingleLineDoEndBlock: # new in 1.57
|
|
403
|
+
Enabled: true
|
|
404
|
+
Style/SuperWithArgsParentheses: # new in 1.58
|
|
405
|
+
Enabled: true
|
|
406
|
+
Style/YAMLFileRead: # new in 1.53
|
|
407
|
+
Enabled: true
|
|
329
408
|
|
|
330
409
|
# ----------------- Rubocop-Rspec forced enablements --------------
|
|
331
410
|
RSpec/ExcessiveDocstringSpacing: # (new in 2.5)
|
|
@@ -350,4 +429,85 @@ RSpec/FactoryBot/SyntaxMethods: # new in 2.7
|
|
|
350
429
|
Enabled: true
|
|
351
430
|
RSpec/Rails/HaveHttpStatus: # new in 2.12
|
|
352
431
|
Enabled: true
|
|
353
|
-
|
|
432
|
+
RSpec/RedundantPredicateMatcher: # new in 2.26
|
|
433
|
+
Enabled: true
|
|
434
|
+
RSpec/RemoveConst: # new in 2.26
|
|
435
|
+
Enabled: true
|
|
436
|
+
RSpec/RepeatedSubjectCall: # new in 2.27
|
|
437
|
+
Enabled: true
|
|
438
|
+
RSpec/SkipBlockInsideExample: # new in 2.19
|
|
439
|
+
Enabled: true
|
|
440
|
+
RSpec/SortMetadata: # new in 2.14
|
|
441
|
+
Enabled: true
|
|
442
|
+
RSpec/SpecFilePathFormat: # new in 2.24
|
|
443
|
+
Enabled: true
|
|
444
|
+
RSpec/SpecFilePathSuffix: # new in 2.24
|
|
445
|
+
Enabled: true
|
|
446
|
+
RSpec/UndescriptiveLiteralsDescription: # new in 2.29
|
|
447
|
+
Enabled: true
|
|
448
|
+
RSpec/BeEmpty: # new in 2.20
|
|
449
|
+
Enabled: true
|
|
450
|
+
RSpec/ContainExactly: # new in 2.19
|
|
451
|
+
Enabled: true
|
|
452
|
+
RSpec/DuplicatedMetadata: # new in 2.16
|
|
453
|
+
Enabled: true
|
|
454
|
+
RSpec/EmptyMetadata: # new in 2.24
|
|
455
|
+
Enabled: true
|
|
456
|
+
RSpec/EmptyOutput: # new in 2.29
|
|
457
|
+
Enabled: true
|
|
458
|
+
RSpec/Eq: # new in 2.24
|
|
459
|
+
Enabled: true
|
|
460
|
+
RSpec/IndexedLet: # new in 2.20
|
|
461
|
+
Enabled: true
|
|
462
|
+
RSpec/IsExpectedSpecify: # new in 2.27
|
|
463
|
+
Enabled: true
|
|
464
|
+
RSpec/MatchArray: # new in 2.19
|
|
465
|
+
Enabled: true
|
|
466
|
+
RSpec/MetadataStyle: # new in 2.24
|
|
467
|
+
Enabled: true
|
|
468
|
+
RSpec/NoExpectationExample: # new in 2.13
|
|
469
|
+
Enabled: true
|
|
470
|
+
RSpec/PendingWithoutReason: # new in 2.16
|
|
471
|
+
Enabled: true
|
|
472
|
+
RSpec/ReceiveMessages: # new in 2.23
|
|
473
|
+
Enabled: true
|
|
474
|
+
RSpec/RedundantAround: # new in 2.19
|
|
475
|
+
Enabled: true
|
|
476
|
+
Capybara/ClickLinkOrButtonStyle: # new in 2.19
|
|
477
|
+
Enabled: true
|
|
478
|
+
Capybara/MatchStyle: # new in 2.17
|
|
479
|
+
Enabled: true
|
|
480
|
+
Capybara/NegationMatcher: # new in 2.14
|
|
481
|
+
Enabled: true
|
|
482
|
+
Capybara/RedundantWithinFind: # new in 2.20
|
|
483
|
+
Enabled: true
|
|
484
|
+
Capybara/SpecificActions: # new in 2.14
|
|
485
|
+
Enabled: true
|
|
486
|
+
Capybara/SpecificFinders: # new in 2.13
|
|
487
|
+
Enabled: true
|
|
488
|
+
Capybara/RSpec/HaveSelector: # new in 2.19
|
|
489
|
+
Enabled: true
|
|
490
|
+
Capybara/RSpec/PredicateMatcher: # new in 2.19
|
|
491
|
+
Enabled: true
|
|
492
|
+
FactoryBot/AssociationStyle: # new in 2.23
|
|
493
|
+
Enabled: true
|
|
494
|
+
FactoryBot/ConsistentParenthesesStyle: # new in 2.14
|
|
495
|
+
Enabled: true
|
|
496
|
+
FactoryBot/ExcessiveCreateList: # new in 2.25
|
|
497
|
+
Enabled: true
|
|
498
|
+
FactoryBot/FactoryAssociationWithStrategy: # new in 2.23
|
|
499
|
+
Enabled: true
|
|
500
|
+
FactoryBot/FactoryNameStyle: # new in 2.16
|
|
501
|
+
Enabled: true
|
|
502
|
+
FactoryBot/IdSequence: # new in 2.24
|
|
503
|
+
Enabled: true
|
|
504
|
+
FactoryBot/RedundantFactoryOption: # new in 2.23
|
|
505
|
+
Enabled: true
|
|
506
|
+
RSpecRails/InferredSpecType: # new in 2.14
|
|
507
|
+
Enabled: true
|
|
508
|
+
RSpecRails/MinitestAssertions: # new in 2.17
|
|
509
|
+
Enabled: true
|
|
510
|
+
RSpecRails/NegationBeValid: # new in 2.23
|
|
511
|
+
Enabled: true
|
|
512
|
+
RSpecRails/TravelAround: # new in 2.19
|
|
513
|
+
Enabled: true
|
data/lib/aroundhome_cops.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aroundhome_cops
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 6.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jan Sandbrink
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-04-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '1.
|
|
19
|
+
version: '1.63'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '1.
|
|
26
|
+
version: '1.63'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rubocop-rake
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -44,15 +44,15 @@ dependencies:
|
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '2.
|
|
47
|
+
version: '2.29'
|
|
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: '2.
|
|
55
|
-
description:
|
|
54
|
+
version: '2.29'
|
|
55
|
+
description:
|
|
56
56
|
email:
|
|
57
57
|
- jan.sandbrink@aroundhome.de
|
|
58
58
|
executables: []
|
|
@@ -72,7 +72,7 @@ files:
|
|
|
72
72
|
homepage: https://github.com/aroundhome/aroundhome_cops
|
|
73
73
|
licenses: []
|
|
74
74
|
metadata: {}
|
|
75
|
-
post_install_message:
|
|
75
|
+
post_install_message:
|
|
76
76
|
rdoc_options: []
|
|
77
77
|
require_paths:
|
|
78
78
|
- lib
|
|
@@ -80,15 +80,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
80
80
|
requirements:
|
|
81
81
|
- - ">="
|
|
82
82
|
- !ruby/object:Gem::Version
|
|
83
|
-
version: 2.
|
|
83
|
+
version: 2.7.0
|
|
84
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
requirements:
|
|
86
86
|
- - ">="
|
|
87
87
|
- !ruby/object:Gem::Version
|
|
88
88
|
version: '0'
|
|
89
89
|
requirements: []
|
|
90
|
-
rubygems_version: 3.3
|
|
91
|
-
signing_key:
|
|
90
|
+
rubygems_version: 3.5.3
|
|
91
|
+
signing_key:
|
|
92
92
|
specification_version: 4
|
|
93
93
|
summary: Dependency and configuration for rubocop.
|
|
94
94
|
test_files: []
|