From 770288882c89b9b658c9a6c6dae6b3929dd2c1aa Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Mon, 25 Mar 2024 12:22:29 +0900 Subject: [PATCH] Cut 2.24.1 --- CHANGELOG.md | 2 ++ config/default.yml | 2 +- docs/antora.yml | 2 +- docs/modules/ROOT/pages/cops_rails.adoc | 2 +- lib/rubocop/rails/version.rb | 2 +- relnotes/v2.24.1.md | 17 +++++++++++++++++ 6 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 relnotes/v2.24.1.md diff --git a/CHANGELOG.md b/CHANGELOG.md index be285bd605..2bffe4ca96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ ## master (unreleased) +## 2.24.1 (2024-03-25) + ### Bug fixes * [#1244](https://github.com/rubocop/rubocop-rails/issues/1244): Fix a false positive for `Rails/ActionControllerFlashBeforeRender` when returning `redirect_to`. ([@earlopain][]) diff --git a/config/default.yml b/config/default.yml index 37291c46bf..33f472ea72 100644 --- a/config/default.yml +++ b/config/default.yml @@ -165,7 +165,7 @@ Rails/ActiveSupportOnLoad: - 'https://guides.rubyonrails.org/engines.html#available-load-hooks' SafeAutoCorrect: false VersionAdded: '2.16' - VersionChanged: <> + VersionChanged: '2.24' Rails/AddColumnIndex: Description: >- diff --git a/docs/antora.yml b/docs/antora.yml index 9e0ff48acb..8039df97f6 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -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.24' nav: - modules/ROOT/nav.adoc diff --git a/docs/modules/ROOT/pages/cops_rails.adoc b/docs/modules/ROOT/pages/cops_rails.adoc index d602ef2480..3308d9fc08 100644 --- a/docs/modules/ROOT/pages/cops_rails.adoc +++ b/docs/modules/ROOT/pages/cops_rails.adoc @@ -391,7 +391,7 @@ are not used. | Yes | Always (Unsafe) | 2.16 -| - +| 2.24 |=== Checks for Rails framework classes that are patched directly instead of using Active Support load hooks. Direct diff --git a/lib/rubocop/rails/version.rb b/lib/rubocop/rails/version.rb index 00e82a9c9b..f5c6881e78 100644 --- a/lib/rubocop/rails/version.rb +++ b/lib/rubocop/rails/version.rb @@ -4,7 +4,7 @@ module RuboCop module Rails # This module holds the RuboCop Rails version information. module Version - STRING = '2.24.0' + STRING = '2.24.1' def self.document_version STRING.match('\d+\.\d+').to_s diff --git a/relnotes/v2.24.1.md b/relnotes/v2.24.1.md new file mode 100644 index 0000000000..ebb5889837 --- /dev/null +++ b/relnotes/v2.24.1.md @@ -0,0 +1,17 @@ +### Bug fixes + +* [#1244](https://github.com/rubocop/rubocop-rails/issues/1244): Fix a false positive for `Rails/ActionControllerFlashBeforeRender` when returning `redirect_to`. ([@earlopain][]) +* [#1255](https://github.com/rubocop/rubocop-rails/pull/1255): Fix an error for `Rails/UniqBeforePluck` with `EnforcedStyle: aggressive` when no receiver. ([@earlopain][]) +* [#1247](https://github.com/rubocop/rubocop-rails/issues/1247): Fix an error for `Rails/UnusedIgnoredColumns` when without tables in db/schema.rb. ([@koic][]) +* [#1253](https://github.com/rubocop/rubocop-rails/pull/1253): Fix an error for `Rails/WhereMissing` with leading `where` without receiver. ([@earlopain][]) +* [#1254](https://github.com/rubocop/rubocop-rails/pull/1254): Fix an error for `Rails/ExpandedDateRange` when passing an argument only to the first method call for weeks. ([@earlopain][]) +* [#1256](https://github.com/rubocop/rubocop-rails/pull/1256): Fix an error for `Rails/ActiveSupportOnLoad` when calling without arguments. ([@earlopain][]) +* [#1230](https://github.com/rubocop/rubocop-rails/issues/1230): Fix a false positive for `Rails/SaveBang` if `persisted?` is checked on parenthesised expression. ([@earlopain][]) +* [#1200](https://github.com/rubocop/rubocop-rails/issues/1200): Make `Rails/TimeZone` aware of safe navigation. ([@earlopain][]) + +### Changes + +* [#1257](https://github.com/rubocop/rubocop-rails/pull/1257): Add Rails 7.1 load hooks and `active_record_sqlite3adapter` to `Rails/ActiveSupportOnLoad`. ([@earlopain][]) + +[@earlopain]: https://github.com/earlopain +[@koic]: https://github.com/koic