google-cloud-translate 2.1.2 → 2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f51c412a15152d05e1c60da965599f84380223d35afaef55115bcc3cae4439e
4
- data.tar.gz: d946749a92e760dbcac10f3f97ae38e577376528aa9766aa67dd519a79cbac53
3
+ metadata.gz: 1d46a3536bbd20420cc8627279984040d9648b02beb22fdb1879909a1707de63
4
+ data.tar.gz: 651d0935669fb6196f4d823fb63d3ec3b2feaf8bde3f5080bf7d9c3d2035b7b7
5
5
  SHA512:
6
- metadata.gz: 885390f291d1d1378f417a26484f76404ed03d18d7d1d46682147710f0ff872f500b5ea4ae859048507d5e920e55a6fc538d14048a07d6497b9c309cd36982f1
7
- data.tar.gz: 8b4eb77491a9703c471276bc6641396b227c49b156dffa499f86bf9ea1d258e66c7bbd4944543e5f73aa8a94a3b006d3a2d24740c18e37baa836d588a7659c0f
6
+ metadata.gz: 9326823cec751bccc013659c2bcf5070b52d4fa910d191fb9b6071587c9007d56ee1f2fc8b8681bf9cc757894772fcf3fe01c3ff11db521c7f25bf7dc75e1689
7
+ data.tar.gz: 30e7d484afb99b39d207ea7e2a2593618bbdbe2d1ce0200835829fd377398a3a59b555c626da2439b984103cb3a9dd1b867c6886e22390bb04dfc1a1890c809e
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 2.2.0 / 2020-03-11
4
+
5
+ #### Features
6
+
7
+ * Support separate project setting for quota/billing
8
+
3
9
  ### 2.1.2 / 2020-03-02
4
10
 
5
11
  #### Bug Fixes
@@ -200,6 +200,9 @@ module Google
200
200
  google_api_client.freeze
201
201
 
202
202
  headers = { :"x-goog-api-client" => google_api_client }
203
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
204
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
205
+ end
203
206
  headers.merge!(metadata) unless metadata.nil?
204
207
  client_config_file = Pathname.new(__dir__).join(
205
208
  "translation_service_client_config.json"
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Translate
19
- VERSION = "2.1.2".freeze
19
+ VERSION = "2.2.0".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-cloud-translate
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.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-03-02 00:00:00.000000000 Z
11
+ date: 2020-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday