rubocop-rails-suite 1.1.2 → 1.2.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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/README.md +2 -4
  4. data/rubocop.yml +13 -8
  5. metadata +26 -62
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea42d2f79c67b7dce86a5226e0b7138c56a2424ce968f319319e8462476fd8b4
4
- data.tar.gz: 116ff3d99a6b91f0ad714351231f5d6be3460fe6896b64067fb8950075c05a6f
3
+ metadata.gz: 062b43174ef58abb0ffd68911fa86d28aa837a040cb33d4f87fd886057330083
4
+ data.tar.gz: 3be86b9fda5abe2fcc527c8299c1393eaec2fc235526b7a109400ec5700ea062
5
5
  SHA512:
6
- metadata.gz: 7e5847ddbbd161799c3ad6bc111d83ef17ef3b6d44616d84ee6a2cfaf4d67abf75c60fa1e2b9d55a313aa25683e7adab0b25d510d580a4408f70647baaa1a0d4
7
- data.tar.gz: 0cdaec577ec8d5b09c9d8258c79404837b6185176c74d9bde4fde23f37672ae7f62b95c2613d165dca0bf918f76c5d6ae314eaa006e156299d412347ae915d5b
6
+ metadata.gz: a0a5b1046293f5fe14d4e0750f2fd87aee32dfb8feaf9d2c67a91414b75683aa960d756ba4abfe06655b8a995374382d38d0b79765b91441b1c7fcb78786dabe
7
+ data.tar.gz: 83faaf0c759eeb6d376cca1bfdf7af72bc403618cc856730ffda379d6a9b61c7c51ed9785bc0290022bf747846d0d6417632b20668ada64deec39aee28de8f01
data/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [1.2.0] - 2025-03-03
6
+ ### Changed
7
+ - Add support for plugins.
8
+ - Add latest versions.
9
+
10
+ ## [1.1.3] - 2025-02-20
11
+ ### Changed
12
+ - Add support for rubocop 1.72.
13
+
5
14
  ## [1.1.2] - 2024-10-23
6
15
  ### Changed
7
16
  - Enforced double quotes in RuboCop configuration for `config/**/*` and `spec/**/*` directories.
data/README.md CHANGED
@@ -31,12 +31,10 @@ To enable the Rubocop Rails Suite in your project, create or update your .ruboco
31
31
  inherit_gem:
32
32
  rubocop-rails-suite: rubocop.yml
33
33
 
34
- # Specify your Ruby version
35
- AllCops:
36
- TargetRubyVersion: 3.0
34
+ # Your own rules go here
37
35
  ```
38
36
 
39
- This will import the suite's recommended RuboCop rules for Rails projects, including rules for performance, RSpec, factory_bot, faker, and migration linting.
37
+ This will import the suite's recommended RuboCop rules for Rails projects, including rules for performance, RSpec, factory_bot, faker, and more.
40
38
 
41
39
  Run RuboCop to check your code:
42
40
  ```bash
data/rubocop.yml CHANGED
@@ -1,21 +1,20 @@
1
- inherit_mode:
2
- merge:
3
- - Exclude
4
-
5
- # Enable RuboCop plugins
6
- require:
7
- - rubocop-performance
1
+ plugins:
8
2
  - rubocop-rails
3
+ - rubocop-performance
9
4
  - rubocop-factory_bot
10
5
  - rubocop-faker
11
6
  - rubocop-rspec
12
7
 
8
+ inherit_mode:
9
+ merge:
10
+ - Exclude
11
+
13
12
  # General configuration for all cops
14
13
  AllCops:
15
14
  NewCops: enable
16
15
  SuggestExtensions: false
17
- TargetRubyVersion: 3.0
18
16
  Exclude:
17
+ - 'db/migrate/**/*'
19
18
  - "db/schema.rb"
20
19
  - "bin/*"
21
20
 
@@ -47,6 +46,9 @@ Style/FrozenStringLiteralComment:
47
46
  Enabled: true
48
47
  Exclude:
49
48
  - "config/**/*"
49
+ - "Gemfile"
50
+ - "Rakefile"
51
+ - "config.ru"
50
52
 
51
53
  Style/TrailingCommaInArrayLiteral:
52
54
  Enabled: true
@@ -104,3 +106,6 @@ RSpec/MultipleExpectations:
104
106
 
