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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe90eccaa27081467b713989671f3553fbd14d53
4
- data.tar.gz: 606284e2168e643b95a987c26ed3a41dbd9262e9
3
+ metadata.gz: 21d6475d68a1ae5230ec9fa0fb62cbe716f4d669
4
+ data.tar.gz: cb7a98e8df9a00a84f937a4398276eff3bd1f0d2
5
5
  SHA512:
6
- metadata.gz: 6763d18c950cb1e532490c8ba10206c8e2ae4f0fdadab865492d25f2a25410fa0dbfb8127599fd3dfe14ddf7ae5acb2fe4a96376c6fd776b627f5bfd36f894b8
7
- data.tar.gz: 19fae2c4feb323ab3bbccae2f1f86df9d32c89ea07ceab1c6a857767ef52dbda129374af8b61116a83e564f202da0d32206e2ca99269f0000682160adf91438f
6
+ metadata.gz: 3c27bb9f0fb24a6ae159d1375e68872cd467383fb10b7685f26ab358cee87ff6f7afbf24ef3cdf49907889bb9223f1dbf4bd443ad7b6f96d403050254500d122
7
+ data.tar.gz: ce60cd74a977b58218363beb1d2555f125fb39e9e587dab4d2c4d1789f2f306ccd07c445f4adfe2ac1b07c70b8679f00d04d42d9102bc93b16de194d647fa040
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Version 0.0.61
2
+ * Enhancements
3
+ * Retrieving oauth response try 3 times (to bypass intermittent errors)
4
+
1
5
  Version 0.0.60
2
6
  * Enhancements
3
7
  * Allow for factory_bot with automatic setting of missing setter methods
@@ -41,10 +41,17 @@ module Soaspec
41
41
  client_secret: client_secret
42
42
  }
43
43
  end
44
- response = RestClient.post(token_url, payload, cache_control: 'no_cache', verify_ssl: false)
45
- Soaspec::SpecLogger.add_to 'request_params: ' + payload.to_s
46
- Soaspec::SpecLogger.add_to('response_headers: ' + response.headers.to_s)
47
- Soaspec::SpecLogger.add_to('response_body: ' + response.to_s)
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
 
@@ -1,3 +1,3 @@
1
1
  module Soaspec
2
- VERSION = '0.0.60'.freeze
2
+ VERSION = '0.0.61'.freeze
3
3
  end
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.60
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-21 00:00:00.000000000 Z
11
+ date: 2018-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler