restful_error 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/restful_error/exceptions_controller.rb +2 -1
- data/lib/restful_error/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66289aa56b55c24720f1b052763927b3e7ca031b112feec6ffc6380d285b9ca9
|
4
|
+
data.tar.gz: 5593bf3449e0350618466ecf24a87a8c2d3bdf0d72c1e280057483ce65eb0103
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9562e8fffa76477f5e77370d92cb40edfb08e0723f73622a2921abc186e978719ad2de6173083a625afe5e18655a0971d16a92cc876ff9dde0edb958c4c7f8a9
|
7
|
+
data.tar.gz: 2d2439bd8f20101c444c233add3c8f3a8b0d17e575abe4a01472f39d6bd6ff3cf95cacc07cfbc663f1688d462c31555846b37e90541fe2f1ebb1a0e081ecdfad
|
@@ -12,8 +12,9 @@ module RestfulError
|
|
12
12
|
@status_code = status.code
|
13
13
|
@reason_phrase = status.reason_phrase
|
14
14
|
@response_message = @exception.try(:response_message) || RestfulError.localized_phrase(@exception.class.name, status) || nil
|
15
|
-
|
16
15
|
render status: status.code, formats: request.format.symbol
|
16
|
+
rescue ActionView::MissingTemplate
|
17
|
+
render status: status.code, formats: :text
|
17
18
|
end
|
18
19
|
end
|
19
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: restful_error
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kuboon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|