Skip to content

Commit

Permalink
Cut 1.21.1
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Jun 16, 2024
1 parent e9acfaf commit decd4a4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

## master (unreleased)

## 1.21.1 (2024-06-16)

### Bug fixes

* [#452](https://github.com/rubocop/rubocop-performance/pull/452): Fix an error for `Performance/RedundantEqualityComparisonBlock` when the block is empty. ([@earlopain][])
Expand Down
2 changes: 1 addition & 1 deletion docs/antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ name: rubocop-performance
title: RuboCop Performance
# We always provide version without patch here (e.g. 1.1),
# as patch versions should not appear in the docs.
version: ~
version: '1.21'
nav:
- modules/ROOT/nav.adoc
5 changes: 3 additions & 2 deletions docs/modules/ROOT/pages/cops_performance.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1169,8 +1169,9 @@ This cop identifies places where `map { ... }.compact` can be replaced by `filte
=== Safety
This cop's autocorrection is unsafe because `map { ... }.compact` that is not
compatible with `filter_map`.
This cop's autocorrection is unsafe because `map { ... }.compact` might yield
different results than `filter_map`. As illustrated in the example, `filter_map`
also filters out falsy values, while `compact` only gets rid of `nil`.
=== Examples
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/performance/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module RuboCop
module Performance
# This module holds the RuboCop Performance version information.
module Version
STRING = '1.21.0'
STRING = '1.21.1'

def self.document_version
STRING.match('\d+\.\d+').to_s
Expand Down
5 changes: 5 additions & 0 deletions relnotes/v1.21.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Bug fixes

* [#452](https://github.com/rubocop/rubocop-performance/pull/452): Fix an error for `Performance/RedundantEqualityComparisonBlock` when the block is empty. ([@earlopain][])

[@earlopain]: https://github.com/earlopain

0 comments on commit decd4a4

Please sign in to comment.