Skip to content

Commit 83cadd6

Browse files
committed
Cut 1.19.1
1 parent e78d6aa commit 83cadd6

File tree

5 files changed

+22
-7
lines changed

5 files changed

+22
-7
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.19.1 (2023-09-17)
15+
1416
### Bug fixes
1517

1618
* [#367](https://github.com/rubocop/rubocop-performance/issues/367): Fix an incorrect autocorrect for `Performance/BlockGivenWithExplicitBlock` when using `Lint/UnusedMethodArgument`'s autocorrection together. ([@ymap][])

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.19'
66
nav:
77
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops_performance.adoc

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,6 +1328,12 @@ is wanted.
13281328

13291329
This cop is unsafe because `Range#include?` (or `Range#member?`) and `Range#cover?`
13301330
are not equivalent behavior.
1331+
Example of a case where `Range#cover?` may not provide the desired result:
1332+
1333+
[source,ruby]
1334+
----
1335+
('a'..'z').cover?('yellow') # => true
1336+
----
13311337

13321338
=== Examples
13331339

@@ -1339,11 +1345,6 @@ are not equivalent behavior.
13391345
13401346
# good
13411347
('a'..'z').cover?('b') # => true
1342-
1343-
# Example of a case where `Range#cover?` may not provide
1344-
# the desired result:
1345-
1346-
('a'..'z').cover?('yellow') # => true
13471348
----
13481349

13491350
=== References
@@ -2299,6 +2300,8 @@ end
22992300

23002301
== Performance/UnfreezeString
23012302

2303+
NOTE: Required Ruby version: 2.3
2304+
23022305
|===
23032306
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed
23042307

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.19.0'
7+
STRING = '1.19.1'
88

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

relnotes/v1.19.1.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
### Bug fixes
2+
3+
* [#367](https://github.com/rubocop/rubocop-performance/issues/367): Fix an incorrect autocorrect for `Performance/BlockGivenWithExplicitBlock` when using `Lint/UnusedMethodArgument`'s autocorrection together. ([@ymap][])
4+
* [#370](https://github.com/rubocop/rubocop-performance/issues/370): Fix an incorrect autocorrect for `Performance/RedundantMatch` when expressions with lower precedence than `=~` are used as an argument. ([@ymap][])
5+
* [#365](https://github.com/rubocop/rubocop-performance/issues/365): Fix false positives for `Performance/ArraySemiInfiniteRangeSlice` when using `[]` with string literals. ([@koic][])
6+
* [#373](https://github.com/rubocop/rubocop-performance/pull/373): Set target version for `Performance/UnfreezeString`. ([@tagliala][])
7+
8+
[@ymap]: https://github.com/ymap
9+
[@koic]: https://github.com/koic
10+
[@tagliala]: https://github.com/tagliala

0 commit comments

Comments
 (0)