vigiles 0.1.0.pre.beta6 → 0.1.0.pre.beta7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vigiles/archive/response.rb +7 -4
- data/lib/vigiles/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ce9b4330b1d4ad0334d37f23d154149d01580c47f3f3c32d012f4b094244fac
|
4
|
+
data.tar.gz: 11aa9a2571cf62454937a3e61b01b7de70bb702255b952d46f533d8831572ccd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07be4f5abcbfae46edd0c480a6b3766924979990c065b7833c41c50ff6ff6401ab8b0798a643d5da339cb3a71e885be62af6034d774a2d400befb6cdf9db3e61
|
7
|
+
data.tar.gz: dfe33dbe27d11e5ac0604538c803158315e5fcdd61726ef0107734dc61aa53eff04f7e6e769c2dae6d1fa5d534682d0d8895eec90ef1cd5d8e8d926157474a56
|
@@ -16,14 +16,17 @@ module Vigiles
|
|
16
16
|
when Array
|
17
17
|
return { body: :empty_no_content } if body.empty?
|
18
18
|
|
19
|
-
{
|
19
|
+
{ __false_body: :not_empty_handle_later }
|
20
20
|
when Rack::BodyProxy
|
21
21
|
body_proxy = body
|
22
22
|
body_proxy = body_proxy.instance_variable_get(:@body) until body_proxy.is_a?(Array)
|
23
|
-
|
23
|
+
begin
|
24
|
+
JSON.parse(body_proxy[0])
|
25
|
+
rescue StandardError
|
26
|
+
{ __false_body: body_proxy[0] }
|
27
|
+
end
|
24
28
|
else
|
25
|
-
|
26
|
-
{ body: :unknown_response_payload_type }
|
29
|
+
{ __false_body: :unknown_response_payload_type }
|
27
30
|
end
|
28
31
|
end
|
29
32
|
|
data/lib/vigiles/version.rb
CHANGED