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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93b307ad4462238a3a92c5e897b046dd52bd8e5d45135fe94da0f037447cb700
4
- data.tar.gz: 44fdaafaa584ac98a0f6672c45dae2dad1a3b19cd7628a270a64be4d65c2f2f7
3
+ metadata.gz: 28333a4aba7a589b38736a14268cd1d6298103e705748f133bbba2ce7152f50f
4
+ data.tar.gz: 65f1afddb4059de68883a1b388e2f8f7609c76b34f33b439745dfe35f48c757e
5
5
  SHA512:
6
- metadata.gz: 5c176fb523c20dc68e827a5d04a033b8cfb8f34c7012b8025c48e06c3bf9c4344cae5c6215a3106f626b6b131229d81381766b67f8067e39599f199a4d54b11b
7
- data.tar.gz: 726bb1524ef29efb8ccf47d28a164bbe3b0fc42edebb7671bcfa4ae5a39b79931e5ef7f4c0b401b58b7d398d1d90766534953df57b4aadbf8a72320a9e8d5183
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.1
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.1.gem
26
+ gem install ./ftc_events_client-0.2.2.gem
27
27
  ```
28
- (for development, run `gem install --dev ./ftc_events_client-0.2.1.gem` to install the development dependencies)
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.1'
34
+ gem 'ftc_events_client', '~> 0.2.2'
35
35
 
36
36
  ### Install from Git
37
37
 
data/config.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "gemVersion": "0.2.1",
2
+ "gemVersion": "0.2.2",
3
3
  "gemName": "ftc_events_client",
4
4
  "moduleName": "FtcEventsClient",
5
5
  "gemRequiredRubyVersion": ">= 2.4",
@@ -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
- request = build_request(http_method, path, opts)
50
- response = request.run
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"
@@ -10,5 +10,5 @@ Swagger Codegen version: 3.0.29
10
10
  =end
11
11
 
12
12
  module FtcEventsClient
13
- VERSION = '0.2.1'
13
+ VERSION = '0.2.2'
14
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ftc_events_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swagger-Codegen