google-apis-core 0.10.0 → 0.11.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: 330bf699ecc5c12098da65f7b89e276d3670fb6cca1270960820d5c369be806d
4
- data.tar.gz: 843c6278d958141541fb12176f3eec28d0a0c6e09fbefd2d27a717ef59859bba
3
+ metadata.gz: 82086ecd9dad2239ce9089b943519c39de9b7574a9f1d089bee6cf6531c10eea
4
+ data.tar.gz: defab5fb9d8dc49ee7e0dc228a9d687d173444ad477f41060c0b418212354058
5
5
  SHA512:
6
- metadata.gz: 41ec08bdf72e469182007ba51c0175c45705d5bc45d651bafe14635f31f4ccbba4d9ba5ff10774e1170144d3196b88ad493d324b7450c009685ec80770e43f28
7
- data.tar.gz: a2f3ceec0e14b0d6af9bfcbf47627afb30f39764713f6e8d187413e54dab46446416911257b6f40a2baf1fa91471ef30f7e14dfe0b2b111057bb736bc7e00119
6
+ metadata.gz: d28bfc73a1293291b6e16ddc520082404030a34d9d78c4eb6e88c81bb038ef13996235ae49f436736e9d2cf82850ed54869141508de0f24f19c96c1a30bd0c4e
7
+ data.tar.gz: 035f5285444a0af8631f87e6164d5cc52554534e5c4e94cfaef122236937bd73597b58c0c475d89c795d04d76051051b16279d3f8437aa671eef86fb455d3c8c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Release History
2
2
 
