wolf_core 1.0.60 → 1.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/wolf_core/infrastructure/http_data_source.rb +4 -8
- 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: f6bd213f59fcb6943c53b5f993a7b33ea688d708790fe416beab69e7c358b7d2
|
4
|
+
data.tar.gz: dc2cabf5e0531065f425bb2f57a148f7466a2ccb6971908eff941a0edd0cb7d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 947c404ac278b3cfd3d8594298459471e03cc71fe252cad3f33810995cd5f6185800f1d69d6f84fa842a2c4dd03701f3a2773b90878b87ac77d1c83640369a5d
|
7
|
+
data.tar.gz: ae509caed9883708fc5c697075489aca827393684e34b94ca7b9834255d1f297a62b6331ed3c9017b4f2be5f376dfd1f18651ef8966cbc6aef22b1491c90d269
|
@@ -5,29 +5,25 @@ module WolfCore
|
|
5
5
|
TIMEOUT = 900
|
6
6
|
|
7
7
|
def http_get(url:, headers: {}, query: nil, timeout: nil)
|
8
|
-
timeout
|
9
|
-
HTTParty.get(url, headers: headers, query: query, timeout: timeout, open_timeout: timeout, read_timeout: timeout)
|
8
|
+
HTTParty.get(url, headers: headers, query: query, timeout: timeout, open_timeout: timeout, read_timeout: timeout, write_timeout: timeout)
|
10
9
|
end
|
11
10
|
|
12
11
|
def http_post(url:, headers: {}, query: nil, body: nil, timeout: nil)
|
13
12
|
headers['Content-Type'] ||= 'application/json'
|
14
13
|
body = body&.to_json if headers['Content-Type'] == 'application/json'
|
15
|
-
|
16
|
-
HTTParty.post(url, headers: headers, query: query, body: body, timeout: timeout, open_timeout: timeout, read_timeout: timeout)
|
14
|
+
HTTParty.post(url, headers: headers, query: query, body: body, timeout: timeout, open_timeout: timeout, read_timeout: timeout, write_timeout: timeout)
|
17
15
|
end
|
18
16
|
|
19
17
|
def http_put(url:, headers: {}, query: nil, body: nil, timeout: nil)
|
20
18
|
headers['Content-Type'] ||= 'application/json'
|
21
19
|
body = body&.to_json if headers['Content-Type'] == 'application/json'
|
22
|
-
|
23
|
-
HTTParty.put(url, headers: headers, query: query, body: body, timeout: timeout, open_timeout: timeout, read_timeout: timeout)
|
20
|
+
HTTParty.put(url, headers: headers, query: query, body: body, timeout: timeout, open_timeout: timeout, read_timeout: timeout, write_timeout: timeout)
|
24
21
|
end
|
25
22
|
|
26
23
|
def http_patch(url:, headers: {}, query: nil, body: nil, timeout: nil)
|
27
24
|
headers['Content-Type'] ||= 'application/json'
|
28
25
|
body = body&.to_json if headers['Content-Type'] == 'application/json'
|
29
|
-
|
30
|
-
HTTParty.patch(url, headers: headers, query: query, body: body, timeout: timeout, open_timeout: timeout, read_timeout: timeout)
|
26
|
+
HTTParty.patch(url, headers: headers, query: query, body: body, timeout: timeout, open_timeout: timeout, read_timeout: timeout, write_timeout: timeout)
|
31
27
|
end
|
32
28
|
end
|
33
29
|
end
|
data/lib/wolf_core/version.rb
CHANGED