google-apis-core 0.10.0 → 0.11.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: 330bf699ecc5c12098da65f7b89e276d3670fb6cca1270960820d5c369be806d
4
- data.tar.gz: 843c6278d958141541fb12176f3eec28d0a0c6e09fbefd2d27a717ef59859bba
3
+ metadata.gz: 71c124a4dcd20721ab799ef44f376ff25ce4e62bd47daa58bc0fe82db014050a
4
+ data.tar.gz: a8193eaf12051d6606818efb527f62ff79d340cad2456d7e0f970938682a4d28
5
5
  SHA512:
6
- metadata.gz: 41ec08bdf72e469182007ba51c0175c45705d5bc45d651bafe14635f31f4ccbba4d9ba5ff10774e1170144d3196b88ad493d324b7450c009685ec80770e43f28
7
- data.tar.gz: a2f3ceec0e14b0d6af9bfcbf47627afb30f39764713f6e8d187413e54dab46446416911257b6f40a2baf1fa91471ef30f7e14dfe0b2b111057bb736bc7e00119
6
+ metadata.gz: 50753e39de39a704e10cecefaecf5f19fa215a90d1f74abfc2aa898ff77cbaabb33484e948f001a91f56cbf438f1cf0a687663baf367103a22e99c156cfedd6f
7
+ data.tar.gz: 694e22ff849afc427eea55310876929fd39b4fa70b4dff350caaa3d4ecaac6e1e8c41239403fd3b759b5ed374eb09cc0440445123e7ea6802f398ddd6739099c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 0.11.0 (2023-02-08)
4
+
5
+ #### Features
6
+
7
+ * Optimize memory usage when upload chunk size is set to 0
8
+
3
9
  ### 0.10.0 (2023-01-26)
4
10
 
5
11
  #### Features
@@ -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.0".freeze
20
20
  end
21
21
  end
22
22
  end
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.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: 2023-01-27 00:00:00.000000000 Z
11
+ date: 2023-02-08 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.0
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: []