tzispa 0.4.11 → 0.4.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/tzispa/controller/base.rb +9 -3
- data/lib/tzispa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10e8927b2000c2316f242eac3dd30516cdc177dc
|
4
|
+
data.tar.gz: 62f875ae215df9b1b409063021289256837ebaf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ecd98c3795c4581974fbe71a5ae219ed5b728f41410a9550a38aedb86354233a72246ed1bc3a88d3877c1f06675877f1b7e543ba45b7af06fad563de1013503
|
7
|
+
data.tar.gz: 8ba5244fc0bd592f2b2acb4418f4511a2481aa1174498ac3a9da9594aea2d68acc0807b529736d3053342f661e1da8c2e423a35a8178dce65e83d7d466912ca2
|
data/CHANGELOG.md
CHANGED
@@ -30,16 +30,22 @@ module Tzispa
|
|
30
30
|
private
|
31
31
|
|
32
32
|
def invoke(callmethod)
|
33
|
+
debug_info = nil
|
33
34
|
status = catch(:halt) {
|
34
35
|
begin
|
35
36
|
send "#{@callmethod}"
|
36
37
|
rescue StandardError, ScriptError => exx
|
37
|
-
|
38
|
+
debug_info = debug_info(exx) if config.developing
|
39
|
+
500
|
38
40
|
end
|
39
41
|
}
|
40
42
|
response.status = status if status.is_a?(Integer)
|
41
|
-
if
|
42
|
-
response.body = error_page(context.domain)
|
43
|
+
if response.client_error?
|
44
|
+
response.body = error_page(context.domain, status: response.status)
|
45
|
+
elsif response.server_error?
|
46
|
+
response.body = debug_info ?
|
47
|
+
debug_info :
|
48
|
+
error_page(context.domain, status: response.status)
|
43
49
|
end
|
44
50
|
end
|
45
51
|
|
data/lib/tzispa/version.rb
CHANGED