soar_http_client 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: 3a203a7d3dfdea3f077875ec1834712c45aefb53
4
- data.tar.gz: 561410ad8ca4afd4021f73e30dca53aed49519e9
3
+ metadata.gz: ecaff5bd696ef50412b8d033ea55c302192a3052
4
+ data.tar.gz: 81bee1a156370915793549ade8b64fd3c0c09733
5
5
  SHA512:
6
- metadata.gz: 89e8d8a159ea3dbcd6a22ad07c860f92604bf102ec13d84124bb7e9de94ed23173c7a795ad09c8f5a60cff9a1d60ca9f201ee99ec26b79f09002f4778f0e48ca
7
- data.tar.gz: 4ff4805c53a16a1ab55ad8be715054a4dd6c7aaa7ebec3d5ade3e059c61ab0e95706e6e62eef217a6e0c7cbb93a77d28a0e228a51329528d574c89086572542b
6
+ metadata.gz: df8a440924214e7cbfd03d47eaa368c6576d62634c10bf95be1515f4b0c217532c06d5e3f5f0960baffac9c0d0ad34c5bf08989b302574d94998a4f8d03ff74e
7
+ data.tar.gz: d349631b0c098b5f254be715de67616fc90f416d1869e6d10e7851a0c53ef79345b59e6a083dc2ca24132298d707fa82c2618d0cd5fc04f8fd96d6736f734f15
@@ -50,6 +50,12 @@ class SoarHttpClient
50
50
  def do_request(verb: ,path:, params: nil, body: nil, token: nil, headers: nil, flow_identifier: nil)
51
51
  @semaphore.synchronize {
52
52
  begin
53
+ if params.nil?
54
+ params = { 'flow_identifier' => flow_identifier } if flow_identifier
55
+ else
56
+ params = params.merge({ 'flow_identifier' => flow_identifier } ) if flow_identifier
57
+ end
58
+
53
59
  tries ||= 0
54
60
 
55
61
  result = @connection.send(verb) do |req|
@@ -1,3 +1,3 @@
1
1
  class SoarHttpClient
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_http_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiaan van Deventer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-13 00:00:00.000000000 Z
11
+ date: 2017-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday