Skip to content

Commit

Permalink
Bump version to v2.31
Browse files Browse the repository at this point in the history
  • Loading branch information
ydah committed Jun 7, 2024
1 parent 2b69a04 commit ac06f38
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 20 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Master (Unreleased)

## 2.31.0 (2024-06-07)

- Support `AutoCorrect: contextual` option for LSP. ([@ydah])

## 2.30.0 (2024-06-03)
Expand Down
18 changes: 9 additions & 9 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ RSpec/BeEmpty:
Enabled: pending
AutoCorrect: contextual
VersionAdded: '2.20'
VersionChanged: "<<next>>"
VersionChanged: '2.31'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/BeEmpty

RSpec/BeEq:
Expand Down Expand Up @@ -316,15 +316,15 @@ RSpec/EmptyExampleGroup:
AutoCorrect: contextual
SafeAutoCorrect: false
VersionAdded: '1.7'
VersionChanged: "<<next>>"
VersionChanged: '2.31'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyExampleGroup

RSpec/EmptyHook:
Description: Checks for empty before and after hooks.
Enabled: true
AutoCorrect: contextual
VersionAdded: '1.39'
VersionChanged: "<<next>>"
VersionChanged: '2.31'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyHook

RSpec/EmptyLineAfterExample:
Expand Down Expand Up @@ -370,7 +370,7 @@ RSpec/EmptyMetadata:
Enabled: pending
AutoCorrect: contextual
VersionAdded: '2.24'
VersionChanged: "<<next>>"
VersionChanged: '2.31'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyMetadata

RSpec/EmptyOutput:
Expand Down Expand Up @@ -486,7 +486,7 @@ RSpec/Focus:
Enabled: true
AutoCorrect: contextual
VersionAdded: '1.5'
VersionChanged: "<<next>>"
VersionChanged: '2.31'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Focus

RSpec/HookArgument:
Expand All @@ -506,7 +506,7 @@ RSpec/HooksBeforeExamples:
Enabled: true
AutoCorrect: contextual
VersionAdded: '1.29'
VersionChanged: "<<next>>"
VersionChanged: '2.31'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/HooksBeforeExamples

RSpec/IdenticalEqualityAssertion:
Expand Down Expand Up @@ -614,7 +614,7 @@ RSpec/LetBeforeExamples:
Enabled: true
AutoCorrect: contextual
VersionAdded: '1.16'
VersionChanged: "<<next>>"
VersionChanged: '2.31'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/LetBeforeExamples

RSpec/LetSetup:
Expand Down Expand Up @@ -866,15 +866,15 @@ RSpec/ScatteredLet:
Enabled: true
AutoCorrect: contextual
VersionAdded: '1.14'
VersionChanged: "<<next>>"
VersionChanged: '2.31'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ScatteredLet

RSpec/ScatteredSetup:
Description: Checks for setup scattered across multiple hooks in an example group.
Enabled: true
AutoCorrect: contextual
VersionAdded: '1.10'
VersionChanged: "<<next>>"
VersionChanged: '2.31'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ScatteredSetup

RSpec/SharedContext:
Expand Down
2 changes: 1 addition & 1 deletion docs/antora.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: rubocop-rspec
title: RuboCop RSpec
version: ~
version: '2.31'
nav:
- modules/ROOT/nav.adoc
18 changes: 9 additions & 9 deletions docs/modules/ROOT/pages/cops_rspec.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ expect(foo).to be(true)
| Yes
| Command-line only
| 2.20
| <<next>>
| 2.31
|===
Prefer using `be_empty` when checking for an empty array.
Expand Down Expand Up @@ -1142,7 +1142,7 @@ describe 'Something', :a
| Yes
| Command-line only (Unsafe)
| 1.7
| <<next>>
| 2.31
|===
Checks if an example group does not include any tests.
Expand Down Expand Up @@ -1196,7 +1196,7 @@ end
| Yes
| Command-line only
| 1.39
| <<next>>
| 2.31
|===
Checks for empty before and after hooks.
Expand Down Expand Up @@ -1499,7 +1499,7 @@ let(:foo) { bar }
| Yes
| Command-line only
| 2.24
| <<next>>
| 2.31
|===
Avoid empty metadata hash.
Expand Down Expand Up @@ -2225,7 +2225,7 @@ my_class_spec.rb # describe MyClass, '#method'
| Yes
| Command-line only
| 1.5
| <<next>>
| 2.31
|===
Checks if examples are focused.
Expand Down Expand Up @@ -2387,7 +2387,7 @@ end
| Yes
| Command-line only
| 1.29
| <<next>>
| 2.31
|===
Checks for before/around/after hooks that come after an example.
Expand Down Expand Up @@ -3142,7 +3142,7 @@ end
| Yes
| Command-line only
| 1.16
| <<next>>
| 2.31
|===
Checks for `let` definitions that come after an example.
Expand Down Expand Up @@ -5098,7 +5098,7 @@ allow(Foo).to receive(:bar).and_return(bar.baz)
| Yes
| Command-line only
| 1.14
| <<next>>
| 2.31
|===
Checks for let scattered across the example group.
Expand Down Expand Up @@ -5141,7 +5141,7 @@ end
| Yes
| Command-line only
| 1.10
| <<next>>
| 2.31
|===
Checks for setup scattered across multiple hooks in an example group.
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/rspec/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module RuboCop
module RSpec
# Version information for the RSpec RuboCop plugin.
module Version
STRING = '2.30.0'
STRING = '2.31.0'
end
end
end

0 comments on commit ac06f38

Please sign in to comment.