google-cloud-translate-v2 0.1.1 → 0.2.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 +3 -1
- data/lib/google/cloud/translate/v2/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: 690fe6e1f9586e11422cfeaaa400e104c69c995fbe5adc7245d8915e34ddc025
|
4
|
+
data.tar.gz: 70f2eb7b464bc6e527f9a00fa56173da80086cae482538e86c613babb2307d47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e13a3af578f211a2816c95ec7fad3773c2759c549b6b0561c2c1e8cf6b575654b800a9dc93e7e2496b628d8e7f09fef25162affe433313fbd4b6d5b2fba49a66
|
7
|
+
data.tar.gz: 20dfc477fcd3f0c18479d25c8a23ba10ed0c275a8dc1c90a75df95047377ce953fa49ee4ba487a839808170b5918671d97ea5d2d37fd49183f0fd56e3bc8c5e6
|
data/CHANGELOG.md
CHANGED
@@ -118,7 +118,9 @@ module Google
|
|
118
118
|
"Content-Type" => "application/json",
|
119
119
|
"x-goog-api-client" => "gl-ruby/#{RUBY_VERSION} gccl/#{lib_version}"
|
120
120
|
}
|
121
|
-
|
121
|
+
quota_project = V2.translation_config&.quota_project
|
122
|
+
quota_project ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
123
|
+
headers["x-goog-user-project"] = quota_project if quota_project
|
122
124
|
headers
|
123
125
|
end
|
124
126
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-translate-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.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-
|
11
|
+
date: 2020-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -265,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
265
265
|
- !ruby/object:Gem::Version
|
266
266
|
version: '0'
|
267
267
|
requirements: []
|
268
|
-
rubygems_version: 3.1.
|
268
|
+
rubygems_version: 3.1.4
|
269
269
|
signing_key:
|
270
270
|
specification_version: 4
|
271
271
|
summary: API Client library for Cloud Translation V2 API
|