diff --git a/CHANGELOG.md b/CHANGELOG.md index a26378c60..e60f73bf1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/config/default.yml b/config/default.yml index 1f6db403b..48c67a9b9 100644 --- a/config/default.yml +++ b/config/default.yml @@ -149,7 +149,7 @@ RSpec/BeEmpty: Enabled: pending AutoCorrect: contextual VersionAdded: '2.20' - VersionChanged: "<>" + VersionChanged: '2.31' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/BeEmpty RSpec/BeEq: @@ -316,7 +316,7 @@ RSpec/EmptyExampleGroup: AutoCorrect: contextual SafeAutoCorrect: false VersionAdded: '1.7' - VersionChanged: "<>" + VersionChanged: '2.31' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyExampleGroup RSpec/EmptyHook: @@ -324,7 +324,7 @@ RSpec/EmptyHook: Enabled: true AutoCorrect: contextual VersionAdded: '1.39' - VersionChanged: "<>" + VersionChanged: '2.31' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyHook RSpec/EmptyLineAfterExample: @@ -370,7 +370,7 @@ RSpec/EmptyMetadata: Enabled: pending AutoCorrect: contextual VersionAdded: '2.24' - VersionChanged: "<>" + VersionChanged: '2.31' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyMetadata RSpec/EmptyOutput: @@ -486,7 +486,7 @@ RSpec/Focus: Enabled: true AutoCorrect: contextual VersionAdded: '1.5' - VersionChanged: "<>" + VersionChanged: '2.31' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Focus RSpec/HookArgument: @@ -506,7 +506,7 @@ RSpec/HooksBeforeExamples: Enabled: true AutoCorrect: contextual VersionAdded: '1.29' - VersionChanged: "<>" + VersionChanged: '2.31' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/HooksBeforeExamples RSpec/IdenticalEqualityAssertion: @@ -614,7 +614,7 @@ RSpec/LetBeforeExamples: Enabled: true AutoCorrect: contextual VersionAdded: '1.16' - VersionChanged: "<>" + VersionChanged: '2.31' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/LetBeforeExamples RSpec/LetSetup: @@ -866,7 +866,7 @@ RSpec/ScatteredLet: Enabled: true AutoCorrect: contextual VersionAdded: '1.14' - VersionChanged: "<>" + VersionChanged: '2.31' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ScatteredLet RSpec/ScatteredSetup: @@ -874,7 +874,7 @@ RSpec/ScatteredSetup: Enabled: true AutoCorrect: contextual VersionAdded: '1.10' - VersionChanged: "<>" + VersionChanged: '2.31' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ScatteredSetup RSpec/SharedContext: diff --git a/docs/antora.yml b/docs/antora.yml index 51a533a15..68ce7b349 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -1,5 +1,5 @@ name: rubocop-rspec title: RuboCop RSpec -version: ~ +version: '2.31' nav: - modules/ROOT/nav.adoc diff --git a/docs/modules/ROOT/pages/cops_rspec.adoc b/docs/modules/ROOT/pages/cops_rspec.adoc index 9883ee715..d44f1b54c 100644 --- a/docs/modules/ROOT/pages/cops_rspec.adoc +++ b/docs/modules/ROOT/pages/cops_rspec.adoc @@ -201,7 +201,7 @@ expect(foo).to be(true) | Yes | Command-line only | 2.20 -| <> +| 2.31 |=== Prefer using `be_empty` when checking for an empty array. @@ -1142,7 +1142,7 @@ describe 'Something', :a | Yes | Command-line only (Unsafe) | 1.7 -| <> +| 2.31 |=== Checks if an example group does not include any tests. @@ -1196,7 +1196,7 @@ end | Yes | Command-line only | 1.39 -| <> +| 2.31 |=== Checks for empty before and after hooks. @@ -1499,7 +1499,7 @@ let(:foo) { bar } | Yes | Command-line only | 2.24 -| <> +| 2.31 |=== Avoid empty metadata hash. @@ -2225,7 +2225,7 @@ my_class_spec.rb # describe MyClass, '#method' | Yes | Command-line only | 1.5 -| <> +| 2.31 |=== Checks if examples are focused. @@ -2387,7 +2387,7 @@ end | Yes | Command-line only | 1.29 -| <> +| 2.31 |=== Checks for before/around/after hooks that come after an example. @@ -3142,7 +3142,7 @@ end | Yes | Command-line only | 1.16 -| <> +| 2.31 |=== Checks for `let` definitions that come after an example. @@ -5098,7 +5098,7 @@ allow(Foo).to receive(:bar).and_return(bar.baz) | Yes | Command-line only | 1.14 -| <> +| 2.31 |=== Checks for let scattered across the example group. @@ -5141,7 +5141,7 @@ end | Yes | Command-line only | 1.10 -| <> +| 2.31 |=== Checks for setup scattered across multiple hooks in an example group. diff --git a/lib/rubocop/rspec/version.rb b/lib/rubocop/rspec/version.rb index 8c637c6a9..29e97454b 100644 --- a/lib/rubocop/rspec/version.rb +++ b/lib/rubocop/rspec/version.rb @@ -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