Skip to content

Commit decd4a4

Browse files
committed
Cut 1.21.1
1 parent e9acfaf commit decd4a4

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
## master (unreleased)
1313

14+
## 1.21.1 (2024-06-16)
15+
1416
### Bug fixes
1517

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

docs/antora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ name: rubocop-performance
22
title: RuboCop Performance
33
# We always provide version without patch here (e.g. 1.1),
44
# as patch versions should not appear in the docs.
5-
version: ~
5+
version: '1.21'
66
nav:
77
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops_performance.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,8 +1169,9 @@ This cop identifies places where `map { ... }.compact` can be replaced by `filte
11691169
11701170
=== Safety
11711171
1172-
This cop's autocorrection is unsafe because `map { ... }.compact` that is not
1173-
compatible with `filter_map`.
1172+
This cop's autocorrection is unsafe because `map { ... }.compact` might yield
1173+
different results than `filter_map`. As illustrated in the example, `filter_map`
1174+
also filters out falsy values, while `compact` only gets rid of `nil`.
11741175
11751176
=== Examples
11761177

lib/rubocop/performance/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module RuboCop
44
module Performance
55
# This module holds the RuboCop Performance version information.
66
module Version
7-
STRING = '1.21.0'
7+
STRING = '1.21.1'
88

99
def self.document_version
1010
STRING.match('\d+\.\d+').to_s

relnotes/v1.21.1.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### Bug fixes
2+
3+
* [#452](https://github.com/rubocop/rubocop-performance/pull/452): Fix an error for `Performance/RedundantEqualityComparisonBlock` when the block is empty. ([@earlopain][])
4+
5+
[@earlopain]: https://github.com/earlopain

0 commit comments

Comments
 (0)