wolf_core 1.0.61 → 1.0.62

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