From a515b7389949a344350a6acecb60791814e018e3 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Wed, 9 Dec 2020 01:52:29 +0900 Subject: [PATCH] Cut 2.9.0 --- CHANGELOG.md | 2 ++ docs/antora.yml | 2 +- lib/rubocop/rails/version.rb | 2 +- relnotes/v2.9.0.md | 27 +++++++++++++++++++++++++++ 4 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 relnotes/v2.9.0.md diff --git a/CHANGELOG.md b/CHANGELOG.md index ce4f1d3582..13d779fe58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## master (unreleased) +## 2.9.0 (2020-12-09) + ### New features * [#362](https://github.com/rubocop-hq/rubocop-rails/pull/362): Add new `Rails/WhereEquals` cop. ([@eugeneius][]) diff --git a/docs/antora.yml b/docs/antora.yml index 34b6c248ba..21486ae3d7 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: master +version: '2.9' nav: - modules/ROOT/nav.adoc diff --git a/lib/rubocop/rails/version.rb b/lib/rubocop/rails/version.rb index 1c4442a8e6..075e781659 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.8.1' + STRING = '2.9.0' def self.document_version STRING.match('\d+\.\d+').to_s diff --git a/relnotes/v2.9.0.md b/relnotes/v2.9.0.md new file mode 100644 index 0000000000..2e71e0e058 --- /dev/null +++ b/relnotes/v2.9.0.md @@ -0,0 +1,27 @@ +### New features + +* [#362](https://github.com/rubocop-hq/rubocop-rails/pull/362): Add new `Rails/WhereEquals` cop. ([@eugeneius][]) +* [#339](https://github.com/rubocop-hq/rubocop-rails/pull/339): Add new `Rails/AttributeDefaultBlockValue` cop. ([@cilim][]) +* [#344](https://github.com/rubocop-hq/rubocop-rails/pull/344): Add new `Rails/ArelStar` cop which checks for quoted literal asterisks in `arel_table` calls. ([@flanger001][]) +* [#389](https://github.com/rubocop-hq/rubocop-rails/issues/389): Add `IgnoredMethods` config option for `Rails/FindEach` cop. ([@tejasbubane][]) + +### Bug fixes + +* [#371](https://github.com/rubocop-hq/rubocop-rails/pull/371): Fix an infinite loop error for `Rails/ActiveRecordCallbacksOrder` when callbacks have inline comments. ([@fatkodima][]) +* [#364](https://github.com/rubocop-hq/rubocop-rails/pull/364): Fix a problem that `Rails/UniqueValidationWithoutIndex` doesn't work in classes defined with compact style. ([@sinsoku][]) +* [#384](https://github.com/rubocop-hq/rubocop-rails/issues/384): Mark unsafe for `Rails/NegateInclude`. ([@koic][]) +* [#394](https://github.com/rubocop-hq/rubocop-rails/pull/394): Fix false offense detection of `Rails/RedundantAllowNil` when using both allow_nil and allow_blank on different helpers of the same validator`. ([@ngouy][]) + +### Changes + +* [#383](https://github.com/rubocop-hq/rubocop-rails/pull/383): Require RuboCop 0.90 or higher. ([@koic][]) +* [#365](https://github.com/rubocop-hq/rubocop-rails/issues/365): Mark `Rails/SquishedSQLHeredocs` unsafe for autocorrection. ([@tejasbubane][]) + +[@eugeneius]: https://github.com/eugeneius +[@cilim]: https://github.com/cilim +[@flanger001]: https://github.com/flanger001 +[@tejasbubane]: https://github.com/tejasbubane +[@fatkodima]: https://github.com/fatkodima +[@sinsoku]: https://github.com/sinsoku +[@koic]: https://github.com/koic +[@ngouy]: https://github.com/ngouy