google-apis-core 0.9.4 → 0.9.5

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: 0c4ade0959657cd3bff8601534b1f50e10335061306f94f19a1a5f0d31243378
4
- data.tar.gz: 97c094fd9c168d9e1bad64607dd4acc9ab3c9e748018b7173246bd76a52505dc
3
+ metadata.gz: 73217f42c55dafb8c4c82e4566474053393c4e83526e70bab6df345e5c7f12bf
4
+ data.tar.gz: 141a4ab5f035ba25b5659678d335ca5993cdc36f25aa6991cb89a232c50209d0
5
5
  SHA512:
6
- metadata.gz: 38718b83507b48984c0808da6c550092a7d4988574595b8eb769f3303352b1b51af520e323179836289f3c5524f780ea393df25c26f15555d636786788255336
7
- data.tar.gz: 967b026074f0a0d016621f78649e41b3d47c04fd7f2da8a14564897d21bfe9cc25aa207fe6612a00a97c044d31a9505018140ca4cf94bd4fc45d1709d0e0d38d
6
+ metadata.gz: a6067ed473ae306fa5682dd04fe57427259866527d66ccf72f687134f7367cb3936c4237287257fff14baf4393788110ec59c9cf5b5a6e9ebce4638ccb825ee2
7
+ data.tar.gz: ee192eae9e1e172dab3fe8680eed856cbfea34f998384c6fe0c6197d509c76ae7c0d0063004a0cdf74b9e060732c7a6b645e46fdda4df76f15644cdc872330d0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 0.9.5 (2023-01-12)
4
+
5
+ #### Bug Fixes
6
+
7
+ * Improve upload performance for Cloud Storage ([#13213](https://github.com/googleapis/google-api-ruby-client/issues/13213))
8
+
3
9
  ### 0.9.4 (2023-01-07)
4
10
 
5
11
  #### Bug Fixes
@@ -15,6 +15,7 @@
15
15
  require 'google/apis/core/http_command'
16
16
  require 'google/apis/core/api_command'
17
17
  require 'google/apis/errors'
18
+ require 'stringio'
18
19
  require 'tempfile'
19
20
  require 'mini_mime'
20
21
 
@@ -141,7 +142,7 @@ module Google
141
142
  request_header = header.dup
142
143
  request_header[CONTENT_RANGE_HEADER] = get_content_range_header current_chunk_size
143
144
  request_header[CONTENT_LENGTH_HEADER] = current_chunk_size
144
- chunk_body = upload_io.read(current_chunk_size)
145
+ chunk_body = StringIO.new(upload_io.read(current_chunk_size))
145
146
 
146
147
  response = client.put(@upload_url, body: chunk_body, header: request_header, follow_redirect: true)
147
148
 
@@ -16,7 +16,7 @@ module Google
16
16
  module Apis
17
17
  module Core
18
18
  # Core version
19
- VERSION = "0.9.4".freeze
19
+ VERSION = "0.9.5".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.9.4
4
+ version: 0.9.5
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-09 00:00:00.000000000 Z
11
+ date: 2023-01-12 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.9.4
189
+ documentation_uri: https://googleapis.dev/ruby/google-apis-core/v0.9.5
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: []