aroundhome_cops 6.0.1 → 7.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 517552a00778127bcd6d59387e3bf7b37b9aaf5ebef291b955548413ceba9b6e
4
- data.tar.gz: 83531d7101e998e0d121f985dc36d224a145f1bb25742b844811aa856515cacf
3
+ metadata.gz: 3764a346a915e3d798ef815424c7a68033a0aaaf47c6aac5cd4ec761b414d1cd
4
+ data.tar.gz: '08cfc25a55ba415696ade0ccd585f4d21f5b5b390aa03003eddf37e07d17fd72'
5
5
  SHA512:
6
- metadata.gz: 78161b654b59f80b7c96ee975910ba7ecb9aba9037035cf9486e721e21195dba76fb1397987185108920957e2b060a4735d35ab84c6cb83e79e279160b96e65d
7
- data.tar.gz: 7462aa9cdb696eafd1bb4b1fa2f7637bf872d37062694c21c21dd19073b2e819a37f44e807de38d61086c5f8d9c4aa301cb361205b45bb72b49975b56108a68a
6
+ metadata.gz: 5bac441ecb313083c4d73d887917dd55806e5e042ce48efd8e81be8d1ce1180f5792b965cff426ec5511556a8ce7d6c26472fa5deadb4177adad0b0fa8b25224
7
+ data.tar.gz: 730a4717e13cb90a8c15851f079e98a5c9b609225da86ae1d3dfcfcfd86cc19b7463292f90bbacb3c385443603321f78fbb4fd1c5c8f1c15d04fcdc7716c2bb5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## Version 7.0.1 (2025-03-31)
2
+
3
+ * Fix incompatibility with more recent versions of rubocop-rspec
4
+
5
+ ## Version 7.0.0 (2024-06-14)
6
+
7
+ * No longer suggest rubocop-factory_bot
8
+ * No longer force fixes after updates for older migrations
9
+ * Update underlying rubocop to at least 1.64
10
+ * Opt into all Rubocop offenses up until 1.64
11
+ * Update underlying rubocop-rspec to at least 2.30
12
+ * Opt into all Rubocop-Rspec offenses up until 2.30
13
+ * Add rubocop-performance as a dependency, to enforce more performant code
14
+
1
15
  ## Version 6.0.1
2
16
 
3
17
  * Fix deprecation warnings and multiple defined default cops
@@ -20,7 +20,8 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.required_ruby_version = '>= 2.7.0'
22
22
 
23
- spec.add_dependency 'rubocop', '~> 1.63'
23
+ spec.add_dependency 'rubocop', '~> 1.64'
24
+ spec.add_dependency 'rubocop-performance', '~> 1.21'
24
25
  spec.add_dependency 'rubocop-rake', '~> 0.6'
25
- spec.add_dependency 'rubocop-rspec', '~> 2.29'
26
+ spec.add_dependency 'rubocop-rspec', '~> 2.30'
26
27
  end
data/default.yml CHANGED
@@ -1,30 +1,31 @@
1
1
  require:
2
+ - rubocop-capybara
3
+ - rubocop-factory_bot
4
+ - rubocop-performance
2
5
  - rubocop-rspec
3
6
  - rubocop-rake
4
7
 
5
8
  AllCops:
6
9
  Exclude:
7
- - 'bin/**/*'
8
- - 'db/schema.rb'
9
- - 'doc/**/*'
10
- - 'docker_app/**/*'
11
- - 'Guardfile'
12
- - 'tmp/**/*'
13
- - 'vendor/**/*'
14
- - 'playground/**/*'
15
- - 'public/**/*'
16
- - 'node_modules/**/*'
17
- - 'db/migrate/200*.rb'
18
- - 'db/migrate/2010*.rb'
19
- - 'db/migrate/2011*.rb'
20
- - 'db/migrate/2012*.rb'
21
- - 'db/migrate/2013*.rb'
22
- - 'db/migrate/2014*.rb'
23
- - 'db/migrate/2015*.rb'
24
- - 'db/migrate/2016*.rb'
25
- - 'db/migrate/2017*.rb'
10
+ - "bin/**/*"
11
+ - "db/schema.rb"
12
+ - "doc/**/*"
13
+ - "docker_app/**/*"
14
+ - "Guardfile"
15
+ - "tmp/**/*"
16
+ - "vendor/**/*"
17
+ - "playground/**/*"
18
+ - "public/**/*"
19
+ - "node_modules/**/*"
20
+ - "db/migrate/200*.rb"
21
+ - "db/migrate/201*.rb"
22
+ - "db/migrate/2020*.rb"
23
+ - "db/migrate/2021*.rb"
24
+ - "db/migrate/2022*.rb"
25
+ - "db/migrate/2023*.rb"
26
26
  SuggestExtensions:
