Skip to content

Commit

Permalink
Merge pull request #1708 from rubocop/release
Browse files Browse the repository at this point in the history
Bump version to v2.24.0
  • Loading branch information
bquorning authored Sep 8, 2023
2 parents 97269bc + 9d219df commit 7488573
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 18 deletions.
10 changes: 6 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
12 changes: 6 additions & 6 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -362,13 +362,13 @@ RSpec/EmptyLineAfterSubject:
RSpec/EmptyMetadata:
Description: Avoid empty metadata hash.
Enabled: pending
VersionAdded: "<<next>>"
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: "<<next>>"
VersionAdded: '2.24'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Eq

RSpec/ExampleLength:
Expand Down Expand Up @@ -458,7 +458,7 @@ RSpec/FilePath:
IgnoreMethods: false
SpecSuffixOnly: false
VersionAdded: '1.2'
VersionChanged: "<<next>>"
VersionChanged: '2.24'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FilePath

RSpec/Focus:
Expand Down Expand Up @@ -632,7 +632,7 @@ RSpec/MetadataStyle:
SupportedStyles:
- hash
- symbol
VersionAdded: "<<next>>"
VersionAdded: '2.24'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MetadataStyle

RSpec/MissingExampleGroupArgument:
Expand Down Expand Up @@ -869,13 +869,13 @@ RSpec/SpecFilePathFormat:
IgnoreMethods: false
IgnoreMetadata:
type: routing
VersionAdded: "<<next>>"
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: "<<next>>"
VersionAdded: '2.24'
Include:
- "**/*_spec*rb*"
- "**/spec/**/*"
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.24'
nav:
- modules/ROOT/nav.adoc
12 changes: 6 additions & 6 deletions docs/modules/ROOT/pages/cops_rspec.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1472,7 +1472,7 @@ let(:foo) { bar }
| Pending
| Yes
| Yes
| <<next>>
| 2.24
| -
|===

Expand Down Expand Up @@ -1503,7 +1503,7 @@ describe 'Something'
| Pending
| Yes
| Yes
| <<next>>
| 2.24
| -
|===

Expand Down Expand Up @@ -2007,7 +2007,7 @@ expect { my_app.print_report }.to output('Hello World').to_stdout
| Yes
| No
| 1.2
| <<next>>
| 2.24
|===

Checks that spec file paths are consistent and well-formed.
Expand Down Expand Up @@ -3266,7 +3266,7 @@ do_something
| Pending
| Yes
| Yes
| <<next>>
| 2.24
| -
|===

Expand Down Expand Up @@ -5120,7 +5120,7 @@ it 'works', :a, :b, baz: true, foo: 'bar'
| Pending
| Yes
| No
| <<next>>
| 2.24
| -
|===

Expand Down Expand Up @@ -5211,7 +5211,7 @@ whatever_spec.rb # describe MyClass, type: :routing do; end
| Pending
| Yes
| No
| <<next>>
| 2.24
| -
|===

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.23.2'
STRING = '2.24.0'
end
end
end

0 comments on commit 7488573

Please sign in to comment.