standard 1.8.0 → 1.10.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 +12 -0
- data/Gemfile.lock +6 -6
- data/config/base.yml +9 -3
- data/config/ruby-3.0.yml +3 -0
- data/docs/NEW_RUBIES.md +13 -0
- data/lib/standard/version.rb +1 -1
- data/standard.gemspec +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 445584a32cfbc578f820da2051b0aae3e0a9478721873c57f05ffcb208447ba0
|
4
|
+
data.tar.gz: 7c44c0222eafcb75e2c03c90d665777d5e8163485d5d58a4ebb33b43fddf5db1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78d723d29497fbfa509864d809d502899fd777667d49c13a4cd3e776294ec7ccbe46f4a2de9ba80476fefe6477733a9fcb6a868b6c27f9732600fe0decd1ad2d
|
7
|
+
data.tar.gz: ca4d8308217b59a8189dd9779bc6d4ecb75e8ee63f56b73f75af05827016365c040bd1861aa4632feabeee0acd46bba0f5def2177af226b749661ce8171802ca
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.10.0
|
4
|
+
|
5
|
+
* Update rubocop from 1.26.1 to [1.27.0](https://github.com/rubocop/rubocop/tag/v1.27.0)
|
6
|
+
|
7
|
+
## 1.9.1
|
8
|
+
|
9
|
+
* Update rubocop from 1.26.0 to [1.26.1](https://github.com/rubocop/rubocop/tag/v1.26.1)
|
10
|
+
|
11
|
+
## 1.9.0
|
12
|
+
|
13
|
+
* Rule change to `Layout/CaseIndentation` to have the `when` and `in`s inside a case statement aligned with the `end` of the case. The `end` will be aligned with a variable instead of the `case` keyword if applicable.
|
14
|
+
|
3
15
|
## 1.8.0
|
4
16
|
|
5
17
|
* Update rubocop from 1.25.1 to [1.26.0](https://github.com/rubocop/rubocop/tag/v1.26.0)
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
standard (1.
|
5
|
-
rubocop (= 1.
|
4
|
+
standard (1.10.0)
|
5
|
+
rubocop (= 1.27.0)
|
6
6
|
rubocop-performance (= 1.13.3)
|
7
7
|
|
8
8
|
GEM
|
@@ -14,7 +14,7 @@ GEM
|
|
14
14
|
gimme (0.5.0)
|
15
15
|
method_source (1.0.0)
|
16
16
|
minitest (5.15.0)
|
17
|
-
parallel (1.
|
17
|
+
parallel (1.22.1)
|
18
18
|
parser (3.1.1.0)
|
19
19
|
ast (~> 2.4.1)
|
20
20
|
pry (0.14.1)
|
@@ -22,9 +22,9 @@ GEM
|
|
22
22
|
method_source (~> 1.0)
|
23
23
|
rainbow (3.1.1)
|
24
24
|
rake (13.0.6)
|
25
|
-
regexp_parser (2.
|
25
|
+
regexp_parser (2.3.0)
|
26
26
|
rexml (3.2.5)
|
27
|
-
rubocop (1.
|
27
|
+
rubocop (1.27.0)
|
28
28
|
parallel (~> 1.10)
|
29
29
|
parser (>= 3.1.0.0)
|
30
30
|
rainbow (>= 2.2.2, < 4.0)
|
@@ -33,7 +33,7 @@ GEM
|
|
33
33
|
rubocop-ast (>= 1.16.0, < 2.0)
|
34
34
|
ruby-progressbar (~> 1.7)
|
35
35
|
unicode-display_width (>= 1.4.0, < 3.0)
|
36
|
-
rubocop-ast (1.
|
36
|
+
rubocop-ast (1.17.0)
|
37
37
|
parser (>= 3.1.1.0)
|
38
38
|
rubocop-performance (1.13.3)
|
39
39
|
rubocop (>= 1.7.0, < 2.0)
|
data/config/base.yml
CHANGED
@@ -83,9 +83,8 @@ Layout/BlockEndNewline:
|
|
83
83
|
Enabled: true
|
84
84
|
|
85
85
|
Layout/CaseIndentation:
|
86
|
-
|
87
|
-
|
88
|
-
Enabled: false
|
86
|
+
Enabled: true
|
87
|
+
EnforcedStyle: end
|
89
88
|
|
90
89
|
Layout/ClassStructure:
|
91
90
|
Enabled: false
|
@@ -666,6 +665,10 @@ Lint/RedundantWithIndex:
|
|
666
665
|
Lint/RedundantWithObject:
|
667
666
|
Enabled: true
|
668
667
|
|
668
|
+
Lint/RefinementImportMethods:
|
669
|
+
Enabled: true
|
670
|
+
SafeAutoCorrect: false
|
671
|
+
|
669
672
|
Lint/RegexpAsCondition:
|
670
673
|
Enabled: true
|
671
674
|
|
@@ -1587,6 +1590,9 @@ Style/RedundantFileExtensionInRequire:
|
|
1587
1590
|
Style/RedundantFreeze:
|
1588
1591
|
Enabled: true
|
1589
1592
|
|
1593
|
+
Style/RedundantInitialize:
|
1594
|
+
Enabled: true
|
1595
|
+
|
1590
1596
|
Style/RedundantInterpolation:
|
1591
1597
|
Enabled: true
|
1592
1598
|
|
data/config/ruby-3.0.yml
CHANGED
data/docs/NEW_RUBIES.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Handling New Ruby Versions
|
2
|
+
|
3
|
+
When a new Ruby version comes out, you shouldn't have to make any immediate changes to StandardRb. The default configuration is the `base.yml` configuration and should continue to work correctly.
|
4
|
+
|
5
|
+
Often, Rubocop will add new rules to encourage usage of new language features in new Ruby versions. When that happens:
|
6
|
+
|
7
|
+
1. Add the rule to the base.yml file and disable it.
|
8
|
+
1. Assess the new rule and see if it should be added to StandardRb. If not, you're done. If so, enable in `base.yml` and read on.
|
9
|
+
1. Add a new config file for the penultimate minor version of Ruby, so for example, if the new Ruby version is `3.1` then the new config file would be for `3.0`.
|
10
|
+
1. In the new config file, make sure it inherits from `base.yml` and disable the new rule.
|
11
|
+
1. In the previous latest config file, make sure it inherits from your new config file.
|
12
|
+
|
13
|
+
And that should add new rules to StandardRb safely and gracefully.
|
data/lib/standard/version.rb
CHANGED
data/standard.gemspec
CHANGED
@@ -19,6 +19,6 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency "rubocop", "1.
|
22
|
+
spec.add_dependency "rubocop", "1.27.0"
|
23
23
|
spec.add_dependency "rubocop-performance", "1.13.3"
|
24
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Searls
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.27.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.27.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-performance
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -69,6 +69,7 @@ files:
|
|
69
69
|
- config/ruby-2.6.yml
|
70
70
|
- config/ruby-2.7.yml
|
71
71
|
- config/ruby-3.0.yml
|
72
|
+
- docs/NEW_RUBIES.md
|
72
73
|
- docs/RELEASE.md
|
73
74
|
- exe/standardrb
|
74
75
|
- lib/standard.rb
|