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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/google/apis/core/storage_upload.rb +6 -1
- data/lib/google/apis/core/version.rb +1 -1
- 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: 71c124a4dcd20721ab799ef44f376ff25ce4e62bd47daa58bc0fe82db014050a
|
4
|
+
data.tar.gz: a8193eaf12051d6606818efb527f62ff79d340cad2456d7e0f970938682a4d28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50753e39de39a704e10cecefaecf5f19fa215a90d1f74abfc2aa898ff77cbaabb33484e948f001a91f56cbf438f1cf0a687663baf367103a22e99c156cfedd6f
|
7
|
+
data.tar.gz: 694e22ff849afc427eea55310876929fd39b4fa70b4dff350caaa3d4ecaac6e1e8c41239403fd3b759b5ed374eb09cc0440445123e7ea6802f398ddd6739099c
|
data/CHANGELOG.md
CHANGED
@@ -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 =
|
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
|
|
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.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-
|
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.
|
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: []
|