Skip to content

Commit 87dd3e3

Browse files
committed
Cut 2.31.0
1 parent 85f2a72 commit 87dd3e3

File tree

5 files changed

+19
-7
lines changed

5 files changed

+19
-7
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.31.0 (2025-04-01)
13+
1214
### New features
1315

1416
* [#1471](https://github.com/rubocop/rubocop-rails/pull/1471): Support `it` block parameter in `Rails` cops. ([@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.31'
66
nav:
77
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops_rails.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -725,16 +725,16 @@ end
725725
726726
Prevents usage of `"*"` on an Arel::Table column reference.
727727
728-
Using `arel_table["*"]` causes the outputted string to be a literal
729-
quoted asterisk (e.g. <tt>`my_model`.`*`</tt>). This causes the
730-
database to look for a column named <tt>`*`</tt> (or `"*"`) as opposed
728+
Using `arel_table["\*"]` causes the outputted string to be a literal
729+
quoted asterisk (e.g. `my_model`.`*`). This causes the
730+
database to look for a column named `\*` (or `"*"`) as opposed
731731
to expanding the column list as one would likely expect.
732732
733733
[#safety-railsarelstar]
734734
=== Safety
735735
736-
This cop's autocorrection is unsafe because it turns a quoted `*` into
737-
an SQL `*`, unquoted. `*` is a valid column name in certain databases
736+
This cop's autocorrection is unsafe because it turns a quoted `\*` into
737+
an SQL `*`, unquoted. `\*` is a valid column name in certain databases
738738
supported by Rails, and even though it is usually a mistake,
739739
it might denote legitimate access to a column named `*`.
740740

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.30.3'
7+
STRING = '2.31.0'
88

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

relnotes/v2.31.0.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
### New features
2+
3+
* [#1471](https://github.com/rubocop/rubocop-rails/pull/1471): Support `it` block parameter in `Rails` cops. ([@koic][])
4+
5+
### Bug fixes
6+
7+
* [#1465](https://github.com/rubocop/rubocop-rails/issues/1465): Avoid warnings about methods of `RuboCop::Cop::EnforceSuperclass` being redefined. ([@davidrunger][])
8+
9+
[@koic]: https://github.com/koic
10+
[@davidrunger]: https://github.com/davidrunger

0 commit comments

Comments
 (0)