diff --git a/README.md b/README.md index 8a27087..95446c4 100644 --- a/README.md +++ b/README.md @@ -213,15 +213,16 @@ Betterment/HardcodedID: ### Betterment/RedirectStatus -Rails `redirect_to` defaults to a `302 Found` redirect, but when redirecting a POST/PUT/PATCH/DELETE -to a GET location, the correct response code is `303 See Other`: +Rails `redirect_to` defaults to a `302 Found`, but when redirecting a POST/PUT/PATCH/DELETE +to a GET location, the correct response code is `303 See Other`. > Many web browsers implemented this code in a manner that violated this standard, changing the request > type of the new request to GET, regardless of the type employed in the original request (e.g. POST). > For this reason, HTTP/1.1 (RFC 2616) added the new status codes 303 and 307 to disambiguate between > the two behaviours, with 303 mandating the change of request type to GET, and 307 preserving the > request type as originally sent. -> -- https://en.wikipedia.org/wiki/HTTP_302 +> +> — https://en.wikipedia.org/wiki/HTTP_302 This cop requires you to explictly provide an HTTP status code when redirecting from the create, update, and destory actions. When autocorrecting, this will automatically add `status: :see_other`. diff --git a/betterlint.gemspec b/betterlint.gemspec index 8c2d639..49b890f 100644 --- a/betterlint.gemspec +++ b/betterlint.gemspec @@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) Gem::Specification.new do |s| s.name = "betterlint" - s.version = "1.9.0" + s.version = "1.10.0" s.authors = ["Development"] s.email = ["development@betterment.com"] s.summary = "Betterment rubocop configuration"