From 7a334645fc0d9738e312764fd8324602a6e12778 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Thu, 2 Apr 2020 19:48:40 +0900 Subject: [PATCH] Cut 2.5.1 --- CHANGELOG.md | 2 ++ lib/rubocop/rails/version.rb | 2 +- relnotes/v2.5.1.md | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 relnotes/v2.5.1.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 60faeb9bb9..85d326203b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## master (unreleased) +## 2.5.1 (2020-04-02) + ### Bug fixes * [#213](https://github.com/rubocop-hq/rubocop-rails/pull/213): Fix a false positive for `Rails/UniqueValidationWithoutIndex` when using conditions. ([@sunny][]) diff --git a/lib/rubocop/rails/version.rb b/lib/rubocop/rails/version.rb index b7e50be8d6..3cf4601db6 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.5.0' + STRING = '2.5.1' end end end diff --git a/relnotes/v2.5.1.md b/relnotes/v2.5.1.md new file mode 100644 index 0000000000..0e1ccbd8d5 --- /dev/null +++ b/relnotes/v2.5.1.md @@ -0,0 +1,14 @@ +### Bug fixes + +* [#213](https://github.com/rubocop-hq/rubocop-rails/pull/213): Fix a false positive for `Rails/UniqueValidationWithoutIndex` when using conditions. ([@sunny][]) +* [#215](https://github.com/rubocop-hq/rubocop-rails/issues/215): Fix a false positive for `Rails/UniqueValidationWithoutIndex` when using Expression Indexes. ([@koic][]) +* [#214](https://github.com/rubocop-hq/rubocop-rails/issues/214): Fix an error for `Rails/UniqueValidationWithoutIndex`when a table has no column definition. ([@koic][]) +* [#221](https://github.com/rubocop-hq/rubocop-rails/issues/221): Make `Rails/UniqueValidationWithoutIndex` aware of `add_index` in db/schema.rb. ([@koic][]) + +### Changes + +* [#223](https://github.com/rubocop-hq/rubocop-rails/pull/223): Mark `Rails/ApplicationController`, `Rails/ApplicationJob`, `Rails/ApplicationMailer`, and `Rails/ApplicationRecord` as unsafe autocorrect. ([@hoshinotsuyoshi][]) + +[@sunny]: https://github.com/sunny +[@koic]: https://github.com/koic +[@hoshinotsuyoshi]: https://github.com/hoshinotsuyoshi