105
107
  RSpec/MultipleMemoizedHelpers:
106
108
  Max: 6
109
+
110
+ RSpec/ExampleLength:
111
+ Max: 6
metadata CHANGED
@@ -1,135 +1,99 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-rails-suite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Mihai Grigore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-23 00:00:00.000000000 Z
11
+ date: 2025-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.67'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '2.0'
19
+ version: 1.73.2
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: '1.67'
30
- - - "<"
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: '2.0'
26
+ version: 1.73.2
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: rubocop-rails
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: 2.26.2
40
- - - "<"
31
+ - - "~>"
41
32
  - !ruby/object:Gem::Version
42
- version: '3.0'
33
+ version: 2.30.3
43
34
  type: :runtime
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
46
37
  requirements:
47
- - - ">="
38
+ - - "~>"
48
39
  - !ruby/object:Gem::Version
49
- version: 2.26.2
50
- - - "<"
51
- - !ruby/object:Gem::Version
52
- version: '3.0'
40
+ version: 2.30.3
53
41
  - !ruby/object:Gem::Dependency
54
42
  name: rubocop-performance
55
43
  requirement: !ruby/object:Gem::Requirement
56
44
  requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- version: 1.22.1
60
- - - "<"
45
+ - - "~>"
61
46
  - !ruby/object:Gem::Version
62
- version: '2.0'
47
+ version: 1.24.0
63
48
  type: :runtime
64
49
  prerelease: false
65
50
  version_requirements: !ruby/object:Gem::Requirement
66
51
  requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: 1.22.1
70
- - - "<"
52
+ - - "~>"
71
53
  - !ruby/object:Gem::Version
72
- version: '2.0'
54
+ version: 1.24.0
73
55
  - !ruby/object:Gem::Dependency
74
56
  name: rubocop-factory_bot
75
57
  requirement: !ruby/object:Gem::Requirement
76
58
  requirements:
77
- - - ">="
59
+ - - "~>"
78
60
  - !ruby/object:Gem::Version
79
- version: 2.26.1
80
- - - "<"
81
- - !ruby/object:Gem::Version
82
- version: '3.0'
61
+ version: 2.27.0
83
62
  type: :runtime
84
63
  prerelease: false
85
64
  version_requirements: !ruby/object:Gem::Requirement
86
65
  requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: 2.26.1
90
- - - "<"
66
+ - - "~>"
91
67
  - !ruby/object:Gem::Version
92
- version: '3.0'
68
+ version: 2.27.0
93
69
  - !ruby/object:Gem::Dependency
94
70
  name: rubocop-faker
95
71
  requirement: !ruby/object:Gem::Requirement
96
72
  requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- version: 1.1.0
100
- - - "<"
73
+ - - "~>"
101
74
  - !ruby/object:Gem::Version
102
- version: '2.0'
75
+ version: 1.3.0
103
76
  type: :runtime
104
77
  prerelease: false
105
78
  version_requirements: !ruby/object:Gem::Requirement
106
79
  requirements:
107
- - - ">="
80
+ - - "~>"
108
81
  - !ruby/object:Gem::Version
109
- version: 1.1.0
110
- - - "<"
111
- - !ruby/object:Gem::Version
112
- version: '2.0'
82
+ version: 1.3.0
113
83
  - !ruby/object:Gem::Dependency
114
84
  name: rubocop-rspec
115
85
  requirement: !ruby/object:Gem::Requirement
116
86
  requirements:
117
- - - ">="
118
- - !ruby/object:Gem::Version
119
- version: 3.1.0
120
- - - "<"
87
+ - - "~>"
121
88
  - !ruby/object:Gem::Version
122
- version: '4.0'
89
+ version: 3.5.0
123
90
  type: :runtime
124
91
  prerelease: false
125
92
  version_requirements: !ruby/object:Gem::Requirement
126
93
  requirements:
127
- - - ">="
128
- - !ruby/object:Gem::Version
129
- version: 3.1.0
130
- - - "<"
94
+ - - "~>"
131
95
  - !ruby/object:Gem::Version
132
- version: '4.0'
96
+ version: 3.5.0
133
97
  description: Provides enhanced linting rules for Ruby on Rails, focusing on performance,
134
98
  RSpec, factory_bot, and Faker integration.
135
99
  email: