Skip to content

Commit 2b5c8c6

Browse files
committed
Cut 1.23.1
1 parent cfc046b commit 2b5c8c6

File tree

5 files changed

+23
-15
lines changed

5 files changed

+23
-15
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.23.1 (2025-01-04)
15+
1416
### Bug fixes
1517

1618
* [#478](https://github.com/rubocop/rubocop-performance/pull/478): Fix `Performance/RedundantStringChars` cop error in case of implicit receiver. ([@viralpraxis][])

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

docs/modules/ROOT/pages/cops_performance.adoc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ A <= B
4747
[#performancearraysemiinfiniterangeslice]
4848
== Performance/ArraySemiInfiniteRangeSlice
4949
50-
NOTE: Required Ruby version: 2.7
50+
NOTE: Requires Ruby version 2.7
5151
5252
|===
5353
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed
@@ -92,7 +92,7 @@ array.take(3)
9292
[#performancebigdecimalwithnumericargument]
9393
== Performance/BigDecimalWithNumericArgument
9494
95-
NOTE: Required Ruby version: 3.1
95+
NOTE: Requires Ruby version 3.1
9696
9797
|===
9898
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed
@@ -135,7 +135,7 @@ BigDecimal(1, 2)
135135
[#performancebindcall]
136136
== Performance/BindCall
137137
138-
NOTE: Required Ruby version: 2.7
138+
NOTE: Requires Ruby version 2.7
139139
140140
|===
141141
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed
@@ -613,14 +613,14 @@ For example:
613613
614614
[source,ruby]
615615
----
616-
`Model.where(id: [1, 2, 3]).select { |m| m.method == true }.size`
616+
Model.where(id: [1, 2, 3]).select { |m| m.method == true }.size
617617
----
618618
619619
becomes:
620620
621621
[source,ruby]
622622
----
623-
`Model.where(id: [1, 2, 3]).to_a.count { |m| m.method == true }`
623+
Model.where(id: [1, 2, 3]).to_a.count { |m| m.method == true }
624624
----
625625
626626
[#examples-performancecount]
@@ -649,7 +649,7 @@ Model.select(:value).count
649649
[#performancedeleteprefix]
650650
== Performance/DeletePrefix
651651
652-
NOTE: Required Ruby version: 2.5
652+
NOTE: Requires Ruby version 2.5
653653
654654
|===
655655
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed
@@ -732,7 +732,7 @@ str.sub!(/^prefix/, '')
732732
[#performancedeletesuffix]
733733
== Performance/DeleteSuffix
734734
735-
NOTE: Required Ruby version: 2.5
735+
NOTE: Requires Ruby version 2.5
736736
737737
|===
738738
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed
@@ -1236,7 +1236,7 @@ file.each_line { |l| puts l }
12361236
[#performancemapcompact]
12371237
== Performance/MapCompact
12381238
1239-
NOTE: Required Ruby version: 2.7
1239+
NOTE: Requires Ruby version 2.7
12401240
12411241
|===
12421242
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed
@@ -1515,7 +1515,7 @@ end
15151515
[#performanceredundantequalitycomparisonblock]
15161516
== Performance/RedundantEqualityComparisonBlock
15171517
1518-
NOTE: Required Ruby version: 2.5
1518+
NOTE: Requires Ruby version 2.5
15191519
15201520
|===
15211521
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed
@@ -1813,7 +1813,7 @@ str.chars.drop(2) # Incompatible with `str[2..-1].chars`.
18131813
[#performanceregexpmatch]
18141814
== Performance/RegexpMatch
18151815
1816-
NOTE: Required Ruby version: 2.4
1816+
NOTE: Requires Ruby version 2.4
18171817
18181818
|===
18191819
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed
@@ -1978,7 +1978,7 @@ array.last
19781978
[#performanceselectmap]
19791979
== Performance/SelectMap
19801980
1981-
NOTE: Required Ruby version: 2.7
1981+
NOTE: Requires Ruby version 2.7
19821982
19831983
|===
19841984
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed
@@ -2374,7 +2374,7 @@ Identifies places where `gsub` can be replaced by `tr` or `delete`.
23742374
[#performancesum]
23752375
== Performance/Sum
23762376
2377-
NOTE: Required Ruby version: 2.4
2377+
NOTE: Requires Ruby version 2.4
23782378
23792379
|===
23802380
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed
@@ -2531,7 +2531,7 @@ end
25312531
[#performanceunfreezestring]
25322532
== Performance/UnfreezeString
25332533
2534-
NOTE: Required Ruby version: 2.3
2534+
NOTE: Requires Ruby version 2.3
25352535
25362536
|===
25372537
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed

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.23.0'
7+
STRING = '1.23.1'
88

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

relnotes/v1.23.1.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
### Bug fixes
2+
3+
* [#478](https://github.com/rubocop/rubocop-performance/pull/478): Fix `Performance/RedundantStringChars` cop error in case of implicit receiver. ([@viralpraxis][])
4+
* [#480](https://github.com/rubocop/rubocop-performance/pull/480): Fix `Performance/Squeeze` cop error on frozen AST string node value. ([@viralpraxis][])
5+
6+
[@viralpraxis]: https://github.com/viralpraxis

0 commit comments

Comments
 (0)