standard 1.8.0 → 1.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cb18f6663bfbf93a64dd88b13a663d5f71afad9a97de84653a7264f73c4ff2e
4
- data.tar.gz: 011d683887002ab475fd0b480db3b14d03a0570745ecfc677360156155ccd7eb
3
+ metadata.gz: d09eecefc043efa10c64a0c5a1829eb4f52697a37aa398c696dab82957d4d2e0
4
+ data.tar.gz: 7456d21b200f8a3f1c4c4bc200b94ab1680690b80251b5b51b334cefffc791e0
5
5
  SHA512:
6
- metadata.gz: f1fad93a60bbd4ad5628565b5c8bb18b020bda8e59f3a0bdb6b2364f2b1439ffe85bed5bb21b0dec8522afb155aafa36bb4e48177c0ba67b577b139e05cb0870
7
- data.tar.gz: 86bd3d2c83a2a228ff18961480cee446d7c01e2f69139ac5187e472e784ef82eeec8be0ac4cca9f092e8782b8a7d940b1d6c5f0621354236b30535df375fc7a1
6
+ metadata.gz: edc84b1e1df6318aeed522d18250870628b5c135f4cc72bc97f75dedbb76909549c1efa9210859f795b48a8b95ee27bb0ee54c154a3cbe2b47eb715ab6b85934
7
+ data.tar.gz: 16ed12b864fc7960f5c379a001bce160bb705e9910a06ae1bab050a2c8f0cf4d407dcd3f5f96608b86f89fbe13bf7ae84c44c4e8fe5e777298884841da215a1f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.9.0
4
+
5
+ * 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.
6
+
3
7
  ## 1.8.0
4
8
 
5
9
  * Update rubocop from 1.25.1 to [1.26.0](https://github.com/rubocop/rubocop/tag/v1.26.0)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (1.8.0)
4
+ standard (1.9.0)
5
5
  rubocop (= 1.26.0)
6
6
  rubocop-performance (= 1.13.3)
7
7
 
@@ -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.21.0)
17
+ parallel (1.22.0)
18
18
  parser (3.1.1.0)
19
19
  ast (~> 2.4.1)
20
20
  pry (0.14.1)
data/config/base.yml CHANGED
@@ -83,9 +83,8 @@ Layout/BlockEndNewline:
83
83
  Enabled: true
84
84
 
85
85
  Layout/CaseIndentation:
86
- # Disabled because IndentOneStep can't be configured for one-liner cases. See:
87
- # https://github.com/rubocop-hq/rubocop/issues/6447
88
- Enabled: false
86
+ Enabled: true
87
+ EnforcedStyle: end
89
88
 
90
89
  Layout/ClassStructure:
91
90
  Enabled: false
@@ -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.
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new('1.8.0')
2
+ VERSION = Gem::Version.new('1.9.0')
3
3
  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.8.0
4
+ version: 1.9.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-03-16 00:00:00.000000000 Z
11
+ date: 2022-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -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
@@ -113,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
114
  - !ruby/object:Gem::Version
114
115
  version: '0'
115
116
  requirements: []
116
- rubygems_version: 3.2.32
117
+ rubygems_version: 3.2.15
117
118
  signing_key:
118
119
  specification_version: 4
119
120
  summary: Ruby Style Guide, with linter & automatic code fixer