rubocop_plus 2.15.0 → 2.17.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c448822f85e81003d268a0eab2fee528ab80121229509fb63bbdce3158b213ef
4
- data.tar.gz: 1a61620846700b906c97528173e7a7767f3110c147f969bfd7956c5352633c36
3
+ metadata.gz: '0309c4b558f96bedc044894fbf4b6f748da52bbcba346d70bcde9874bbe71d81'
4
+ data.tar.gz: b137b8230f7b60db74b15a0d9dff6ca1cd55cf35b673c0e4da500c31e23ea872
5
5
  SHA512:
6
- metadata.gz: d208494ea1c5f67edf109330f0c747fb7e7b13f8ed598842bb0dddc52bb718d525a9226128ff750146af9fd0b88b0686313c6c378bbda2841b2f198984b28f4a
7
- data.tar.gz: 655a42f26905ed4066862942bf45f2e3fa471fe683e058644760cb04735287bb24360c0546d32f3886d0d371c8b6b9d3ec8af928af1595375fb048d63e5f63e9
6
+ metadata.gz: 1ebaf27f80cdf65b21176b29d4a382ba2b6e3e09f6e5f49a84d2850ee126903b6ef486c971f1f25392245a0f686d84fa755479adaf9cc9fbd3c4db8f88ea27ca
7
+ data.tar.gz: 946743b15693aedeb9a2c650218ba54e2f4910c76014eb8cdd6e95be54d899c51837e33ed9d889475d11f1a49ec1ce1c2e7b6271b77b990629baf6d9c5f8e3a8
@@ -13,7 +13,7 @@ jobs:
13
13
  runs-on: ubuntu-latest
14
14
  strategy:
15
15
  matrix:
16
- ruby-version: ['3.1', '3.2', '3.3']
16
+ ruby-version: ['3.2', '3.3', '3.4']
17
17
  steps:
18
18
  - uses: actions/checkout@v2
19
19
  - name: Set up Ruby
@@ -30,7 +30,7 @@ jobs:
30
30
  runs-on: ubuntu-latest
31
31
  strategy:
32
32
  matrix:
33
- ruby-version: ['3.1']
33
+ ruby-version: ['3.2']
34
34
  steps:
35
35
  - uses: actions/checkout@v2
36
36
  - name: Set up Ruby
data/CHANGELOG.md CHANGED
@@ -2,6 +2,33 @@
2
2
 
3
3
  Issues are tracked at https://github.com/roberts1000/rubocop_plus/issues. Issues marked as **(Internal)** only affect development.
4
4
 