3
+ ### 0.11.2 (2023-10-27)
4
+
5
+ #### Bug Fixes
6
+
7
+ * update ssl_config to point to system default root CA path ([#16446](https://github.com/googleapis/google-api-ruby-client/issues/16446))
8
+
9
+ ### 0.11.1 (2023-07-20)
10
+
11
+ #### Documentation
12
+
13
+ * Document send_timeout_sec and fix up some types ([#14907](https://github.com/googleapis/google-api-ruby-client/issues/14907))
14
+
15
+ ### 0.11.0 (2023-02-08)
16
+
17
+ #### Features
18
+
19
+ * Optimize memory usage when upload chunk size is set to 0
20
+
3
21
  ### 0.10.0 (2023-01-26)
4
22
 
5
23
  #### Features
@@ -480,6 +480,11 @@ module Google
480
480
  client.default_header = { 'User-Agent' => user_agent }
481
481
 
482
482
  client.debug_dev = logger if client_options.log_http_requests
483
+
484
+ # Make HttpClient use system default root CA path
485
+ # https://github.com/nahi/httpclient/issues/445
486
+ client.ssl_config.clear_cert_store
487
+ client.ssl_config.cert_store.set_default_paths
483
488
  client
484
489
  end
485
490
 
@@ -87,6 +87,11 @@ module Google
87
87
  self.query = {}
88
88
  self.params = {}
89
89
  @opencensus_span = nil
90
+ if OPENCENSUS_AVAILABLE
91
+ logger.warn 'OpenCensus support is now deprecated. ' +
92
+ 'Please refer https://github.com/googleapis/google-api-ruby-client#tracing for migrating to use OpenTelemetry.'
93
+
94
+ end
90
95
  end
91
96
 
92
97
  # Execute the command, retrying as necessary
@@ -146,7 +146,12 @@ module Google
146
146
  request_header = header.dup
147
147
  request_header[CONTENT_RANGE_HEADER] = get_content_range_header current_chunk_size
148
148
  request_header[CONTENT_LENGTH_HEADER] = current_chunk_size
149
- chunk_body = StringIO.new(upload_io.read(current_chunk_size))
149
+ chunk_body =
150
+ if @upload_chunk_size == 0
151
+ upload_io
152
+ else
153
+ StringIO.new(upload_io.read(current_chunk_size))
154
+ end
150
155
 
151
156
  response = client.put(@upload_url, body: chunk_body, header: request_header, follow_redirect: true)
152
157
 
@@ -16,7 +16,7 @@ module Google
16
16
  module Apis
17
17
  module Core
18
18
  # Core version
19
- VERSION = "0.10.0".freeze
19
+ VERSION = "0.11.2".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -54,9 +54,11 @@ module Google
54
54
  # @!attribute [rw] log_http_requests
55
55
  # @return [Boolean] True if raw HTTP requests should be logged
56
56
  # @!attribute [rw] open_timeout_sec
57
- # @return [Fixnum] How long, in seconds, before failed connections time out
57
+ # @return [Integer] How long, in seconds, before failed connections time out
58
+ # @!attribute [rw] send_timeout_sec
59
+ # @return [Integer] How long, in seconds, before sending data times out
58
60
  # @!attribute [rw] read_timeout_sec
59
- # @return [Fixnum] How long, in seconds, before requests time out
61
+ # @return [Integer] How long, in seconds, before receiving data times out
60
62
  # @!attribute [rw] transparent_gzip_decompression
61
63
  # @return [Boolean] True if gzip compression needs to be enabled
62
64
  # Get the default options
@@ -71,15 +73,15 @@ module Google
71
73
  # @!attribute [rw] authorization
72
74
  # @return [Signet::OAuth2::Client, #apply(Hash)] OAuth2 credentials.
73
75
  # @!attribute [rw] retries
74
- # @return [Fixnum] Number of times to retry requests on server error.
76
+ # @return [Integer] Number of times to retry requests on server error.
75
77
  # @!attribute [rw] max_elapsed_time
76
- # @return [Fixnum] Total time in seconds that requests are allowed to keep being retried.
78
+ # @return [Integer] Total time in seconds that requests are allowed to keep being retried.
77
79
  # @!attribute [rw] base_interval
78
80
  # @return [Float] The initial interval in seconds between tries.
79
81
  # @!attribute [rw] max_interval
80
- # @return [Fixnum] The maximum interval in seconds that any individual retry can reach.
82
+ # @return [Integer] The maximum interval in seconds that any individual retry can reach.
81
83
  # @!attribute [rw] multiplier
82
- # @return [rw] Each successive interval grows by this factor. A multipler of 1.5 means the next interval
84
+ # @return [Numeric] Each successive interval grows by this factor. A multipler of 1.5 means the next interval
83
85
  # will be 1.5x the current interval.
84
86
  # @!attribute [rw] header
85
87
  # @return [Hash<String,String>] Additional HTTP headers to include in requests.
@@ -90,7 +92,7 @@ module Google
90
92
  # @!attribute [rw] skip_deserialization
91
93
  # @return [Boolean] True if response should be returned in raw form instead of deserialized.
92
94
  # @!attribute [rw] api_format_version
93
- # @return [Fixnum] Version of the error format to request/expect.
95
+ # @return [Integer] Version of the error format to request/expect.
94
96
  # @!attribute [rw] use_opencensus
95
97
  # @return [Boolean] Whether OpenCensus spans should be generated for requests. Default is true.
96
98
  # @!attribute [rw] quota_project
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.10.0
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-27 00:00:00.000000000 Z
11
+ date: 2023-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: representable
@@ -186,7 +186,7 @@ licenses:
186
186
  metadata:
187
187
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
188
188
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/google-apis-core/CHANGELOG.md
189
- documentation_uri: https://googleapis.dev/ruby/google-apis-core/v0.10.0
189
+ documentation_uri: https://googleapis.dev/ruby/google-apis-core/v0.11.2
190
190
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/google-apis-core
191
191
  post_install_message:
192
192
  rdoc_options: []
@@ -203,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  - !ruby/object:Gem::Version
204
204
  version: '0'
205
205
  requirements: []
206
- rubygems_version: 3.4.2
206
+ rubygems_version: 3.4.19
207
207
  signing_key:
208
208
  specification_version: 4
209
209
  summary: Common utility and base classes for legacy Google REST clients