rubocop-rails_config 0.10.0 → 0.12.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 +1 -1
  3. data/config/rails.yml +15 -3
  4. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59350b4787b1f9775aac4629c1839e0d96da05f9bf5d3e7582c1dd3b9c8f2b46
4
- data.tar.gz: a4ea1d1033b4153883566aec73e6917d279f0dadf441262a2d1ff569fce82ef9
3
+ metadata.gz: 9f695b08f0863e6d9650a6ec5858b0fbaaa1fd371f24fd0b6204764742c803de
4
+ data.tar.gz: b999f20e6864ebf4be6659d7ed035c1fa2b70e90bcf91335f20ec0b304a24c4c
5
5
  SHA512:
6
- metadata.gz: e857a2e79a07c9692cd82c93b2450745d851b5db76e3d8841735c9dfa6b81d38d945eed6f3c827dd7dba4a7730f43fcbdef86ba97f2889ec303d7704037342b0
7
- data.tar.gz: 13f2718ea5364ad8f873e6d2da4e9dbf8c71e0e4258dd6d69d301e547b1583eb8398489f0b003edf6cb4cc04b65128d465097b85b574f7454470e405c0ac51a5
6
+ metadata.gz: 9a2237a24afc23fe3949f3a8a2f1a1b4b19036c8c8a33fe93b7ae70c667c75bd354d4a4bdccc18fa51fa19781493bddd4c0af8ddf69e326023e3f724c527e294
7
+ data.tar.gz: b27dd14caabf0b35ddd0f8f2570bda26a9c4cf2eb2b2115c70b85d3fe94a25fc6afd07120a112c647cc3a6f95fe76de97e502b76f69e1a3968903ce30cea6c4f
data/README.md CHANGED
@@ -35,7 +35,7 @@ $ rails generate rubocop_rails_config:install
35
35
 
36
36
  ### TargetRubyVersion
37
37
 
38
- Although Rails 6 only supports Ruby 2.5 or more, rubocop-rails_config still supports Ruby 2.3 or more to support as many Ruby versions as possible.
38
+ Although Rails 6 only supports Ruby 2.5 or more, rubocop-rails_config still supports Ruby 2.4 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
 
@@ -3,8 +3,8 @@ require:
3
3
  - rubocop-rails
4
4
 
5
5
  AllCops:
6
- # rubocop-rails_config still supports Ruby 2.3
7
- TargetRubyVersion: 2.3
6
+ # rubocop-rails_config still supports Ruby 2.4
7
+ TargetRubyVersion: 2.4
8
8
  # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
9
9
  # to ignore them, so only the ones explicitly set in this file are enabled.
10
10
  DisabledByDefault: true
@@ -36,6 +36,12 @@ Rails/RefuteMethods:
36
36
  Include:
37
37
  - '**/test/**/*'
38
38
 
39
+ Rails/IndexBy:
40
+ Enabled: true
41
+
42
+ Rails/IndexWith:
43
+ Enabled: true
44
+
39
45
  # Prefer &&/|| over and/or.
40
46
  Style/AndOr:
41
47
  Enabled: true
@@ -172,7 +178,7 @@ Style/StringLiterals:
172
178
  EnforcedStyle: double_quotes
173
179
 
174
180
  # Detect hard tabs, no hard tabs.
175
- Layout/Tab:
181
+ Layout/IndentationStyle:
176
182
  Enabled: true
177
183
 
178
184
  # Empty lines should not have any spaces.
@@ -262,3 +268,9 @@ Performance/ReverseEach:
262
268
 
263
269
  Performance/UnfreezeString:
264
270
  Enabled: true
271
+
272
+ Performance/DeletePrefix:
273
+ Enabled: true
274
+
275
+ Performance/DeleteSuffix:
276
+ Enabled: true
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: 0.10.0
4
+ version: 0.12.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: 2020-02-22 00:00:00.000000000 Z
12
+ date: 2020-06-02 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: '0.80'
20
+ version: '0.82'
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: '0.80'
27
+ version: '0.82'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rubocop-performance
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -161,7 +161,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
161
  requirements:
162
162
  - - ">="
163
163
  - !ruby/object:Gem::Version
164
- version: 2.3.0
164
+ version: 2.4.0
165
165
  required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  requirements:
167
167
  - - ">="