soaspec 0.0.60 → 0.0.61
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/lib/soaspec/exchange_handlers/rest_handler.rb +11 -4
- data/lib/soaspec/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: 21d6475d68a1ae5230ec9fa0fb62cbe716f4d669
|
4
|
+
data.tar.gz: cb7a98e8df9a00a84f937a4398276eff3bd1f0d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c27bb9f0fb24a6ae159d1375e68872cd467383fb10b7685f26ab358cee87ff6f7afbf24ef3cdf49907889bb9223f1dbf4bd443ad7b6f96d403050254500d122
|
7
|
+
data.tar.gz: ce60cd74a977b58218363beb1d2555f125fb39e9e587dab4d2c4d1789f2f306ccd07c445f4adfe2ac1b07c70b8679f00d04d42d9102bc93b16de194d647fa040
|
data/ChangeLog
CHANGED
@@ -41,10 +41,17 @@ module Soaspec
|
|
41
41
|
client_secret: client_secret
|
42
42
|
}
|
43
43
|
end
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
44
|
+
retry_count = 0
|
45
|
+
begin
|
46
|
+
Soaspec::SpecLogger.add_to 'request_params: ' + payload.to_s
|
47
|
+
response = RestClient.post(token_url, payload, cache_control: 'no_cache', verify_ssl: false)
|
48
|
+
rescue RestClient::Exception => e
|
49
|
+
retry_count += 1
|
50
|
+
retry if retry_count < 3
|
51
|
+
raise e
|
52
|
+
end
|
53
|
+
Soaspec::SpecLogger.add_to("response_headers: #{response.headers}")
|
54
|
+
Soaspec::SpecLogger.add_to("response_body: #{response.body}")
|
48
55
|
JSON.parse(response)
|
49
56
|
end
|
50
57
|
|
data/lib/soaspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soaspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.61
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SamuelGarrattIQA
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|