ftc_events_client 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/config.json +1 -1
- data/lib/ftc_events_client/api_client.rb +12 -2
- data/lib/ftc_events_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28333a4aba7a589b38736a14268cd1d6298103e705748f133bbba2ce7152f50f
|
4
|
+
data.tar.gz: 65f1afddb4059de68883a1b388e2f8f7609c76b34f33b439745dfe35f48c757e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48e5a0defbd0d43e7537ad50fb1ed8838a476528db99431d7b0e9c71f3a70a6f7c5df829b8eaeed03dec2744f99730704ccad8c0d08030b4f12465661d2bb8f5
|
7
|
+
data.tar.gz: 02bb01d7ebe3e238e9d431d4abeeaa579749e5f7dd9b7567779665fecc7e4c1a424df453d179b0af0089a65ad21960bb5ba1cfafb5a9114697b8afde3f87bdd6
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ FTC Events API is a service to return relevant information about the _FIRST_ Tec
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: v2.0
|
10
|
-
- Package version: 0.2.
|
10
|
+
- Package version: 0.2.2
|
11
11
|
- Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build ftc_events_client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./ftc_events_client-0.2.
|
26
|
+
gem install ./ftc_events_client-0.2.2.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./ftc_events_client-0.2.
|
28
|
+
(for development, run `gem install --dev ./ftc_events_client-0.2.2.gem` to install the development dependencies)
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'ftc_events_client', '~> 0.2.
|
34
|
+
gem 'ftc_events_client', '~> 0.2.2'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
data/config.json
CHANGED
@@ -46,8 +46,18 @@ module FtcEventsClient
|
|
46
46
|
# @return [Array<(Object, Integer, Hash)>] an array of 3 elements:
|
47
47
|
# the data deserialized from response body (could be nil), response status code and response headers.
|
48
48
|
def call_api(http_method, path, opts = {})
|
49
|
-
|
50
|
-
|
49
|
+
do_retry = true
|
50
|
+
while do_retry
|
51
|
+
request = build_request(http_method, path, opts)
|
52
|
+
response = request.run
|
53
|
+
do_retry = response.code == 429
|
54
|
+
if do_retry
|
55
|
+
if @config.debugging
|
56
|
+
@config.logger.debug "RETRYING: HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
|
57
|
+
end
|
58
|
+
sleep response.headers['Retry-After'].to_i
|
59
|
+
end
|
60
|
+
end
|
51
61
|
|
52
62
|
if @config.debugging
|
53
63
|
@config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
|