diff --git a/CHANGELOG.md b/CHANGELOG.md index b7f16a4031..d01d5d6257 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## master (unreleased) +## 2.17.1 (2022-10-25) + ### Bug fixes * [#829](https://github.com/rubocop/rubocop-rails/pull/829): Revert "Extends `Rails/HttpStatus` cop to check `routes.rb`" introduced in 2.17.0. ([@jdufresne][]) diff --git a/docs/antora.yml b/docs/antora.yml index 9e0ff48acb..f804e59817 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: ~ +version: '2.17' nav: - modules/ROOT/nav.adoc diff --git a/docs/modules/ROOT/pages/cops_rails.adoc b/docs/modules/ROOT/pages/cops_rails.adoc index 21ce7cb8ea..766004f40c 100644 --- a/docs/modules/ROOT/pages/cops_rails.adoc +++ b/docs/modules/ROOT/pages/cops_rails.adoc @@ -2527,7 +2527,6 @@ render json: { foo: 'bar' }, status: 200 render plain: 'foo/bar', status: 304 redirect_to root_url, status: 301 head 200 -get '/foobar', to: redirect('/foobar/baz', status: 301) # good render :foo, status: :ok @@ -2535,7 +2534,6 @@ render json: { foo: 'bar' }, status: :ok render plain: 'foo/bar', status: :not_modified redirect_to root_url, status: :moved_permanently head :ok -get '/foobar', to: redirect('/foobar/baz', status: :moved_permanently) ---- ==== EnforcedStyle: numeric @@ -2548,7 +2546,6 @@ render json: { foo: 'bar' }, status: :not_found render plain: 'foo/bar', status: :not_modified redirect_to root_url, status: :moved_permanently head :ok -get '/foobar', to: redirect('/foobar/baz', status: :moved_permanently) # good render :foo, status: 200 @@ -2556,7 +2553,6 @@ render json: { foo: 'bar' }, status: 404 render plain: 'foo/bar', status: 304 redirect_to root_url, status: 301 head 200 -get '/foobar', to: redirect('/foobar/baz', status: 301) ---- === Configurable attributes diff --git a/lib/rubocop/rails/version.rb b/lib/rubocop/rails/version.rb index 9434e22808..6a0de28506 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.17.0' + STRING = '2.17.1' def self.document_version STRING.match('\d+\.\d+').to_s diff --git a/relnotes/v2.17.1.md b/relnotes/v2.17.1.md new file mode 100644 index 0000000000..67bc21d043 --- /dev/null +++ b/relnotes/v2.17.1.md @@ -0,0 +1,7 @@ +### Bug fixes + +* [#829](https://github.com/rubocop/rubocop-rails/pull/829): Revert "Extends `Rails/HttpStatus` cop to check `routes.rb`" introduced in 2.17.0. ([@jdufresne][]) +* [#831](https://github.com/rubocop/rubocop-rails/pull/831): Fix a false positive for `Rails/Pluck` when using block argument in `[]`. ([@koic][]) + +[@jdufresne]: https://github.com/jdufresne +[@koic]: https://github.com/koic