wolf_core 0.1.23 → 0.1.25
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 020f182d4d54b69854037ae99162a2f3f8757615a3c6a1f3f4c945c0230603a2
|
4
|
+
data.tar.gz: ce377c4e58e9022f71e25cef096fa724d0f1b162e278759f62fde564061d5f77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 867f18579c14e945d1d7ddbe329c1921f575ce785df13d27a36749be041f1da630bfe4aa5409b576db0043d2d0f26afce51eb60ff8ebb2a9419f62a18dca96a4
|
7
|
+
data.tar.gz: 94254b4752ec307c3468d0a7392553299eef2289733dcbe136d1096679d5835770c5a56febf68152d979bb0fef8dc603873e2792e14d05c55b8f9c28c7469008
|
@@ -4,7 +4,12 @@ module WolfCore
|
|
4
4
|
include WolfCore::AsyncUtils
|
5
5
|
|
6
6
|
def async_http_get(**args)
|
7
|
-
|
7
|
+
puts "starting async_http_get"
|
8
|
+
run_async do
|
9
|
+
response = http_get(**args)
|
10
|
+
puts "async_http_get response is"
|
11
|
+
pp parse_http_response(response).to_h
|
12
|
+
end
|
8
13
|
end
|
9
14
|
|
10
15
|
def http_get(url:, headers: {}, query: nil)
|
@@ -12,7 +17,12 @@ module WolfCore
|
|
12
17
|
end
|
13
18
|
|
14
19
|
def async_http_post(**args)
|
15
|
-
|
20
|
+
puts "starting async_http_post"
|
21
|
+
run_async do
|
22
|
+
response = http_post(**args)
|
23
|
+
puts "async_http_post response is"
|
24
|
+
pp parse_http_response(response).to_h
|
25
|
+
end
|
16
26
|
end
|
17
27
|
|
18
28
|
def http_post(url:, headers: {}, body: nil, query: nil)
|
@@ -20,7 +30,12 @@ module WolfCore
|
|
20
30
|
end
|
21
31
|
|
22
32
|
def async_http_put(**args)
|
23
|
-
|
33
|
+
puts "starting async_http_put"
|
34
|
+
run_async do
|
35
|
+
response = http_put(**args)
|
36
|
+
puts "async_http_put response is"
|
37
|
+
pp parse_http_response(response).to_h
|
38
|
+
end
|
24
39
|
end
|
25
40
|
|
26
41
|
def http_put(url:, headers: {}, body: nil, query: nil)
|
data/lib/wolf_core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wolf_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Roncallo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|