Skip to content

Commit 92c663c

Browse files
committed
Cut 2.30.3
1 parent 801d002 commit 92c663c

File tree

6 files changed

+30
-4
lines changed

6 files changed

+30
-4
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.30.3 (2025-03-03)
13+
1214
### Bug fixes
1315

1416
* [#1458](https://github.com/rubocop/rubocop-rails/pull/1458): Fix a false positive for `Rails/RelativeDateConstant` when assigning a lambda/proc with numblock. ([@earlopain][])

config/default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ Rails/Delegate:
367367
Description: 'Prefer delegate method for delegations.'
368368
Enabled: true
369369
VersionAdded: '0.21'
370-
VersionChanged: <<next>>
370+
VersionChanged: '2.30'
371371
# When set to true, using the target object as a prefix of the
372372
# method name without using the `delegate` method will be a
373373
# violation. When set to false, this case is legal.

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.30'
66
nav:
77
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops_rails.adoc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ end
15411541
| Yes
15421542
| Always
15431543
| 0.21
1544-
| 0.50
1544+
| 2.30
15451545
|===
15461546
15471547
Looks for delegations that could have been created
@@ -1556,6 +1556,9 @@ using the target object as a prefix of the method name
15561556
without using the `delegate` method will be a violation.
15571557
When set to `false`, this case is legal.
15581558
1559+
It is disabled for controllers in order to keep controller actions
1560+
explicitly defined.
1561+
15591562
[#examples-railsdelegate]
15601563
=== Examples
15611564
@@ -1626,6 +1629,10 @@ delegate :bar, to: :foo, prefix: true
16261629
| EnforceForPrefixed
16271630
| `true`
16281631
| Boolean
1632+
1633+
| Exclude
1634+
| `+app/controllers/**/*.rb+`
1635+
| Array
16291636
|===
16301637
16311638
[#railsdelegateallowblank]

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.2'
7+
STRING = '2.30.3'
88

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

relnotes/v2.30.3.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
### Bug fixes
2+
3+
* [#1458](https://github.com/rubocop/rubocop-rails/pull/1458): Fix a false positive for `Rails/RelativeDateConstant` when assigning a lambda/proc with numblock. ([@earlopain][])
4+
* [#1457](https://github.com/rubocop/rubocop-rails/pull/1457): Fix a false positive for `Rails/ReversibleMigration` in `drop_table` with numblock. ([@earlopain][])
5+
* [#1456](https://github.com/rubocop/rubocop-rails/pull/1456): Fix a false positive for `Rails/CreateTableWithTimestamps` with numblocks. ([@earlopain][])
6+
* [#1459](https://github.com/rubocop/rubocop-rails/pull/1459): Fix a false positive for `Rails/UniqBeforePluck` when using a numblock with `uniq`. ([@earlopain][])
7+
* [#1455](https://github.com/rubocop/rubocop-rails/pull/1455): Make `Rails/SaveBang` aware of numblocks. ([@earlopain][])
8+
* [#1453](https://github.com/rubocop/rubocop-rails/pull/1453): Make `Rails/TransactionExitStatement` aware of numblocks. ([@earlopain][])
9+
10+
### Changes
11+
12+
* [#1179](https://github.com/rubocop/rubocop-rails/issues/1179): `Rails/ReflectionClassName`: Accept method calls on local variables. ([@exterm][])
13+
* [#1385](https://github.com/rubocop/rubocop-rails/pull/1385): Make `Lint/UselessAccessModifier` aware of `ActiveSupport::Concern` and `Module#concerning`/`Module#concern` core extensions. ([@earlopain][])
14+
* [#1454](https://github.com/rubocop/rubocop-rails/issues/1454): Disable `Rails/Delegate` for controllers. ([@earlopain][])
15+
16+
[@earlopain]: https://github.com/earlopain
17+
[@exterm]: https://github.com/exterm

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy