wolf_core 0.1.23 → 0.1.24
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_operations.rb +18 -3
- data/lib/wolf_core/version.rb +1 -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: '08ebd73cf594c93dc2d2daeea934fa783f1be0747425b4e8375046573a5ab330'
|
4
|
+
data.tar.gz: '082e2fc8f5fcab7767f6b84a45f5943af92d2e990e278bedc01d1a7f78bffe8f'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0083a27a68852391cf08ee90403e0bc65ad8df93f2e7ab8a0d1e1c7bb0be5d0e6020e741172341f13318a123ee55ad145c38267aa268a7e12e11b5060d0cd3ad'
|
7
|
+
data.tar.gz: 1fd890919d474e3401fcb8c33553e3bcde6e8a59d372dd7a37eb4a93262ce88cd72e601a6a36d5205238cc1acd073e4a0d22e3750adc86b024d380a5642cb4ea
|
@@ -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.24
|
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
|