rubocop-rails-suite 1.3.0 → 1.4.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/CHANGELOG.md +14 -0
- data/README.md +8 -1
- data/lib/rubocop/rails/suite/version.rb +9 -0
- data/lib/rubocop/rails/suite.rb +10 -0
- data/lib/rubocop-rails-suite.rb +3 -0
- data/rubocop.yml +0 -44
- metadata +23 -21
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16d9ebc0f30cca4f0c12ba6c9c74e5a323c7f48546e74282184ab997f62d37b1
|
|
4
|
+
data.tar.gz: da798980ce633d24605d811ff317f13ee37aeadfecb733a7db74ef75f782287f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 37812cad9253de90d82c8f024772f322eea21d5519b55856a9b438aa268f87d838a262754d623e1d5ff6a89df993d69955f85ffce9261a107f64d33c4033fd09
|
|
7
|
+
data.tar.gz: f8009bbced03dd1717e4714b322db0ef95c4aea34682803b82a48182a5c5ae8660cdd8229fffa4ff185f063b082faddcd911ef245644c88872e4feae35da5e3e
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.4.0] - 2026-07-06
|
|
6
|
+
### Added
|
|
7
|
+
- GitHub Actions CI: self-lint with the bundled config, plus build, install, and smoke-test the packaged gem (`require` + `inherit_gem`) on Ruby 3.3 / 3.4 / 4.0.
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- Package `lib/` in the gem: `require "rubocop-rails-suite"` raised `LoadError` because no Ruby files were shipped.
|
|
11
|
+
- Fixed invalid `TargetRubyVersion: 3.x` example in the README.
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
- **Breaking:** dropped support for Ruby 3.0, 3.1, and 3.2 (all EOL); the minimum Ruby version is now 3.3.
|
|
15
|
+
- Requiring the gem now loads only the version constant; RuboCop loads the bundled extensions itself via the `plugins:` list in `rubocop.yml`, so nothing is added to app boot.
|
|
16
|
+
- Removed redundant config entries from `rubocop.yml` that matched RuboCop defaults (no behavior change).
|
|
17
|
+
- Added `changelog_uri` and `rubygems_mfa_required` gemspec metadata.
|
|
18
|
+
|
|
5
19
|
## [1.3.0] - 2025-08-14
|
|
6
20
|
### Changed
|
|
7
21
|
- Add latest versions.
|
data/README.md
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
# Rubocop Rails Suite
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://github.com/Grigore-George-Mihai/rubocop-rails-suite/actions/workflows/ci.yml)
|
|
4
|
+
[](https://rubygems.org/gems/rubocop-rails-suite)
|
|
5
|
+
|
|
6
|
+
**Rubocop Rails Suite** is a comprehensive suite of RuboCop configurations tailored for Ruby on Rails applications. This gem enhances your Rails code quality by bundling essential RuboCop extensions for performance, testing, and best practices. It requires at least Ruby version 3.3.0 to function properly.
|
|
4
7
|
|
|
5
8
|
## Gems Included:
|
|
6
9
|
|
|
@@ -31,6 +34,10 @@ To enable the Rubocop Rails Suite in your project, create or update your .ruboco
|
|
|
31
34
|
inherit_gem:
|
|
32
35
|
rubocop-rails-suite: rubocop.yml
|
|
33
36
|
|
|
37
|
+
# Specify your Ruby version (e.g. 3.4)
|
|
38
|
+
AllCops:
|
|
39
|
+
TargetRubyVersion: 3.4
|
|
40
|
+
|
|
34
41
|
# Your own rules go here
|
|
35
42
|
```
|
|
36
43
|
|
data/rubocop.yml
CHANGED
|
@@ -18,53 +18,21 @@ AllCops:
|
|
|
18
18
|
- "db/schema.rb"
|
|
19
19
|
- "bin/*"
|
|
20
20
|
|
|
21
|
-
# Enable Rails-related cops
|
|
22
|
-
Rails:
|
|
23
|
-
Enabled: true
|
|
24
|
-
|
|
25
|
-
# Enable Performance-related cops
|
|
26
|
-
Performance:
|
|
27
|
-
Enabled: true
|
|
28
|
-
|
|
29
|
-
# Enable RSpec-related cops
|
|
30
|
-
RSpec:
|
|
31
|
-
Enabled: true
|
|
32
|
-
|
|
33
|
-
# Enable FactoryBot-related cops
|
|
34
|
-
FactoryBot:
|
|
35
|
-
Enabled: true
|
|
36
|
-
|
|
37
|
-
# Enable Faker-related cops
|
|
38
|
-
Faker:
|
|
39
|
-
Enabled: true
|
|
40
|
-
|
|
41
21
|
# Style Cops
|
|
42
22
|
Style/Documentation:
|
|
43
23
|
Enabled: false
|
|
44
24
|
|
|
45
25
|
Style/FrozenStringLiteralComment:
|
|
46
|
-
Enabled: true
|
|
47
26
|
Exclude:
|
|
48
27
|
- "config/**/*"
|
|
49
28
|
- "Gemfile"
|
|
50
29
|
- "Rakefile"
|
|
51
30
|
- "config.ru"
|
|
52
31
|
|
|
53
|
-
Style/TrailingCommaInArrayLiteral:
|
|
54
|
-
Enabled: true
|
|
55
|
-
|
|
56
|
-
Style/TrailingCommaInHashLiteral:
|
|
57
|
-
Enabled: true
|
|
58
|
-
|
|
59
32
|
Style/HashSyntax:
|
|
60
|
-
Enabled: true
|
|
61
33
|
EnforcedShorthandSyntax: either
|
|
62
34
|
|
|
63
|
-
Style/ColonMethodCall:
|
|
64
|
-
Enabled: true
|
|
65
|
-
|
|
66
35
|
Style/StringLiterals:
|
|
67
|
-
Enabled: true
|
|
68
36
|
EnforcedStyle: double_quotes
|
|
69
37
|
Include:
|
|
70
38
|
- "app/**/*"
|
|
@@ -75,27 +43,15 @@ Style/StringLiterals:
|
|
|
75
43
|
- "Gemfile"
|
|
76
44
|
|
|
77
45
|
# Layout Cops
|
|
78
|
-
Layout/EmptyLinesAroundBlockBody:
|
|
79
|
-
Enabled: true
|
|
80
|
-
|
|
81
46
|
Layout/EndAlignment:
|
|
82
|
-
Enabled: true
|
|
83
47
|
EnforcedStyleAlignWith: variable
|
|
84
48
|
|
|
85
49
|
Layout/SpaceInsideBlockBraces:
|
|
86
|
-
Enabled: true
|
|
87
50
|
EnforcedStyleForEmptyBraces: space
|
|
88
51
|
|
|
89
52
|
Layout/LineLength:
|
|
90
53
|
Max: 130
|
|
91
54
|
|
|
92
|
-
# Lint Cops
|
|
93
|
-
Lint/RequireParentheses:
|
|
94
|
-
Enabled: true
|
|
95
|
-
|
|
96
|
-
Lint/UriEscapeUnescape:
|
|
97
|
-
Enabled: true
|
|
98
|
-
|
|
99
55
|
# Metrics Cops
|
|
100
56
|
Metrics/MethodLength:
|
|
101
57
|
Max: 17
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubocop-rails-suite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- George Mihai Grigore
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rubocop
|
|
@@ -25,61 +24,61 @@ dependencies:
|
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
25
|
version: '1.79'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: rubocop-
|
|
27
|
+
name: rubocop-factory_bot
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
30
|
- - "~>"
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '2.
|
|
32
|
+
version: '2.27'
|
|
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: '2.
|
|
39
|
+
version: '2.27'
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: rubocop-
|
|
41
|
+
name: rubocop-faker
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
44
|
- - "~>"
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '1.
|
|
46
|
+
version: '1.3'
|
|
48
47
|
type: :runtime
|
|
49
48
|
prerelease: false
|
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
50
|
requirements:
|
|
52
51
|
- - "~>"
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '1.
|
|
53
|
+
version: '1.3'
|
|
55
54
|
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: rubocop-
|
|
55
|
+
name: rubocop-performance
|
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
|
58
57
|
requirements:
|
|
59
58
|
- - "~>"
|
|
60
59
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
60
|
+
version: '1.25'
|
|
62
61
|
type: :runtime
|
|
63
62
|
prerelease: false
|
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
64
|
requirements:
|
|
66
65
|
- - "~>"
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
67
|
+
version: '1.25'
|
|
69
68
|
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: rubocop-
|
|
69
|
+
name: rubocop-rails
|
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
|
72
71
|
requirements:
|
|
73
72
|
- - "~>"
|
|
74
73
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '
|
|
74
|
+
version: '2.33'
|
|
76
75
|
type: :runtime
|
|
77
76
|
prerelease: false
|
|
78
77
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
78
|
requirements:
|
|
80
79
|
- - "~>"
|
|
81
80
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '
|
|
81
|
+
version: '2.33'
|
|
83
82
|
- !ruby/object:Gem::Dependency
|
|
84
83
|
name: rubocop-rspec
|
|
85
84
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -94,8 +93,8 @@ dependencies:
|
|
|
94
93
|
- - "~>"
|
|
95
94
|
- !ruby/object:Gem::Version
|
|
96
95
|
version: '3.6'
|
|
97
|
-
description:
|
|
98
|
-
|
|
96
|
+
description: Bundles RuboCop extensions for Rails, performance, RSpec, factory_bot
|
|
97
|
+
and Faker with a shared config.
|
|
99
98
|
email:
|
|
100
99
|
- grigore.george.mihaii@gmail.com
|
|
101
100
|
executables: []
|
|
@@ -105,6 +104,9 @@ files:
|
|
|
105
104
|
- CHANGELOG.md
|
|
106
105
|
- LICENSE.txt
|
|
107
106
|
- README.md
|
|
107
|
+
- lib/rubocop-rails-suite.rb
|
|
108
|
+
- lib/rubocop/rails/suite.rb
|
|
109
|
+
- lib/rubocop/rails/suite/version.rb
|
|
108
110
|
- rubocop.yml
|
|
109
111
|
homepage: https://github.com/Grigore-George-Mihai/rubocop-rails-suite
|
|
110
112
|
licenses:
|
|
@@ -113,7 +115,8 @@ metadata:
|
|
|
113
115
|
allowed_push_host: https://rubygems.org
|
|
114
116
|
homepage_uri: https://github.com/Grigore-George-Mihai/rubocop-rails-suite
|
|
115
117
|
source_code_uri: https://github.com/Grigore-George-Mihai/rubocop-rails-suite
|
|
116
|
-
|
|
118
|
+
changelog_uri: https://github.com/Grigore-George-Mihai/rubocop-rails-suite/blob/master/CHANGELOG.md
|
|
119
|
+
rubygems_mfa_required: 'true'
|
|
117
120
|
rdoc_options: []
|
|
118
121
|
require_paths:
|
|
119
122
|
- lib
|
|
@@ -121,15 +124,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
121
124
|
requirements:
|
|
122
125
|
- - ">="
|
|
123
126
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: 3.
|
|
127
|
+
version: 3.3.0
|
|
125
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
129
|
requirements:
|
|
127
130
|
- - ">="
|
|
128
131
|
- !ruby/object:Gem::Version
|
|
129
132
|
version: '0'
|
|
130
133
|
requirements: []
|
|
131
|
-
rubygems_version:
|
|
132
|
-
signing_key:
|
|
134
|
+
rubygems_version: 4.0.8
|
|
133
135
|
specification_version: 4
|
|
134
136
|
summary: Enhanced RuboCop rules for Rails applications.
|
|
135
137
|
test_files: []
|