From 7f85ccc091f085cfc21b76a81fbb3aea8a6f29f0 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Fri, 3 Feb 2023 13:34:04 -0300 Subject: [PATCH] Release v3.1.0 Closes #238 --- CHANGELOG.md | 3 +++ Gemfile.lock | 4 ++-- lib/responders/version.rb | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00111b7..7f9c4e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/Gemfile.lock b/Gemfile.lock index 6d2075b..de17fa7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - responders (3.0.1) + responders (3.1.0) actionpack (>= 5.2) railties (>= 5.2) @@ -110,4 +110,4 @@ DEPENDENCIES rubocop-performance BUNDLED WITH - 2.4.3 + 2.4.5 diff --git a/lib/responders/version.rb b/lib/responders/version.rb index 191e4d2..f951807 100644 --- a/lib/responders/version.rb +++ b/lib/responders/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Responders - VERSION = "3.0.1" + VERSION = "3.1.0" end