wolf_core 1.0.60 → 1.0.61

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14d70c706c658014c77b0edfef7df110c0c5d99d719ab312f4b787c22f4f07da
4
- data.tar.gz: f5c19c72c02f24f87f955c9dbeccc23e7413256ae94eb3039babaf1dbaaabc5e
3
+ metadata.gz: f6245928494b6953038d88b318fef4d571d1291999df4e2a5fc3fce0c303c8a7
4
+ data.tar.gz: 65760e9569412a7e4273c308101c5abd204700f2c93c7ea407c9d98db9f35a94
5
5
  SHA512:
6
- metadata.gz: c46720213697ec635ee8483cdfcf3f597792b24b74d6dc4638ee24e272ee91dfe69063335484c9f060f6256a99c81725a7f71c3bb8640ad2d5e91af2f0fc65b5
7
- data.tar.gz: 53fa0341be43a726de34f7d0f777c027d64e74c6ae17873e47411ad230ed2b8527f9d7ff609b9d6cbaf497345fc485bcec0e3aab50de87cc2a74ca000091228e
6
+ metadata.gz: 5927edc2ba2085c0b8085085cb686112e4b4c8bfed33957e1623848ea34ae17570f8dd640007674a77bce5e5e35a8a1e0d965bc0adf17336aff8785508ddfe26
7
+ data.tar.gz: dceea2944439d08ee69e45537922a02fcff1dada5a841d484c3d342b5d2a346bf568d11189d21ae682d0bcee3b601cbe755da317e073581148bef6cf98a3d9cd
@@ -5,29 +5,37 @@ module WolfCore
5
5
  TIMEOUT = 900
6
6
 
7
7
  def http_get(url:, headers: {}, query: nil, timeout: nil)
8
+ puts "timeout before is #{timeout}"
8
9
  timeout ||= TIMEOUT
9
- HTTParty.get(url, headers: headers, query: query, timeout: timeout, open_timeout: timeout, read_timeout: timeout)
10
+ puts "timeout after is #{timeout}"
11
+ HTTParty.get(url, headers: headers, query: query, timeout: timeout, open_timeout: timeout, read_timeout: timeout, write_timeout: timeout)
10
12
  end
11
13
 
12
14
  def http_post(url:, headers: {}, query: nil, body: nil, timeout: nil)
13
15
  headers['Content-Type'] ||= 'application/json'
14
16
  body = body&.to_json if headers['Content-Type'] == 'application/json'
15
- timeout ||= TIMEOUT
16
- HTTParty.post(url, headers: headers, query: query, body: body, timeout: timeout, open_timeout: timeout, read_timeout: timeout)
17
+ puts "timeout before is #{timeout}"
18
+ timeout ||= TIMEOUT
19
+ puts "timeout after is #{timeout}"
20
+ HTTParty.post(url, headers: headers, query: query, body: body, timeout: timeout, open_timeout: timeout, read_timeout: timeout, write_timeout: timeout)
17
21
  end
18
22
 
19
23
  def http_put(url:, headers: {}, query: nil, body: nil, timeout: nil)
20
24
  headers['Content-Type'] ||= 'application/json'
21
25
  body = body&.to_json if headers['Content-Type'] == 'application/json'
22
- timeout ||= TIMEOUT
23
- HTTParty.put(url, headers: headers, query: query, body: body, timeout: timeout, open_timeout: timeout, read_timeout: timeout)
26
+ puts "timeout before is #{timeout}"
27
+ timeout ||= TIMEOUT
28
+ puts "timeout after is #{timeout}"
29
+ HTTParty.put(url, headers: headers, query: query, body: body, timeout: timeout, open_timeout: timeout, read_timeout: timeout, write_timeout: timeout)
24
30
  end
25
31
 
26
32
  def http_patch(url:, headers: {}, query: nil, body: nil, timeout: nil)
27
33
  headers['Content-Type'] ||= 'application/json'
28
34
  body = body&.to_json if headers['Content-Type'] == 'application/json'
29
- timeout ||= TIMEOUT
30
- HTTParty.patch(url, headers: headers, query: query, body: body, timeout: timeout, open_timeout: timeout, read_timeout: timeout)
35
+ puts "timeout before is #{timeout}"
36
+ timeout ||= TIMEOUT
37
+ puts "timeout after is #{timeout}"
38
+ HTTParty.patch(url, headers: headers, query: query, body: body, timeout: timeout, open_timeout: timeout, read_timeout: timeout, write_timeout: timeout)
31
39
  end
32
40
  end
33
41
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.0.60"
4
+ VERSION = "1.0.61"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.60
4
+ version: 1.0.61
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo