Skip to content

Commit f646d6e

Browse files
committed
Cut 2.26.2
1 parent a451135 commit f646d6e

File tree

5 files changed

+21
-2
lines changed

5 files changed

+21
-2
lines changed

CHANGELOG.md

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

1010
## master (unreleased)
1111

12+
## 2.26.2 (2024-09-21)
13+
1214
### Bug fixes
1315

1416
* [#1362](https://github.com/rubocop/rubocop-rails/issues/1362): Fix false positives for `Rails/EnumSyntax` when using Ruby 2.7. ([@koic][])

docs/antora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ name: rubocop-rails
22
title: RuboCop Rails
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: '2.26'
66
nav:
77
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops_rails.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,8 @@ collection.reject(&:blank?)
11091109
collection.reject { |_k, v| v.blank? }
11101110
collection.select(&:present?)
11111111
collection.select { |_k, v| v.present? }
1112+
collection.filter(&:present?)
1113+
collection.filter { |_k, v| v.present? }
11121114
11131115
# good
11141116
collection.compact_blank
@@ -1925,6 +1927,8 @@ enum status: { active: 0, archived: 1 }
19251927
19261928
== Rails/EnumSyntax
19271929
1930+
NOTE: Required Ruby version: 3.0
1931+
19281932
|===
19291933
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed
19301934

lib/rubocop/rails/version.rb

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

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

relnotes/v2.26.2.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### Bug fixes
2+
3+
* [#1362](https://github.com/rubocop/rubocop-rails/issues/1362): Fix false positives for `Rails/EnumSyntax` when using Ruby 2.7. ([@koic][])
4+
* [#1269](https://github.com/rubocop/rubocop-rails/issues/1269): Fix false positives for `Rails/ActionControllerFlashBeforeRender` in combination with implicit returns. ([@earlopain][])
5+
* [#1326](https://github.com/rubocop/rubocop-rails/pull/1326): Fix wrong autocorrect for `Rails/FilePath` when passing an array to `File.join`. ([@earlopain][])
6+
7+
### Changes
8+
9+
* [#1359](https://github.com/rubocop/rubocop-rails/pull/1359): Support `filter` in `Rails/CompactBlank`. ([@masato-bkn][])
10+
11+
[@koic]: https://github.com/koic
12+
[@earlopain]: https://github.com/earlopain
13+
[@masato-bkn]: https://github.com/masato-bkn

0 commit comments

Comments
 (0)