From 2c33682107efd42c499d694f9ee4a7f8eddfb191 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Mon, 25 Dec 2023 09:47:39 +0900 Subject: [PATCH] Cut 2.23.1 --- CHANGELOG.md | 2 ++ docs/antora.yml | 2 +- docs/modules/ROOT/pages/cops_rails.adoc | 8 +++++++- lib/rubocop/rails/version.rb | 2 +- relnotes/v2.23.1.md | 5 +++++ 5 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 relnotes/v2.23.1.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 077ce30595..c0331a2fac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ ## master (unreleased) +## 2.23.1 (2023-12-25) + ### Bug fixes * [#1221](https://github.com/rubocop/rubocop-rails/issues/1221): Fix an exception in `Rails/WhereNot` when calling `.where` on an implicit receiver (e.g. inside model code). ([@bquorning][]) diff --git a/docs/antora.yml b/docs/antora.yml index 9e0ff48acb..ebab17b65b 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.23' nav: - modules/ROOT/nav.adoc diff --git a/docs/modules/ROOT/pages/cops_rails.adoc b/docs/modules/ROOT/pages/cops_rails.adoc index 156dc48ba9..1d8d770c8e 100644 --- a/docs/modules/ROOT/pages/cops_rails.adoc +++ b/docs/modules/ROOT/pages/cops_rails.adoc @@ -1,3 +1,9 @@ +//// + Do NOT edit this file by hand directly, as it is automatically generated. + + Please make any necessary changes to the cop documentation within the source files themselves. +//// + = Rails == Rails/ActionControllerFlashBeforeRender @@ -1118,7 +1124,7 @@ Checks legacy syntax usage of `tag` NOTE: Allow `tag` when the first argument is a variable because `tag(name)` is simpler rather than `tag.public_send(name)`. -And this cop will be renamed to something like `LegacyTag` in the future. (e.g. RuboCop Rails 2.0) +And this cop will be renamed to something like `LegacyTag` in the future. (e.g. RuboCop Rails 3.0) === Examples diff --git a/lib/rubocop/rails/version.rb b/lib/rubocop/rails/version.rb index 4b20fde50f..9e52b5d969 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.23.0' + STRING = '2.23.1' def self.document_version STRING.match('\d+\.\d+').to_s diff --git a/relnotes/v2.23.1.md b/relnotes/v2.23.1.md new file mode 100644 index 0000000000..c1c6e017d3 --- /dev/null +++ b/relnotes/v2.23.1.md @@ -0,0 +1,5 @@ +### Bug fixes + +* [#1221](https://github.com/rubocop/rubocop-rails/issues/1221): Fix an exception in `Rails/WhereNot` when calling `.where` on an implicit receiver (e.g. inside model code). ([@bquorning][]) + +[@bquorning]: https://github.com/bquorning