google-cloud-language 0.35.3 → 0.36.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: b9e2361359bcd007c7863697e14804e75c8c41641c52cb16a0e22079834aed72
4
- data.tar.gz: 03ed129658f3e01804534f42d4fab11bdf5249a8d4ad32da88f63674d6927112
3
+ metadata.gz: f68001e3f86a9bba9a22d53caafd472acffbb257b21bdca8f91d6796a8e3bdf4
4
+ data.tar.gz: 67ff5f48d59089b1d85d0ce651989c02dff9eec926e4a8d60f17b84ca2cc76f8
5
5
  SHA512:
6
- metadata.gz: 64438a79df67c807c7c96d2e36ac2fbdddaa158867a7afd1f01a32617e3913179fa8263c6de8c38f532b6d1c417260d00252f09fa64b3b880a12ec0a3aac4537
7
- data.tar.gz: 41a9d764ed18a731bf163675f83384228ecc6c32ef352902415c7e40364457505154bba1f54e71afa9279f865d2da19ecab7f91c7b9ca30c1dbacb0961b34ebc
6
+ metadata.gz: 57dd3c25943c9d209a587edefeea306a11283c19147b10d0997bcee706816b1cf1404a4ba2b8096fba6033c6cd0ad0e126fd23ddefc3842db8a568d038fa58af
7
+ data.tar.gz: 6baf72a05aab5b69147431269ac8ce0190e83231297e02259250d33bdbedf90e1ad87c4147e54a8d50b7e5ed0fb767f3e6edb6be84f109e182f770833e0fdb73
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Ruby Client for Cloud Natural Language API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
1
+ # Ruby Client for Cloud Natural Language API
2
2
 
3
3
  [Cloud Natural Language API][Product Documentation]:
4
4
  Provides natural language understanding technologies, such as sentiment
@@ -21,7 +21,7 @@ module Google
21
21
  # rubocop:disable LineLength
22
22
 
23
23
  ##
24
- # # Ruby Client for Cloud Natural Language API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
24
+ # # Ruby Client for Cloud Natural Language API
25
25
  #
26
26
  # [Cloud Natural Language API][Product Documentation]:
27
27
  # Provides natural language understanding technologies, such as sentiment
@@ -21,7 +21,7 @@ module Google
21
21
  # rubocop:disable LineLength
22
22
 
23
23
  ##
24
- # # Ruby Client for Cloud Natural Language API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
24
+ # # Ruby Client for Cloud Natural Language API
25
25
  #
26
26
  # [Cloud Natural Language API][Product Documentation]:
27
27
  # Provides natural language understanding technologies, such as sentiment
@@ -138,6 +138,9 @@ module Google
138
138
  google_api_client.freeze
139
139
 
140
140
  headers = { :"x-goog-api-client" => google_api_client }
141
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
142
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
143
+ end
141
144
  headers.merge!(metadata) unless metadata.nil?
142
145
  client_config_file = Pathname.new(__dir__).join(
143
146
  "language_service_client_config.json"
@@ -21,7 +21,7 @@ module Google
21
21
  # rubocop:disable LineLength
22
22
 
23
23
  ##
24
- # # Ruby Client for Google Cloud Natural Language API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
24
+ # # Ruby Client for Google Cloud Natural Language API
25
25
  #
26
26
  # [Google Cloud Natural Language API][Product Documentation]:
27
27
  # Google Cloud Natural Language API provides natural language understanding
@@ -137,6 +137,9 @@ module Google
137
137
  google_api_client.freeze
138
138
 
139
139
  headers = { :"x-goog-api-client" => google_api_client }
140
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
141
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
142
+ end
140
143
  headers.merge!(metadata) unless metadata.nil?
141
144
  client_config_file = Pathname.new(__dir__).join(
142
145
  "language_service_client_config.json"
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Language
19
- VERSION = "0.35.3".freeze
19
+ VERSION = "0.36.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-language
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.3
4
+ version: 0.36.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-01-23 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: google-gax