google-apis-core 0.4.2 → 0.5.0

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: de1aca07eb6dab1c4571ad1b001657b858a7c8f263591d23f76a482707c1d244
4
- data.tar.gz: 7715680088cf38a06fcf80747a047f0ebb0aaf63ed61817df26787db4f983fcd
3
+ metadata.gz: 8b0d661c88385398896b7cca5ae223f6dc366d1f94d73ba016d23c7dc3817a96
4
+ data.tar.gz: 50b2726dc4c02d38fe61ec1f44f6b95691eda96b6a7d68ee4a4e4b8eb6e9bf9f
5
5
  SHA512:
6
- metadata.gz: '029c926e8f4dcc1371f68def113598ca73cb4fc6982376c53175f40240a537b2dbce3e7cf041b54ae8b501867f0e728f596c1e70ed0abd798ba695605a7ca5fb'
7
- data.tar.gz: fb2ef0252bfcdab2b3e45e07252cbed43a3a73dd4b72c32f7024a62bec18cf557905f75a5a7c56366b3466db29b353dd1a94ceee9a6a8160b05573231bcad237
6
+ metadata.gz: 65127d75756ca4211aea26ad7923bdc17dca795e4d39d19c763b9577dcc6a492a6935c278e64b1132de3c26fd903bc0444f1e80e9dd0080f1fc3f15e22cfba65
7
+ data.tar.gz: fc7fd5fbd313851c222505fbb68b81094ab94c9eb7e27eb40ab71d6bb39096f0dbeffcf1acad8092412b3fb2f40678bf6a425a0e35914e00af6bdeb21015a0e0
data/CHANGELOG.md CHANGED
@@ -1,32 +1,36 @@
1
1
  # Release History
2
2
 
3
- ### [0.4.2](https://www.github.com/googleapis/google-api-ruby-client/compare/google-apis-core/v0.4.1...google-apis-core/v0.4.2) (2022-01-21)
3
+ ### 0.5.0 (2022-05-15)
4
4
 
5
+ #### Features
5
6
 
6
- ### Bug Fixes
7
+ * Add support for retry options to be configurable
7
8
 
8
- * **core:** Support for max elapsed time configuration. ([241361e](https://www.github.com/googleapis/google-api-ruby-client/commit/241361e1a47d1aeac09ecd1f24099c8fc83e4508))
9
+ ### 0.4.2 (2022-01-21)
9
10
 
10
- ## 0.4.1 (2021-07-19)
11
+ #### Bug Fixes
12
+
13
+ * Support for max elapsed time configuration.
14
+
15
+ ### 0.4.1 (2021-07-19)
11
16
 
12
17
  * FIX: Prevent duplicated pagination when a response returns an empty string as the next page token.
13
18
 
14
- ## 0.4.0 (2021-06-28)
19
+ ### 0.4.0 (2021-06-28)
15
20
 
16
21
  * Expanded googleauth dependency to include future 1.x versions
17
22
 
18
- ## [0.3.0](https://www.github.com/googleapis/google-api-ruby-client/compare/google-apis-core/v0.2.1...v0.3.0) (2021-03-07)
19
-
20
- ### Features
23
+ ### 0.3.0 (2021-03-07)
21
24
 
22
- * Drop support for Ruby 2.4 and add support for Ruby 3.0 ([d871146](https://www.github.com/googleapis/google-api-ruby-client/commit/d871146916f3dd19a12820c03068b3861a4bc879))
25
+ #### Features
23
26
 
24
- ### [0.2.1](https://www.github.com/googleapis/google-api-ruby-client/compare/google-apis-core/v0.2.0...v0.2.1) (2021-01-25)
27
+ * Drop support for Ruby 2.4 and add support for Ruby 3.0
25
28
 
29
+ ### 0.2.1 (2021-01-25)
26
30
 
27
- ### Bug Fixes
31
+ #### Bug Fixes
28
32
 
29
- * **core:** Add webrick to the gem dependencies, for Ruby 3 compatibility ([25824f2](https://www.github.com/googleapis/google-api-ruby-client/commit/25824f2512fa96d4d90e220ac038c9b3b2a6a0d1))
33
+ * Add webrick to the gem dependencies, for Ruby 3 compatibility
30
34
 
31
35
  ### 0.2.0 (2021-01-06)
32
36
 
@@ -101,8 +101,9 @@ module Google
101
101
  begin
102
102
  Retriable.retriable tries: options.retries + 1,
103
103
  max_elapsed_time: options.max_elapsed_time,
104
- base_interval: 1,
105
- multiplier: 2,
104
+ base_interval: options.base_interval,
105
+ max_interval: options.max_interval,
106
+ multiplier: options.multiplier,
106
107
  on: RETRIABLE_ERRORS do |try|
107
108
  # This 2nd level retriable only catches auth errors, and supports 1 retry, which allows
108
109
  # auth to be re-attempted without having to retry all sorts of other failures like
@@ -16,7 +16,7 @@ module Google
16
16
  module Apis
17
17
  module Core
18
18
  # Core version
19
- VERSION = "0.4.2".freeze
19
+ VERSION = "0.5.0".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -29,6 +29,9 @@ module Google
29
29
  :authorization,
30
30
  :retries,
31
31
  :max_elapsed_time,
32
+ :base_interval,
33
+ :max_interval,
34
+ :multiplier,
32
35
  :header,
33
36
  :normalize_unicode,
34
37
  :skip_serialization,
@@ -69,6 +72,13 @@ module Google
69
72
  # @return [Fixnum] Number of times to retry requests on server error.
70
73
  # @!attribute [rw] max_elapsed_time
71
74
  # @return [Fixnum] Total time in seconds that requests are allowed to keep being retried.
75
+ # @!attribute [rw] base_interval
76
+ # @return [Float] The initial interval in seconds between tries.
77
+ # @!attribute [rw] max_interval
78
+ # @return [Fixnum] The maximum interval in seconds that any individual retry can reach.
79
+ # @!attribute [rw] multiplier
80
+ # @return [rw] Each successive interval grows by this factor. A multipler of 1.5 means the next interval
81
+ # will be 1.5x the current interval.
72
82
  # @!attribute [rw] header
73
83
  # @return [Hash<String,String>] Additional HTTP headers to include in requests.
74
84
  # @!attribute [rw] normalize_unicode
@@ -110,6 +120,9 @@ module Google
110
120
  ClientOptions.default.transparent_gzip_decompression = true
111
121
  RequestOptions.default.retries = 0
112
122
  RequestOptions.default.max_elapsed_time = 900
123
+ RequestOptions.default.base_interval = 1
124
+ RequestOptions.default.max_interval = 60
125
+ RequestOptions.default.multiplier = 2
113
126
  RequestOptions.default.normalize_unicode = false
114
127
  RequestOptions.default.skip_serialization = false
115
128
  RequestOptions.default.skip_deserialization = false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-21 00:00:00.000000000 Z
11
+ date: 2022-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: representable
@@ -184,7 +184,7 @@ licenses:
184
184
  metadata:
185
185
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
186
186
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/google-apis-core/CHANGELOG.md
187
- documentation_uri: https://googleapis.dev/ruby/google-apis-core/v0.4.2
187
+ documentation_uri: https://googleapis.dev/ruby/google-apis-core/v0.5.0
188
188
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/google-apis-core
189
189
  post_install_message:
190
190
  rdoc_options: []