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 +4 -4
- data/lib/soar_http_client.rb +6 -0
- data/lib/soar_http_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecaff5bd696ef50412b8d033ea55c302192a3052
|
4
|
+
data.tar.gz: 81bee1a156370915793549ade8b64fd3c0c09733
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df8a440924214e7cbfd03d47eaa368c6576d62634c10bf95be1515f4b0c217532c06d5e3f5f0960baffac9c0d0ad34c5bf08989b302574d94998a4f8d03ff74e
|
7
|
+
data.tar.gz: d349631b0c098b5f254be715de67616fc90f416d1869e6d10e7851a0c53ef79345b59e6a083dc2ca24132298d707fa82c2618d0cd5fc04f8fd96d6736f734f15
|
data/lib/soar_http_client.rb
CHANGED
@@ -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|
|
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.
|
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-
|
11
|
+
date: 2017-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|