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: 7c2a6978b0c9f279a908e089a93a58ec798fc4b4c5c0200030cbe46ace25ff12
4
- data.tar.gz: 4a0df6b4c6cca1fbbd86e799d6bfd6e149e6f29d133c8d65df82cd75feb91d98
3
+ metadata.gz: 020f182d4d54b69854037ae99162a2f3f8757615a3c6a1f3f4c945c0230603a2
4
+ data.tar.gz: ce377c4e58e9022f71e25cef096fa724d0f1b162e278759f62fde564061d5f77
5
5
  SHA512:
6
- metadata.gz: d11a37001034d5d55389406c7a19f88d348871b4b7d2b7a85bf844ddad24da13084c83186b1d58f90c62d87b85b664888d102a7b1684be34c1cb6195c8401c79
7
- data.tar.gz: 5b16ad2c5e0ece947a214a136ad7fefd89f05c1eb721a4f6ee5e1b692926d395d47e7a7d7a7525a8dd58581f0b0d90de6c866c400a2f1b1b80331aea0b98aac9
6
+ metadata.gz: 867f18579c14e945d1d7ddbe329c1921f575ce785df13d27a36749be041f1da630bfe4aa5409b576db0043d2d0f26afce51eb60ff8ebb2a9419f62a18dca96a4
7
+ data.tar.gz: 94254b4752ec307c3468d0a7392553299eef2289733dcbe136d1096679d5835770c5a56febf68152d979bb0fef8dc603873e2792e14d05c55b8f9c28c7469008
@@ -23,6 +23,7 @@ module WolfCore
23
23
  end
24
24
 
25
25
  def map_pricing_id_to_provider_type(pricing_id)
26
+ return if pricing_id.blank?
26
27
  pricing_id = pricing_id.to_s
27
28
  provider_type = PROVIDER_TYPE_MAPPING.invert[pricing_id]
28
29
  provider_type || pricing_id
@@ -4,7 +4,12 @@ module WolfCore
4
4
  include WolfCore::AsyncUtils
5
5
 
6
6
  def async_http_get(**args)
7
- run_async { http_get(**args) }
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
- run_async { http_post(**args) }
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
- run_async { http_put(**args) }
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "0.1.23"
4
+ VERSION = "0.1.25"
5
5
  end
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.23
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-17 00:00:00.000000000 Z
11
+ date: 2024-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty