Skip to content

Commit

Permalink
Release v3.1.0
Browse files Browse the repository at this point in the history
Closes #238
  • Loading branch information
carlosantoniodasilva committed Feb 3, 2023
1 parent c7b7dad commit 7f85ccc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Unreleased


## 3.1.0

* Add config `responders.redirect_status` to allow overriding the redirect code/status used in redirects. The default is `302 Found`, which matches Rails, but it allows to change responders to redirect with `303 See Other` for example, to make it more compatible with how Hotwire/Turbo expects redirects to work.
* Add config `responders.error_status` to allow overriding the status code used to respond to `HTML` or `JS` requests that have errors on the resource. The default is `200 OK`, but it allows to change the response to be `422 Unprocessable Entity` in such cases for example, which makes it more consistent with other statuses more commonly used in APIs (like JSON/XML), and works by default with Turbo/Hotwire which expects a 422 on form error HTML responses. Note that changing this may break your application if you're relying on the previous 2xx status to handle error cases.
* Add support for Ruby 3.0, 3.1, and 3.2, drop support for Ruby < 2.5.
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
responders (3.0.1)
responders (3.1.0)
actionpack (>= 5.2)
railties (>= 5.2)

Expand Down Expand Up @@ -110,4 +110,4 @@ DEPENDENCIES
rubocop-performance

BUNDLED WITH
2.4.3
2.4.5
2 changes: 1 addition & 1 deletion lib/responders/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Responders
VERSION = "3.0.1"
VERSION = "3.1.0"
end

0 comments on commit 7f85ccc

Please sign in to comment.