27
27
  rubocop-rails: false
28
+ rubocop-factory_bot: false
28
29
 
29
30
  # While we like to write blocks like the following
30
31
  # expect { add_special_project }.not_to change { SpecialProject.count }
@@ -33,21 +34,20 @@ AllCops:
33
34
  # expect { add_special_project }.not_to(change { SpecialProject.count })
34
35
  Lint/AmbiguousBlockAssociation:
35
36
  Exclude:
36
- - 'spec/**/*'
37
+ - "spec/**/*"
37
38
 
38
39
  # Models can have a bunch of attributes which lead to long methods and high
39
40
  # complexity values. However, these methods are still very readable because they
40
41
  # usually have a lot of repetition.
41
42
  Metrics:
42
43
  Exclude:
43
- - 'db/migrate/*.rb'
44
+ - "db/migrate/*.rb"
44
45
 
45
46
  # See above (Metrics). This cop was previously called Metrics/LineLength
46
47
  # and therefore disabled as well for migrations.
47
48
  Layout/LineLength:
48
49
  Exclude:
49
- - 'db/migrate/*.rb'
50
-
50
+ - "db/migrate/*.rb"
51
51
 
52
52
  # We need to configure exemptions for blocks that we generally accept to be
53
53
  # long, since they are less comparable to methods and more comparable to
@@ -64,10 +64,10 @@ Metrics/BlockLength:
64
64
  - xcontext
65
65
  - xdescribe
66
66
  Exclude:
67
- - 'config/environments/*.rb' # instead of excluding all :configure methods
68
- - 'config/routes.rb'
69
- - 'spec/spec_helper.rb' # instead of excluding all :configure methods
70
- - '*.gemspec' # a gemspec could easily have more than the 25 lines limit
67
+ - "config/environments/*.rb" # instead of excluding all :configure methods
68
+ - "config/routes.rb"
69
+ - "spec/spec_helper.rb" # instead of excluding all :configure methods
70
+ - "*.gemspec" # a gemspec could easily have more than the 25 lines limit
71
71
 
72
72
  # Increase from rubocops default limit of 10 lines.
73
73
  # The idea of increasing the default limit is to reduce the "false alarm rate"
@@ -88,7 +88,7 @@ Style/Documentation:
88
88
  Style/Encoding:
89
89
  Enabled: true
90
90
  Exclude:
91
- - '*.gemspec'
91
+ - "*.gemspec"
92
92
 
93
93
  # Ruby 2.3 introduced optional automatic freezing of string literals
94
94
  # This might become default in future versions.
@@ -141,10 +141,10 @@ Naming/BlockForwarding:
141
141
  # that start with "and" as a connector word "when foo is true and bar is false"
142
142
  RSpec/ContextWording:
143
143
  Prefixes:
144
- - when
145
- - with
146
- - without
147
- - and
144
+ - when
145
+ - with
146
+ - without
147
+ - and
148
148
 
149
149
  # Complex tests require more flexibility in their length than allowed by default (5).
150
150
  RSpec/ExampleLength:
@@ -404,6 +404,10 @@ Style/SuperWithArgsParentheses: # new in 1.58
404
404
  Enabled: true
405
405
  Style/YAMLFileRead: # new in 1.53
406
406
  Enabled: true
407
+ Style/SendWithLiteralMethodName: # new in 1.64
408
+ Enabled: true
409
+ Style/SuperArguments: # new in 1.64
410
+ Enabled: true
407
411
 
408
412
  # ----------------- Rubocop-Rspec forced enablements --------------
409
413
  RSpec/ExcessiveDocstringSpacing: # (new in 2.5)
