wolf_core 1.0.45 → 1.0.46
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wolf_core/infrastructure/http_operations.rb +7 -6
- data/lib/wolf_core/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: 794e2a92f90d3d4ad22f51fed483e17f68643130fd9572320fb066971d0e92e3
|
4
|
+
data.tar.gz: bda1a0b2a6fd8d6dcb677d6361de5779f4b969ac83551ce6c7ea954c95851a85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6069da749b4b0acd71a88da45aeb0096eff177aee4757d4c43faabf2d944f7c2232bf04b75028bcaef3ab1a5ac007faa2c8275101771f33204a3f79fa756389
|
7
|
+
data.tar.gz: 62c2b45417d6764ff3053212f3f2a65c5da5b059222fee78ed1497784c8fcb9ed07923ea050c03f28db46ba66d82e224245b83e672331bc2509d759de46f7e35
|
@@ -110,20 +110,21 @@ module WolfCore
|
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
|
-
def safe_http_patch(url:, headers: {}, query: nil, error_message: nil, title: nil)
|
114
|
-
response = http_patch(url: url, headers: headers, query: query)
|
113
|
+
def safe_http_patch(url:, headers: {}, body: nil, query: nil, error_message: nil, title: nil, error_data: nil)
|
114
|
+
response = http_patch(url: url, headers: headers, body: body, query: query)
|
115
115
|
response = parse_http_response(response)
|
116
116
|
|
117
|
-
|
117
|
+
title ||= "safe_http_patch response is"
|
118
|
+
log_object response, title: title
|
118
119
|
|
119
120
|
error_message ||= "Error on safe_http_patch"
|
120
|
-
validate_http_response(response: response, message: error_message)
|
121
|
+
validate_http_response(response: response, message: error_message, error_data: error_data)
|
121
122
|
|
122
123
|
response
|
123
124
|
end
|
124
125
|
|
125
|
-
def http_patch(url:, headers: {}, query: nil)
|
126
|
-
WolfCore::HttpDataSource.http_patch(url: url, headers: headers, query: query)
|
126
|
+
def http_patch(url:, headers: {}, body: nil, query: nil)
|
127
|
+
WolfCore::HttpDataSource.http_patch(url: url, headers: headers, query: query, body: body)
|
127
128
|
end
|
128
129
|
|
129
130
|
def validate_http_response(response:, message:, error_data: nil)
|
data/lib/wolf_core/version.rb
CHANGED