apimatic_core 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apimatic-core/types/error_case.rb +7 -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: f03128e2b836d53e911610d9765b660007e9275c08022c55850cc5449813b817
|
4
|
+
data.tar.gz: 9ac3f6bd7f83457e2b81c6d413296705b09f751da199f974df8b752fac374b6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0fdc305da1030ad466f0790e6c5ed52061f7a56ab197841542c7f0d219885990ff6c70dd429ab3a07b6ff32b7cdebfa03687d4988848ff07ca8dc824ab95311
|
7
|
+
data.tar.gz: 2a21f5d179433a0f23bf45cdb271f249caab25ce2fe7b9a7066fc84681207d97dc59eea206d2575f399fea8686aca668de6ed8e69632a1efadddf83dbae1eba9
|
@@ -68,7 +68,13 @@ module CoreLibrary
|
|
68
68
|
error_message_template)
|
69
69
|
|
70
70
|
# Handling response body placeholder
|
71
|
-
|
71
|
+
begin
|
72
|
+
response_payload = ApiHelper.json_deserialize(response.raw_body, true) unless response.raw_body.nil?
|
73
|
+
rescue TypeError
|
74
|
+
# This statement execution means the received response body is not a JSON but a simple string
|
75
|
+
response_payload = response.raw_body
|
76
|
+
end
|
77
|
+
|
72
78
|
error_message_template = ApiHelper.resolve_template_placeholders_using_json_pointer(body_placeholders,
|
73
79
|
response_payload,
|
74
80
|
error_message_template)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apimatic_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- APIMatic Ltd.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apimatic_core_interfaces
|