google-cloud-translate 2.2.0 → 2.3.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/cloud/translate/v2/service.rb +10 -6
- data/lib/google/cloud/translate/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9017717a3a554b70871ae4640cd18eea061647f599ab9425264e2c8b67b2524
|
4
|
+
data.tar.gz: 9a4bc6d4409525d4d3c4c31e9b291addf9fbcfaeec70102a4efb4d5de5feec3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ac4580fb2385cdd2b9365c3f0901093f0c960abab1bb4fcd7acde0499109c7a68e5c9e4f7eb80eabba912ff589c54f1697623a74aeccd1db39aaeaa37ca5d21
|
7
|
+
data.tar.gz: 53e7cdf69fc891cb98866bf61b2cb6246e45b1ca558c8e86f7d65c0a5c30caba867806f923871fc0ee3a026e43b8fd66ea7c0c888edab156d5930db917f05215
|
data/CHANGELOG.md
CHANGED
@@ -110,12 +110,16 @@ module Google
|
|
110
110
|
##
|
111
111
|
# The default HTTP headers to be sent on all API calls.
|
112
112
|
def default_http_headers
|
113
|
-
@default_http_headers ||=
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
}
|
113
|
+
@default_http_headers ||= begin
|
114
|
+
headers = {
|
115
|
+
"User-Agent" => "gcloud-ruby/#{Google::Cloud::Translate::VERSION}",
|
116
|
+
"google-cloud-resource-prefix" => "projects/#{@project}",
|
117
|
+
"Content-Type" => "application/json",
|
118
|
+
"x-goog-api-client" => "gl-ruby/#{RUBY_VERSION} gccl/#{Google::Cloud::Translate::VERSION}"
|
119
|
+
}
|
120
|
+
headers["x-goog-user-project"] = credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
121
|
+
headers
|
122
|
+
end
|
119
123
|
end
|
120
124
|
|
121
125
|
##
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-translate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.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: 2020-03-
|
11
|
+
date: 2020-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|