From 9d219df3571c736d5294921aef1e0a9535a818a3 Mon Sep 17 00:00:00 2001 From: Benjamin Quorning Date: Thu, 7 Sep 2023 10:50:56 +0200 Subject: [PATCH] Bump version to v2.24.0 --- CHANGELOG.md | 10 ++++++---- config/default.yml | 12 ++++++------ docs/antora.yml | 2 +- docs/modules/ROOT/pages/cops_rspec.adoc | 12 ++++++------ lib/rubocop/rspec/version.rb | 2 +- 5 files changed, 20 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2043300c3..ae7fd53a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,13 +2,15 @@ ## Master (Unreleased) -- Fix an infinite loop error when `RSpec/ExcessiveDocstringSpacing` finds a description with non-ASCII leading/trailing whitespace. ([@bcgraham]) +## 2.24.0 (2023-09-08) + +- Split `RSpec/FilePath` into `RSpec/SpecFilePathSuffix` and `RSpec/SpecFilePathFormat`. `RSpec/FilePath` cop is enabled by default, the two new cops are pending and need to be enabled explicitly. ([@ydah]) - Add new `RSpec/Eq` cop. ([@ydah]) -- Fix an incorrect autocorrect for `RSpec/ReceiveMessages` when return values declared between stubs. ([@marocchino]) -- Split `RSpec/FilePath` into `RSpec/SpecFilePathSuffix` and `RSpec/SpecFilePathFormat`. `RSpec/FilePath` cop is enabled by default, the two new cups are pending and need to be enabled explicitly. ([@ydah]) +- Add `RSpec/MetadataStyle` and `RSpec/EmptyMetadata` cops. ([@r7kamura]) - Add support `RSpec/Rails/HttpStatus` when `have_http_status` with string argument. ([@ydah]) +- Fix an infinite loop error when `RSpec/ExcessiveDocstringSpacing` finds a description with non-ASCII leading/trailing whitespace. ([@bcgraham]) +- Fix an incorrect autocorrect for `RSpec/ReceiveMessages` when return values declared between stubs. ([@marocchino]) - Fix a false positive `RSpec/Focus` when chained method call and inside define method. ([@ydah]) -- Add `RSpec/MetadataStyle` and `RSpec/EmptyMetadata` cops. ([@r7kamura]) ## 2.23.2 (2023-08-09) diff --git a/config/default.yml b/config/default.yml index 4b3f3a55a..c64854586 100644 --- a/config/default.yml +++ b/config/default.yml @@ -362,13 +362,13 @@ RSpec/EmptyLineAfterSubject: RSpec/EmptyMetadata: Description: Avoid empty metadata hash. Enabled: pending - VersionAdded: "<>" + VersionAdded: '2.24' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyMetadata RSpec/Eq: Description: Use `eq` instead of `be ==` to compare objects. Enabled: pending - VersionAdded: "<>" + VersionAdded: '2.24' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Eq RSpec/ExampleLength: @@ -458,7 +458,7 @@ RSpec/FilePath: IgnoreMethods: false SpecSuffixOnly: false VersionAdded: '1.2' - VersionChanged: "<>" + VersionChanged: '2.24' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FilePath RSpec/Focus: @@ -632,7 +632,7 @@ RSpec/MetadataStyle: SupportedStyles: - hash - symbol - VersionAdded: "<>" + VersionAdded: '2.24' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MetadataStyle RSpec/MissingExampleGroupArgument: @@ -869,13 +869,13 @@ RSpec/SpecFilePathFormat: IgnoreMethods: false IgnoreMetadata: type: routing - VersionAdded: "<>" + VersionAdded: '2.24' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/SpecFilePathFormat RSpec/SpecFilePathSuffix: Description: Checks that spec file paths suffix are consistent and well-formed. Enabled: pending - VersionAdded: "<>" + VersionAdded: '2.24' Include: - "**/*_spec*rb*" - "**/spec/**/*" diff --git a/docs/antora.yml b/docs/antora.yml index 51a533a15..31671cd83 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -1,5 +1,5 @@ name: rubocop-rspec title: RuboCop RSpec -version: ~ +version: '2.24' nav: - modules/ROOT/nav.adoc diff --git a/docs/modules/ROOT/pages/cops_rspec.adoc b/docs/modules/ROOT/pages/cops_rspec.adoc index 5d7aa272f..58de73def 100644 --- a/docs/modules/ROOT/pages/cops_rspec.adoc +++ b/docs/modules/ROOT/pages/cops_rspec.adoc @@ -1472,7 +1472,7 @@ let(:foo) { bar } | Pending | Yes | Yes -| <> +| 2.24 | - |=== @@ -1503,7 +1503,7 @@ describe 'Something' | Pending | Yes | Yes -| <> +| 2.24 | - |=== @@ -2007,7 +2007,7 @@ expect { my_app.print_report }.to output('Hello World').to_stdout | Yes | No | 1.2 -| <> +| 2.24 |=== Checks that spec file paths are consistent and well-formed. @@ -3266,7 +3266,7 @@ do_something | Pending | Yes | Yes -| <> +| 2.24 | - |=== @@ -5120,7 +5120,7 @@ it 'works', :a, :b, baz: true, foo: 'bar' | Pending | Yes | No -| <> +| 2.24 | - |=== @@ -5211,7 +5211,7 @@ whatever_spec.rb # describe MyClass, type: :routing do; end | Pending | Yes | No -| <> +| 2.24 | - |=== diff --git a/lib/rubocop/rspec/version.rb b/lib/rubocop/rspec/version.rb index 2b37ae023..59c7958f9 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.23.2' + STRING = '2.24.0' end end end