From 49c8bb0234e0a81a8a0dc58df09c3de94c67a750 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Wed, 27 Nov 2019 01:59:55 +0900 Subject: [PATCH] Cut 2.4.0 --- CHANGELOG.md | 2 ++ lib/rubocop/rails/version.rb | 2 +- relnotes/v2.4.0.md | 27 +++++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 relnotes/v2.4.0.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c5217f15a..2e9796e986 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## master (unreleased) +## 2.4.0 (2019-11-27) + ### New features * [#123](https://github.com/rubocop-hq/rubocop-rails/pull/123): Add new `Rails/ApplicationController` and `Rails/ApplicationMailer` cops. ([@eugeneius][]) diff --git a/lib/rubocop/rails/version.rb b/lib/rubocop/rails/version.rb index f9b85f266b..e1ef585174 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.3.2' + STRING = '2.4.0' end end end diff --git a/relnotes/v2.4.0.md b/relnotes/v2.4.0.md new file mode 100644 index 0000000000..587b71c61f --- /dev/null +++ b/relnotes/v2.4.0.md @@ -0,0 +1,27 @@ +### New features + +* [#123](https://github.com/rubocop-hq/rubocop-rails/pull/123): Add new `Rails/ApplicationController` and `Rails/ApplicationMailer` cops. ([@eugeneius][]) +* [#130](https://github.com/rubocop-hq/rubocop-rails/pull/130): Add new `Rails/RakeEnvironment` cop. ([@pocke][]) +* [#132](https://github.com/rubocop-hq/rubocop-rails/pull/132): Add new `Rails/SafeNavigationWithBlank` cop. ([@gyfis][]) + +### Bug fixes + +* [#120](https://github.com/rubocop-hq/rubocop-rails/issues/120): Fix message for `Rails/SaveBang` when the save is in the body of a conditional. ([@jas14][]) +* [#131](https://github.com/rubocop-hq/rubocop-rails/pull/131): Fix an incorrect autocorrect for `Rails/Presence` when using `[]` method. ([@forresty][]) +* [#142](https://github.com/rubocop-hq/rubocop-rails/pull/142): Fix an incorrect autocorrect for `Rails/EnumHash` when using nested constants. ([@koic][]) +* [#136](https://github.com/rubocop-hq/rubocop-rails/pull/136): Fix a false positive for `Rails/ReversibleMigration` when using `change_default` with `:from` and `:to` options. ([@sinsoku][]) +* [#144](https://github.com/rubocop-hq/rubocop-rails/issues/144): Fix a false positive for `Rails/ReversibleMigration` when using `change_table_comment` or `change_column_comment` with a `:from` and `:to` hash. ([@DNA][]) + +### Changes + +* [#156](https://github.com/rubocop-hq/rubocop-rails/pull/156): Make `Rails/UnknownEnv` cop aware of `Rails.env == 'unknown_env'`. ([@pocke][]) +* [#141](https://github.com/rubocop-hq/rubocop-rails/pull/141): Change default of `EnforcedStyle` from `arguments` to `slashes` for `Rails/FilePath`. ([@koic][]) + +[@eugeneius]: https://github.com/eugeneius +[@pocke]: https://github.com/pocke +[@gyfis]: https://github.com/gyfis +[@jas14]: https://github.com/jas14 +[@forresty]: https://github.com/forresty +[@koic]: https://github.com/koic +[@sinsoku]: https://github.com/sinsoku +[@DNA]: https://github.com/DNA