google-apis-core 0.4.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -12
- data/lib/google/apis/core/http_command.rb +3 -2
- data/lib/google/apis/core/version.rb +1 -1
- data/lib/google/apis/options.rb +13 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b0d661c88385398896b7cca5ae223f6dc366d1f94d73ba016d23c7dc3817a96
|
|
4
|
+
data.tar.gz: 50b2726dc4c02d38fe61ec1f44f6b95691eda96b6a7d68ee4a4e4b8eb6e9bf9f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 65127d75756ca4211aea26ad7923bdc17dca795e4d39d19c763b9577dcc6a492a6935c278e64b1132de3c26fd903bc0444f1e80e9dd0080f1fc3f15e22cfba65
|
|
7
|
+
data.tar.gz: fc7fd5fbd313851c222505fbb68b81094ab94c9eb7e27eb40ab71d6bb39096f0dbeffcf1acad8092412b3fb2f40678bf6a425a0e35914e00af6bdeb21015a0e0
|
data/CHANGELOG.md
CHANGED
|
@@ -1,32 +1,36 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### 0.5.0 (2022-05-15)
|
|
4
4
|
|
|
5
|
+
#### Features
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
* Add support for retry options to be configurable
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
### 0.4.2 (2022-01-21)
|
|
9
10
|
|
|
10
|
-
|
|
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
|
-
|
|
19
|
+
### 0.4.0 (2021-06-28)
|
|
15
20
|
|
|
16
21
|
* Expanded googleauth dependency to include future 1.x versions
|
|
17
22
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
### Features
|
|
23
|
+
### 0.3.0 (2021-03-07)
|
|
21
24
|
|
|
22
|
-
|
|
25
|
+
#### Features
|
|
23
26
|
|
|
24
|
-
|
|
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
|
-
|
|
31
|
+
#### Bug Fixes
|
|
28
32
|
|
|
29
|
-
*
|
|
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:
|
|
105
|
-
|
|
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
|
data/lib/google/apis/options.rb
CHANGED
|
@@ -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
|
+
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-
|
|
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.
|
|
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: []
|