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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 754387cc8da7fef9ba17ee2af8c44256fd5712f4970d0e09ba25bb4ec7c44e65
4
- data.tar.gz: 37a696b2f076fd154f43696bcca74bfdf5bf8204c125a6abdc2d798fdf5d147b
3
+ metadata.gz: 690fe6e1f9586e11422cfeaaa400e104c69c995fbe5adc7245d8915e34ddc025
4
+ data.tar.gz: 70f2eb7b464bc6e527f9a00fa56173da80086cae482538e86c613babb2307d47
5
5
  SHA512:
6
- metadata.gz: d79eea30ef0cfea5ba983367379d5d2ce930d20ccc8745a792bffbec9f5ecdbcde5014de6505751b840009ecea314cface562e6724c6136a83dc9e9d54b9526b
7
- data.tar.gz: c561147f20ac5eff16139c3b6a05eb04ee1b34acd8247f6ecc5baea509f2be39b9b8b9391e57766dffc88ea3e84a8779e581112712be980b307e1bf9163ea9e0
6
+ metadata.gz: e13a3af578f211a2816c95ec7fad3773c2759c549b6b0561c2c1e8cf6b575654b800a9dc93e7e2496b628d8e7f09fef25162affe433313fbd4b6d5b2fba49a66
7
+ data.tar.gz: 20dfc477fcd3f0c18479d25c8a23ba10ed0c275a8dc1c90a75df95047377ce953fa49ee4ba487a839808170b5918671d97ea5d2d37fd49183f0fd56e3bc8c5e6
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 0.2.0 / 2020-09-16
4
+
5
+ #### Features
6
+
7
+ * quota_project can be set via library configuration
8
+
3
9
  ### 0.1.1 / 2020-06-18
4
10
 
5
11
  #### Bug Fixes
@@ -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
- headers["x-goog-user-project"] = credentials.quota_project_id if credentials.respond_to? :quota_project_id
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
@@ -17,7 +17,7 @@ module Google
17
17
  module Cloud
18
18
  module Translate
19
19
  module V2
20
- VERSION = "0.1.1".freeze
20
+ VERSION = "0.2.0".freeze
21
21
  end
22
22
  end
23
23
  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.1.1
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-06-18 00:00:00.000000000 Z
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.3
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