Skip to content

Commit

Permalink
Cut 2.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Oct 25, 2022
1 parent 196416a commit 7c703f7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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][])
Expand Down
2 changes: 1 addition & 1 deletion docs/antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 0 additions & 4 deletions docs/modules/ROOT/pages/cops_rails.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2527,15 +2527,13 @@ 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
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
Expand All @@ -2548,15 +2546,13 @@ 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
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
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/rails/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions relnotes/v2.17.1.md
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7c703f7

Please sign in to comment.