wolf_core 0.1.22 → 0.1.24

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: 0f6bdbeba6d322c35f29ee01853adee5b179569d399b57b0a0754c4f579c8c23
4
- data.tar.gz: 739e754a7bacff197204f917cf10411119a392059e3c07512cd71f5a7af7a96d
3
+ metadata.gz: '08ebd73cf594c93dc2d2daeea934fa783f1be0747425b4e8375046573a5ab330'
4
+ data.tar.gz: '082e2fc8f5fcab7767f6b84a45f5943af92d2e990e278bedc01d1a7f78bffe8f'
5
5
  SHA512:
6
- metadata.gz: 5955672c359bb1bd1ccd924011d299a8eefde3b75bd1e9a0441fa8d32ee401176d59bbfc4c70557246c37140facbf36fe793932dcbb26ffffea4713d3e6e3109
7
- data.tar.gz: 4ead3918813ba28b737a03a829f100d4b945b96c05f4d9f158543e926f85ed96d4052a2488b461ae1f8a971f194f1912edde4ca71175394c4a691d29ce240f63
6
+ metadata.gz: '0083a27a68852391cf08ee90403e0bc65ad8df93f2e7ab8a0d1e1c7bb0be5d0e6020e741172341f13318a123ee55ad145c38267aa268a7e12e11b5060d0cd3ad'
7
+ data.tar.gz: 1fd890919d474e3401fcb8c33553e3bcde6e8a59d372dd7a37eb4a93262ce88cd72e601a6a36d5205238cc1acd073e4a0d22e3750adc86b024d380a5642cb4ea
@@ -23,6 +23,7 @@ module WolfCore
23
23
  end
24
24
 
25
25
  def map_pricing_id_to_provider_type(pricing_id)
26
+ pricing_id = pricing_id.to_s
26
27
  provider_type = PROVIDER_TYPE_MAPPING.invert[pricing_id]
27
28
  provider_type || pricing_id
28
29
  end
@@ -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.22"
4
+ VERSION = "0.1.24"
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.22
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-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