rambulance 3.2.0 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +6 -2
- data/CHANGELOG.md +25 -5
- data/Gemfile +1 -0
- data/README.md +9 -0
- data/gemfiles/rails_42.gemfile +1 -1
- data/gemfiles/rails_50.gemfile +1 -1
- data/gemfiles/rails_51.gemfile +1 -0
- data/gemfiles/rails_52.gemfile +1 -0
- data/gemfiles/rails_60.gemfile +1 -0
- data/gemfiles/rails_61.gemfile +1 -0
- data/gemfiles/rails_70.gemfile +1 -0
- data/gemfiles/rails_71.gemfile +1 -0
- data/gemfiles/rails_72.gemfile +10 -0
- data/gemfiles/rails_edge.gemfile +1 -1
- data/lib/rambulance/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9370918184eb1f9f6429fa18b2ef6f08d845050f98271184abd941679f8cb4cf
|
4
|
+
data.tar.gz: 9e0270f66522474c1b2ef50a0685f7133cb9c2985367b836cc4070b9bb92ada0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd7673e1a6197f39ef3e70786c7334e1933eb02ce6b44095ab8ff0c0dc30d8d04bbef6ec4c351fae7c7ad0e30aef05caf538029210098d41776865521183d97f
|
7
|
+
data.tar.gz: 8e8bde197754afddfbda3049f0863fb743c6f99df536c5bba3d803543aed957f89092323a44a8bf6ef185d4d50edc195ba9091e3d938780f8de190d2d0a1a8c3
|
data/Appraisals
CHANGED
@@ -49,12 +49,16 @@ appraise "rails_71" do
|
|
49
49
|
gem "railties", "~> 7.1.0"
|
50
50
|
end
|
51
51
|
|
52
|
+
appraise "rails_72" do
|
53
|
+
gem "activesupport", "~> 7.2.0"
|
54
|
+
gem "actionpack", "~> 7.2.0"
|
55
|
+
gem "railties", "~> 7.2.0"
|
56
|
+
end
|
57
|
+
|
52
58
|
appraise "rails_edge" do
|
53
59
|
git 'https://github.com/rails/rails.git' do
|
54
60
|
gem "activesupport", require: 'active_support'
|
55
61
|
gem "actionpack", require: 'action_pack'
|
56
62
|
gem "railties"
|
57
63
|
end
|
58
|
-
|
59
|
-
gem 'minitest', '~> 5.3.4'
|
60
64
|
end
|
data/CHANGELOG.md
CHANGED
@@ -1,12 +1,32 @@
|
|
1
|
-
## v3.
|
1
|
+
## v3.3.0
|
2
2
|
|
3
|
-
_<sup>
|
3
|
+
_<sup>Unreleased</sup>_
|
4
4
|
|
5
5
|
#### New Features
|
6
6
|
|
7
|
-
-
|
8
|
-
|
9
|
-
|
7
|
+
- Add support for Rails 7.1 ([<tt>e6d42b51</tt>](https://github.com/yuki24/rambulance/commit/e6d42b514d0bdbc2ea5b1603f85ecc9fa24b819a))
|
8
|
+
|
9
|
+
## [v3.2.0](https://github.com/yuki24/rambulance/tree/v3.2.0)
|
10
|
+
|
11
|
+
_<sup>released at 2024-08-04 03:04:26 UTC</sup>_
|
12
|
+
|
13
|
+
This release includes a **breaking change**. Please read the details below carefully.
|
14
|
+
|
15
|
+
#### New Features
|
16
|
+
|
17
|
+
- Fixed compatibility with Rack (see [rack/rack#2137](https://github.com/rack/rack/pull/2137)) ([#77](https://github.com/yuki24/rambulance/issues/77) [@tmaier](https://github.com/tmaier), [#78](https://github.com/yuki24/rambulance/pull/78))
|
18
|
+
|
19
|
+
#### Breaking Changes
|
20
|
+
|
21
|
+
The Rack compatibility fix is related to Rack becoming more compliant with the IANA HTTP Status Code Registry.
|
22
|
+
As a result:
|
23
|
+
|
24
|
+
- `unprocessable_entity` has been renamed to `unprocessable_content`.
|
25
|
+
- Rambulance will redirect any request from `unprocessable_entity` to `unprocessable_content` for backward compatibility.
|
26
|
+
- Users **must** rename the view file from `app/views/errors/unprocessable_entity.html.erb` to `app/views/errors/unprocessable_content.html.erb`.
|
27
|
+
- Users **should** update the hash values in their configurations: Change `unprocessable_entity` to `unprocessable_content` in `config.rescue_responses`/`config.action_dispatch.rescue_responses`
|
28
|
+
|
29
|
+
## [v3.1.0](https://github.com/yuki24/rambulance/tree/v3.1.0)
|
10
30
|
|
11
31
|
_<sup>released at 2024-01-04 10:08:11 UTC</sup>_
|
12
32
|
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -54,6 +54,15 @@ config.rescue_responses = {
|
|
54
54
|
}
|
55
55
|
```
|
56
56
|
|
57
|
+
## Special case `unprocessable_entity`/`unprocessable_content` (HTTP Status 422)
|
58
|
+
|
59
|
+
Rack renamed `unprocessable_entity` to `unprocessable_content`.
|
60
|
+
|
61
|
+
Rambulance supports both, but defaults to `unprocessable_content` with version 3.2.0 and later.
|
62
|
+
`unprocessable_entity` is supported with a redirect to `unprocessable_content`.
|
63
|
+
|
64
|
+
This means the view file is called `app/views/errors/unprocessable_content.html.erb`, not `app/views/errors/unprocessable_entity.html.erb`.
|
65
|
+
|
57
66
|
## Local Development
|
58
67
|
|
59
68
|
### Open `localhost:3000/rambulance/***` in Your Browser
|
data/gemfiles/rails_42.gemfile
CHANGED
data/gemfiles/rails_50.gemfile
CHANGED
data/gemfiles/rails_51.gemfile
CHANGED
data/gemfiles/rails_52.gemfile
CHANGED
data/gemfiles/rails_60.gemfile
CHANGED
data/gemfiles/rails_61.gemfile
CHANGED
data/gemfiles/rails_70.gemfile
CHANGED
data/gemfiles/rails_71.gemfile
CHANGED
data/gemfiles/rails_edge.gemfile
CHANGED
data/lib/rambulance/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rambulance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuki Nishijima
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-08-
|
12
|
+
date: 2024-08-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -164,6 +164,7 @@ files:
|
|
164
164
|
- gemfiles/rails_61.gemfile
|
165
165
|
- gemfiles/rails_70.gemfile
|
166
166
|
- gemfiles/rails_71.gemfile
|
167
|
+
- gemfiles/rails_72.gemfile
|
167
168
|
- gemfiles/rails_edge.gemfile
|
168
169
|
- lib/generators/rambulance/exceptions_app_generator.rb
|
169
170
|
- lib/generators/rambulance/install_generator.rb
|