google-apis-core 1.1.0 → 1.2.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 +6 -0
- data/lib/google/apis/core/base_service.rb +8 -0
- 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: cb2db67f02ccdf26075c0e53ebf98f16dad62e677ee3442e0cd8fd5839d77fc2
|
|
4
|
+
data.tar.gz: 36430fa32eb291da73aa0a0fc41486bbd9059d0785534b72f5a7f87ef686bdca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c1b25259abf3f3c13de20d594ff1dfa9dc4c53260d839dbd5e0e89af4526e6770e95d3afc92d8fc60a55fc37c49b08f3db2d75dbc02ff91fee1feffdfb88e2f5
|
|
7
|
+
data.tar.gz: e2508db90999eb576531c267afa9f94804a403adbaf9e79deb4869491adc239048592deed05b26d20522883bae92b9072a8bf56d0e1b8ee2128aef648183b434
|
data/CHANGELOG.md
CHANGED
|
@@ -421,6 +421,10 @@ module Google
|
|
|
421
421
|
template = Addressable::Template.new(root_url + upload_path + path)
|
|
422
422
|
command = StorageUploadCommand.new(method, template, client_version: client_version)
|
|
423
423
|
command.options = request_options.merge(options)
|
|
424
|
+
command.options.header = command.options.header&.dup || {}
|
|
425
|
+
unless command.options.header.any? { |k, _| k.to_s.casecmp('accept-encoding') == 0 }
|
|
426
|
+
command.options.header['Accept-Encoding'] = 'gzip'
|
|
427
|
+
end
|
|
424
428
|
apply_command_defaults(command)
|
|
425
429
|
command
|
|
426
430
|
end
|
|
@@ -459,6 +463,10 @@ module Google
|
|
|
459
463
|
template = Addressable::Template.new(root_url + base_path + path)
|
|
460
464
|
command = StorageDownloadCommand.new(method, template, client_version: client_version)
|
|
461
465
|
command.options = request_options.merge(options)
|
|
466
|
+
command.options.header = command.options.header&.dup || {}
|
|
467
|
+
unless command.options.header.any? { |k, _| k.to_s.casecmp('accept-encoding') == 0 }
|
|
468
|
+
command.options.header['Accept-Encoding'] = 'gzip'
|
|
469
|
+
end
|
|
462
470
|
command.query['alt'] = 'media'
|
|
463
471
|
apply_command_defaults(command)
|
|
464
472
|
command
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -153,7 +153,7 @@ licenses:
|
|
|
153
153
|
metadata:
|
|
154
154
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
155
155
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/google-apis-core/CHANGELOG.md
|
|
156
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-core/v1.
|
|
156
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-core/v1.2.0
|
|
157
157
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/google-apis-core
|
|
158
158
|
rdoc_options: []
|
|
159
159
|
require_paths:
|
|
@@ -162,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
162
162
|
requirements:
|
|
163
163
|
- - ">="
|
|
164
164
|
- !ruby/object:Gem::Version
|
|
165
|
-
version: '3.
|
|
165
|
+
version: '3.2'
|
|
166
166
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
167
|
requirements:
|
|
168
168
|
- - ">="
|