5
+ ## 2.17.0 (Feb 28, 2025)
6
+
7
+ 1. [#324](../../issues/324): Use `rubocop-rspec` `0.7.1`.
8
+ 1. [#325](../../issues/325): Use `rubocop` `1.73.1`.
9
+ 1. [#328](../../issues/328): Use `rubocop-performance` `1.24.0`.
10
+ 1. [#330](../../issues/330): Use `rubocop-rails` `2.30.2`.
11
+ 1. [#332](../../issues/332): Use `rubocop-rspec` `3.5.0`.
12
+ 1. [#334](../../issues/334): Update development and test gems. **(Internal)**
13
+ 1. [#337](../../issues/337): Switch to plugin loading. **(Internal)**
14
+ 1. [#340](../../issues/340): Remove Ruby 3.1 support.
15
+ 1. [#342](../../issues/342): Add Ruby 3.4 support.
16
+ 1. [#344](../../issues/344): Remove `RSpec/FilePath` configuration.
17
+ 1. [#346](../../issues/346): Set `RSpec/ExampleLength` to 15.
18
+ 1. [#348](../../issues/348): Exclude `spec/rails_helper.rb` from `Rails/RootPathnameMethods`.
19
+ 1. [#350](../../issues/350): Exclude `spec/spec_helper.rb` from `Style/BlockComments`.
20
+ 1. [#352](../../issues/352): Add `rubocop-rspec_rails` `2.30.0`.
21
+ 1. [#354](../../issues/354): Add `rubocop-factory_bot` `2.26.1`.
22
+ 1. [#356](../../issues/356): Add `rubocop-capybara` `2.21.0`.
23
+ 1. [#358](../../issues/358): Make `Naming/BlockForwarding` use the `explicit` style.
24
+
25
+ ## 2.16.0 (Feb 26, 2025)
26
+
27
+ 1. [#314](../../issues/314): Use `rubocop` `1.65.1`.
28
+ 1. [#316](../../issues/316): Use `rubocop-performance` `1.21.1`.
29
+ 1. [#318](../../issues/318): Use `rubocop-rails` `1.25.1`.
30
+ 1. [#320](../../issues/320): Use `rubocop-rspec` `3.0.4`.
31
+
5
32
  ## 2.15.0 (Jun 03, 2024)
6
33
 
7
34
  1. [#300](../../issues/300): Use `rubocop-rspec` `2.29.2`.
data/Gemfile CHANGED
@@ -11,7 +11,7 @@ end
11
11
 
12
12
  group :development, :test do
13
13
  gem "bundler", "~> 2.0"
14
- gem "pry", "~> 0.14.1"
14
+ gem "pry", "~> 0.15.0"
15
15
  gem "rake", "~> 13.0"
16
16
  end
17
17
 
data/README.md CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
  ## Supported Ruby Versions
13
13
 
14
- Ruby 3.1.0+ is supported.
14
+ Ruby 3.2.0+ is supported.
15
15
 
16
16
  ## Installation
17
17
 
@@ -1,3 +1,6 @@
1
+ Naming/BlockForwarding:
2
+ EnforcedStyle: explicit # See https://github.com/roberts1000/rubocop_plus/issues/358
3
+
1
4
  # This cop checks for the use of 'is_', 'has_' and 'have_' in front of methods. By default, it recommends that they be removed.
2
5
  # Predicates are useful in many situations. It's conterproductive to enforce a single style.
3
6
  Naming/PredicateName:
@@ -8,3 +8,7 @@ Rails/FilePath:
8
8
 
9
9
  Performance/RedundantMerge:
10
10
  Enabled: false
11
+
12
+ Rails/RootPathnameMethods:
13
+ Exclude:
14
+ - spec/rails_helper.rb # See https://github.com/roberts1000/rubocop_plus/issues/348
@@ -7,12 +7,7 @@ RSpec/DescribedClass:
7
7
  # Checks the number of lines in the spec example. The default is 5, which frequently can be a bit tight.
8
8
  # https://github.com/rubocop-hq/rubocop-rspec/blob/v1.37.1/lib/rubocop/cop/rspec/example_length.rb#L28
9
9
  RSpec/ExampleLength:
10
- Max: 8
11
-
12
- # Checks that spec file paths are consistent with the test subject. Cop is too strict.
13
- # https://github.com/rubocop-hq/rubocop-rspec/blob/v1.37.1/lib/rubocop/cop/rspec/file_path.rb
14
- RSpec/FilePath:
15
- Enabled: false
10
+ Max: 15
16
11
 
17
12
  # Checks for the use of instance variables in specs. Prefer allowing instance variables ('let' should be used when possible).
18
13
  # https://github.com/rubocop-hq/rubocop-rspec/blob/v1.37.1/lib/rubocop/cop/rspec/instance_variable.rb
@@ -2,6 +2,10 @@
2
2
  Style/AccessModifierDeclarations:
3
3
  Enabled: false
4
4
 
5
+ Style/BlockComments:
6
+ Exclude:
7
+ - spec/spec_helper.rb
8
+
5
9
  # In ruby, you can define modules and classes like this:
6
10
  #
7
11
  # = Nested = = Compact =
data/config/rubocop.yml CHANGED
@@ -1,9 +1,14 @@
1
- require:
1
+ plugins:
2
2
  - rubocop-performance
3
3
  - rubocop-rails
4
4
  - rubocop-rake
5
5
  - rubocop-rspec
6
6
 
7
+ require:
8
+ - rubocop-capybara
9
+ - rubocop-factory_bot
10
+ - rubocop-rspec_rails
11
+
7
12
  AllCops:
8
13
  Exclude: # skip all of the following....
9
14
  - bin/bundle # A 3rd-party auto-generated file
@@ -1,4 +1,4 @@
1
1
  module RubocopPlus
2
- VERSION = "2.15.0".freeze
3
- RUBOCOP_VERSION = '1.64.1'.freeze
2
+ VERSION = "2.17.0".freeze
3
+ RUBOCOP_VERSION = '1.73.1'.freeze
4
4
  end
data/rubocop_plus.gemspec CHANGED
@@ -20,12 +20,15 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.required_ruby_version = ">= 3.1"
23
+ spec.required_ruby_version = ">= 3.2"
24
24
 
25
25
  spec.add_dependency "cri", "~> 2.0"
26
26
  spec.add_dependency "rubocop", RubocopPlus::RUBOCOP_VERSION.to_s
27
- spec.add_dependency "rubocop-performance", "1.21.0"
28
- spec.add_dependency "rubocop-rails", "2.25.0"
29
- spec.add_dependency "rubocop-rake", "0.6.0"
30
- spec.add_dependency "rubocop-rspec", "2.29.2"
27
+ spec.add_dependency "rubocop-capybara", "2.21.0"
28
+ spec.add_dependency "rubocop-factory_bot", "2.26.1"
29
+ spec.add_dependency "rubocop-performance", "1.24.0"
30
+ spec.add_dependency "rubocop-rails", "2.30.2"
31
+ spec.add_dependency "rubocop-rake", "0.7.1"
32
+ spec.add_dependency "rubocop-rspec", "3.5.0"
33
+ spec.add_dependency "rubocop-rspec_rails", "2.30.0"
31
34
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop_plus
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.15.0
4
+ version: 2.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - roberts1000
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-06-03 00:00:00.000000000 Z
10
+ date: 2025-03-01 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: cri
@@ -30,70 +29,112 @@ dependencies:
30
29
  requirements:
31
30
  - - '='
32
31
  - !ruby/object:Gem::Version
33
- version: 1.64.1
32
+ version: 1.73.1
34
33
  type: :runtime
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
37
  - - '='
39
38
  - !ruby/object:Gem::Version
40
- version: 1.64.1
39
+ version: 1.73.1
40
+ - !ruby/object:Gem::Dependency
41
+ name: rubocop-capybara
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - '='
45
+ - !ruby/object:Gem::Version
46
+ version: 2.21.0
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - '='
52
+ - !ruby/object:Gem::Version
53
+ version: 2.21.0
54
+ - !ruby/object:Gem::Dependency
55
+ name: rubocop-factory_bot
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - '='
59
+ - !ruby/object:Gem::Version
60
+ version: 2.26.1
61
+ type: :runtime
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - '='
66
+ - !ruby/object:Gem::Version
67
+ version: 2.26.1
41
68
  - !ruby/object:Gem::Dependency
42
69
  name: rubocop-performance
43
70
  requirement: !ruby/object:Gem::Requirement
44
71
  requirements:
45
72
  - - '='
46
73
  - !ruby/object:Gem::Version
47
- version: 1.21.0
74
+ version: 1.24.0
48
75
  type: :runtime
49
76
  prerelease: false
50
77
  version_requirements: !ruby/object:Gem::Requirement
51
78
  requirements:
52
79
  - - '='
53
80
  - !ruby/object:Gem::Version
54
- version: 1.21.0
81
+ version: 1.24.0
55
82
  - !ruby/object:Gem::Dependency
56
83
  name: rubocop-rails
57
84
  requirement: !ruby/object:Gem::Requirement
58
85
  requirements:
59
86
  - - '='
60
87
  - !ruby/object:Gem::Version
61
- version: 2.25.0
88
+ version: 2.30.2
62
89
  type: :runtime
63
90
  prerelease: false
64
91
  version_requirements: !ruby/object:Gem::Requirement
65
92
  requirements:
66
93
  - - '='
67
94
  - !ruby/object:Gem::Version
68
- version: 2.25.0
95
+ version: 2.30.2
69
96
  - !ruby/object:Gem::Dependency
70
97
  name: rubocop-rake
71
98
  requirement: !ruby/object:Gem::Requirement
72
99
  requirements:
73
100
  - - '='
74
101
  - !ruby/object:Gem::Version
75
- version: 0.6.0
102
+ version: 0.7.1
76
103
  type: :runtime
77
104
  prerelease: false
78
105
  version_requirements: !ruby/object:Gem::Requirement
79
106
  requirements:
80
107
  - - '='
81
108
  - !ruby/object:Gem::Version
82
- version: 0.6.0
109
+ version: 0.7.1
83
110
  - !ruby/object:Gem::Dependency
84
111
  name: rubocop-rspec
85
112
  requirement: !ruby/object:Gem::Requirement
86
113
  requirements:
87
114
  - - '='
88
115
  - !ruby/object:Gem::Version
89
- version: 2.29.2
116
+ version: 3.5.0
117
+ type: :runtime
118
+ prerelease: false
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - '='
122
+ - !ruby/object:Gem::Version
123
+ version: 3.5.0
124
+ - !ruby/object:Gem::Dependency
125
+ name: rubocop-rspec_rails
126
+ requirement: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - '='
129
+ - !ruby/object:Gem::Version
130
+ version: 2.30.0
90
131
  type: :runtime
91
132
  prerelease: false
92
133
  version_requirements: !ruby/object:Gem::Requirement
93
134
  requirements:
94
135
  - - '='
95
136
  - !ruby/object:Gem::Version
96
- version: 2.29.2
137
+ version: 2.30.0
97
138
  description: Enhancements to the standard rubocop gem.
98
139
  email:
99
140
  - roberts@corlewsolutions.com
@@ -144,7 +185,6 @@ homepage: https://github.com/roberts1000/rubocop_plus
144
185
  licenses:
145
186
  - MIT
146
187
  metadata: {}
147
- post_install_message:
148
188
  rdoc_options: []
149
189
  require_paths:
150
190
  - lib
@@ -152,15 +192,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
152
192
  requirements:
153
193
  - - ">="
154
194
  - !ruby/object:Gem::Version
155
- version: '3.1'
195
+ version: '3.2'
156
196
  required_rubygems_version: !ruby/object:Gem::Requirement
157
197
  requirements:
158
198
  - - ">="
159
199
  - !ruby/object:Gem::Version
160
200
  version: '0'
161
201
  requirements: []
162
- rubygems_version: 3.5.10
163
- signing_key:
202
+ rubygems_version: 3.6.5
164
203
  specification_version: 4
165
204
  summary: Enhancements to the standard rubocop gem.
166
205
  test_files: []