Skip to content

Commit

Permalink
Cut 2.26.2
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Sep 21, 2024
1 parent a451135 commit f646d6e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

## master (unreleased)

## 2.26.2 (2024-09-21)

### Bug fixes

* [#1362](https://github.com/rubocop/rubocop-rails/issues/1362): Fix false positives for `Rails/EnumSyntax` when using Ruby 2.7. ([@koic][])
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-rails
title: RuboCop Rails
# We always provide version without patch here (e.g. 1.1),
# as patch versions should not appear in the docs.
version: ~
version: '2.26'
nav:
- modules/ROOT/nav.adoc
4 changes: 4 additions & 0 deletions docs/modules/ROOT/pages/cops_rails.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,8 @@ collection.reject(&:blank?)
collection.reject { |_k, v| v.blank? }
collection.select(&:present?)
collection.select { |_k, v| v.present? }
collection.filter(&:present?)
collection.filter { |_k, v| v.present? }
# good
collection.compact_blank
Expand Down Expand Up @@ -1925,6 +1927,8 @@ enum status: { active: 0, archived: 1 }
== Rails/EnumSyntax
NOTE: Required Ruby version: 3.0
|===
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/rails/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module RuboCop
module Rails
# This module holds the RuboCop Rails version information.
module Version
STRING = '2.26.1'
STRING = '2.26.2'

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

* [#1362](https://github.com/rubocop/rubocop-rails/issues/1362): Fix false positives for `Rails/EnumSyntax` when using Ruby 2.7. ([@koic][])
* [#1269](https://github.com/rubocop/rubocop-rails/issues/1269): Fix false positives for `Rails/ActionControllerFlashBeforeRender` in combination with implicit returns. ([@earlopain][])
* [#1326](https://github.com/rubocop/rubocop-rails/pull/1326): Fix wrong autocorrect for `Rails/FilePath` when passing an array to `File.join`. ([@earlopain][])

### Changes

* [#1359](https://github.com/rubocop/rubocop-rails/pull/1359): Support `filter` in `Rails/CompactBlank`. ([@masato-bkn][])

[@koic]: https://github.com/koic
[@earlopain]: https://github.com/earlopain
[@masato-bkn]: https://github.com/masato-bkn

0 comments on commit f646d6e

Please sign in to comment.