rubocop-rails_config 1.4.2 → 1.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/config/rails.yml +12 -0
  4. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b73e7f25f50c406889e09b73e1a14ff8ffea84000f01af6f88bb46387da7dcca
4
- data.tar.gz: 73c570af94edb157257a0c5bb6c78f4f38bfd266fc8476495b1d38d34f098072
3
+ metadata.gz: 42931dbcc11e880d10116256c72ecf0b2fec3845bb39b8e7f91de82cb0b50b8e
4
+ data.tar.gz: b2f77cb8075b2a356f71e3d9c6d932b8111583e3fd307889ca1f00c4995c45f7
5
5
  SHA512:
6
- metadata.gz: 3c7a431cb8ba281272a6e056a2ef21e62d81b63ac1cd6c92951827bf8b5250c79324391da18628e12a91e0d44e86ca85e4dc061e768355d36086afe797a9c5ae
7
- data.tar.gz: e2b0f8b61cf57eb0cded94409bfb59c8462d2a3e6b2d43c63d99db72c3b880c980ff88b151984d4a109407cade621030167fcc9edf1e410647d8d45207f21dbd
6
+ metadata.gz: 9f4f56b78632816fe260ac8d3014fefadcfa31ae4e59aedbed0776bbabbc9b8ee76cad43cc42648d00dfa4422a9910837f370a69fb1982b9b99908ab5f1a9d92
7
+ data.tar.gz: 4784ae96f015eeaf2241df34a6b3931d337e15298a8b4c7c8b7f4e709e640fd5801c936746c7556c15556c0ccc833c03731040165c26aec03690efc753c8feb2
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.4 or more to support as many Ruby versions as possible.
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: 2.7
79
+ TargetRubyVersion: 3.0
80
80
  ```
81
81
 
82
- This overrides `config/rails.yml` setting with `TargetRubyVersion: 2.7`.
82
+ This overrides `config/rails.yml` setting with `TargetRubyVersion: 3.0`.
83
83
 
84
84
  ## License
85
85
 
data/config/rails.yml CHANGED
@@ -65,6 +65,9 @@ Layout/EndAlignment:
65
65
  EnforcedStyleAlignWith: variable
66
66
  AutoCorrect: true
67
67
 
68
+ Layout/EndOfLine:
69
+ Enabled: true
70
+
68
71
  Layout/EmptyLineAfterMagicComment:
69
72
  Enabled: true
70
73
 
@@ -255,6 +258,12 @@ Performance/BindCall:
255
258
  Performance/FlatMap:
256
259
  Enabled: true
257
260
 
261
+ Performance/MapCompact:
262
+ Enabled: true
263
+
264
+ Performance/SelectMap:
265
+ Enabled: true
266
+
258
267
  Performance/RedundantMerge:
259
268
  Enabled: true
260
269
 
@@ -270,6 +279,9 @@ Performance/RegexpMatch:
270
279
  Performance/ReverseEach:
271
280
  Enabled: true
272
281
 
282
+ Performance/StringReplacement:
283
+ Enabled: true
284
+
273
285
  Performance/UnfreezeString:
274
286
  Enabled: true
275
287
 
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.2
4
+ version: 1.5.3
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-21 00:00:00.000000000 Z
12
+ date: 2021-05-07 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.8'
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.8'
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.3'
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.3'
55
+ version: '1.11'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rubocop-rails
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -119,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - ">="
121
121
  - !ruby/object:Gem::Version
122
- version: 2.4.0
122
+ version: 2.5.0
123
123
  required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  requirements:
125
125
  - - ">="