rubocop-rails_config 1.4.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/config/rails.yml +9 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0b4c335584c923ff3d7d7f8b6e0891b89f6227a82a23e67f2c8a7ed7299ddf7
|
4
|
+
data.tar.gz: 2de82558c22364c6ba574f6515c48205a88900806ed458fd9e7b6004845495d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fab2126c573a68b6e00107de7fa24eef8f0460536dfd8d3cec8ecc4e7e1907124cff8e7074ee2b006fed6e1f48379eb2366370d1cf4dd1661f02a9dd00f11a6d
|
7
|
+
data.tar.gz: a0ea59f906d564801eb924206dce88d133b64c74bd4ec57e116074abf2f57a0c202875ed730b085f72f464fca531a2bfebfd91e05049083271b487408a2d6672
|
data/README.md
CHANGED
@@ -35,7 +35,7 @@ $ rails generate rubocop_rails_config:install
|
|
35
35
|
|
36
36
|
### TargetRubyVersion
|
37
37
|
|
38
|
-
Although Rails 7 (edge) only supports Ruby 2.7 or more, rubocop-rails_config still supports Ruby 2.
|
38
|
+
Although Rails 7 (edge) only supports Ruby 2.7 or more, rubocop-rails_config still supports Ruby 2.5 or more to support as many Ruby versions as possible.
|
39
39
|
|
40
40
|
If you'd like to change `TargetRubyVersion`, see [Customization](#customization).
|
41
41
|
|
@@ -76,10 +76,10 @@ inherit_gem:
|
|
76
76
|
|
77
77
|
# Override Setting
|
78
78
|
AllCops:
|
79
|
-
TargetRubyVersion:
|
79
|
+
TargetRubyVersion: 3.0
|
80
80
|
```
|
81
81
|
|
82
|
-
This overrides `config/rails.yml` setting with `TargetRubyVersion:
|
82
|
+
This overrides `config/rails.yml` setting with `TargetRubyVersion: 3.0`.
|
83
83
|
|
84
84
|
## License
|
85
85
|
|
data/config/rails.yml
CHANGED
@@ -4,8 +4,6 @@ require:
|
|
4
4
|
- rubocop-rails
|
5
5
|
|
6
6
|
AllCops:
|
7
|
-
# rubocop-rails_config still supports Ruby 2.4
|
8
|
-
TargetRubyVersion: 2.4
|
9
7
|
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
|
10
8
|
# to ignore them, so only the ones explicitly set in this file are enabled.
|
11
9
|
DisabledByDefault: true
|
@@ -67,6 +65,9 @@ Layout/EndAlignment:
|
|
67
65
|
EnforcedStyleAlignWith: variable
|
68
66
|
AutoCorrect: true
|
69
67
|
|
68
|
+
Layout/EndOfLine:
|
69
|
+
Enabled: true
|
70
|
+
|
70
71
|
Layout/EmptyLineAfterMagicComment:
|
71
72
|
Enabled: true
|
72
73
|
|
@@ -257,6 +258,9 @@ Performance/BindCall:
|
|
257
258
|
Performance/FlatMap:
|
258
259
|
Enabled: true
|
259
260
|
|
261
|
+
Performance/MapCompact:
|
262
|
+
Enabled: true
|
263
|
+
|
260
264
|
Performance/RedundantMerge:
|
261
265
|
Enabled: true
|
262
266
|
|
@@ -272,6 +276,9 @@ Performance/RegexpMatch:
|
|
272
276
|
Performance/ReverseEach:
|
273
277
|
Enabled: true
|
274
278
|
|
279
|
+
Performance/StringReplacement:
|
280
|
+
Enabled: true
|
281
|
+
|
275
282
|
Performance/UnfreezeString:
|
276
283
|
Enabled: true
|
277
284
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-rails_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toshimaru
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-04-
|
12
|
+
date: 2021-04-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubocop
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '1.
|
20
|
+
version: '1.13'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '1.
|
27
|
+
version: '1.13'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rubocop-ast
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,14 +45,14 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '1.
|
48
|
+
version: '1.11'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '1.
|
55
|
+
version: '1.11'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rubocop-rails
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -119,14 +119,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
119
119
|
requirements:
|
120
120
|
- - ">="
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version: 2.
|
122
|
+
version: 2.5.0
|
123
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
124
|
requirements:
|
125
125
|
- - ">="
|
126
126
|
- !ruby/object:Gem::Version
|
127
127
|
version: '0'
|
128
128
|
requirements: []
|
129
|
-
rubygems_version: 3.2.
|
129
|
+
rubygems_version: 3.2.15
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: RuboCop configuration which has the same code style checking as official
|