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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ad47542ac3fa029cef8be2b99b104eb7995abf67765c8e0582426249f2d5a5a
4
- data.tar.gz: a468738d5ef0ad815be016420198ef939b254997509b25228f5b3779fa51976f
3
+ metadata.gz: 8ce9b4330b1d4ad0334d37f23d154149d01580c47f3f3c32d012f4b094244fac
4
+ data.tar.gz: 11aa9a2571cf62454937a3e61b01b7de70bb702255b952d46f533d8831572ccd
5
5
  SHA512:
6
- metadata.gz: df8d3f3c5361e26b23b6a8cce014c4c55f3b15cc09f754a5ed3c34f15250360e09d6a0964ed23df5b1eb81cb87bec575198f71237fd24e1ce5f3ff201b279dc6
7
- data.tar.gz: fe0759a9e54c564ee235f421dbd8c7d8cfe34378777c1c3737fb29fa152a7f277c4a94808e138ec4fb61c0ef7a619bed8b60a9d14d3059299772a3ef4c2dbcda
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
- { body: :not_empty_handle_later }
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
- JSON.parse(body_proxy[0])
23
+ begin
24
+ JSON.parse(body_proxy[0])
25
+ rescue StandardError
26
+ { __false_body: body_proxy[0] }
27
+ end
24
28
  else
25
- debugger
26
- { body: :unknown_response_payload_type }
29
+ { __false_body: :unknown_response_payload_type }
27
30
  end
28
31
  end
29
32
 
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Vigiles
5
- VERSION = "0.1.0-beta6"
5
+ VERSION = "0.1.0-beta7"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vigiles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.beta6
4
+ version: 0.1.0.pre.beta7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaw Boakye