@@ -510,3 +514,45 @@ RSpecRails/NegationBeValid: # new in 2.23
510
514
  Enabled: true
511
515
  RSpecRails/TravelAround: # new in 2.19
512
516
  Enabled: true
517
+ RSpec/ExpectInLet: # new in 2.30
518
+ Enabled: true
519
+
520
+ # ----------------- Rubocop-Performance forced enablements --------------
521
+ Performance/AncestorsInclude: # new in 1.7
522
+ Enabled: true
523
+ Performance/BigDecimalWithNumericArgument: # new in 1.7
524
+ Enabled: true
525
+ Performance/BlockGivenWithExplicitBlock: # new in 1.9
526
+ Enabled: true
527
+ Performance/CollectionLiteralInLoop: # new in 1.8
528
+ Enabled: true
529
+ Performance/ConcurrentMonotonicTime: # new in 1.12
530
+ Enabled: true
531
+ Performance/ConstantRegexp: # new in 1.9
532
+ Enabled: true
533
+ Performance/MapCompact: # new in 1.11
534
+ Enabled: true
535
+ Performance/MapMethodChain: # new in 1.19
536
+ Enabled: true
537
+ Performance/MethodObjectAsBlock: # new in 1.9
538
+ Enabled: true
539
+ Performance/RedundantEqualityComparisonBlock: # new in 1.10
540
+ Enabled: true
541
+ Performance/RedundantSortBlock: # new in 1.7
542
+ Enabled: true
543
+ Performance/RedundantSplitRegexpArgument: # new in 1.10
544
+ Enabled: true
545
+ Performance/RedundantStringChars: # new in 1.7
546
+ Enabled: true
547
+ Performance/ReverseFirst: # new in 1.7
548
+ Enabled: true
549
+ Performance/SortReverse: # new in 1.7
550
+ Enabled: true
551
+ Performance/Squeeze: # new in 1.7
552
+ Enabled: true
553
+ Performance/StringIdentifierArgument: # new in 1.13
554
+ Enabled: true
555
+ Performance/StringInclude: # new in 1.7
556
+ Enabled: true
557
+ Performance/Sum: # new in 1.8
558
+ Enabled: true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AroundhomeCops
4
- VERSION = '6.0.1'
4
+ VERSION = '7.0.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aroundhome_cops
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.1
4
+ version: 7.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Sandbrink
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-04-15 00:00:00.000000000 Z
10
+ date: 2025-03-31 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rubocop
@@ -16,14 +15,28 @@ dependencies:
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '1.63'
18
+ version: '1.64'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: '1.63'
25
+ version: '1.64'
26
+ - !ruby/object:Gem::Dependency
27
+ name: rubocop-performance
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '1.21'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.21'
27
40
  - !ruby/object:Gem::Dependency
28
41
  name: rubocop-rake
29
42
  requirement: !ruby/object:Gem::Requirement
@@ -44,15 +57,14 @@ dependencies:
44
57
  requirements:
45
58
  - - "~>"
46
59
  - !ruby/object:Gem::Version
47
- version: '2.29'
60
+ version: '2.30'
48
61
  type: :runtime
49
62
  prerelease: false
50
63
  version_requirements: !ruby/object:Gem::Requirement
51
64
  requirements:
52
65
  - - "~>"
53
66
  - !ruby/object:Gem::Version
54
- version: '2.29'
55
- description:
67
+ version: '2.30'
56
68
  email:
57
69
  - jan.sandbrink@aroundhome.de
58
70
  executables: []
@@ -72,7 +84,6 @@ files:
72
84
  homepage: https://github.com/aroundhome/aroundhome_cops
73
85
  licenses: []
74
86
  metadata: {}
75
- post_install_message:
76
87
  rdoc_options: []
77
88
  require_paths:
78
89
  - lib
@@ -87,8 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
98
  - !ruby/object:Gem::Version
88
99
  version: '0'
89
100
  requirements: []
90
- rubygems_version: 3.5.3
91
- signing_key:
101
+ rubygems_version: 3.6.2
92
102
  specification_version: 4
93
103
  summary: Dependency and configuration for rubocop.
94
104
  test_files: []