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 +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/language.rb +1 -1
- data/lib/google/cloud/language/v1.rb +1 -1
- data/lib/google/cloud/language/v1/language_service_client.rb +3 -0
- data/lib/google/cloud/language/v1beta2.rb +1 -1
- data/lib/google/cloud/language/v1beta2/language_service_client.rb +3 -0
- data/lib/google/cloud/language/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: f68001e3f86a9bba9a22d53caafd472acffbb257b21bdca8f91d6796a8e3bdf4
|
4
|
+
data.tar.gz: 67ff5f48d59089b1d85d0ce651989c02dff9eec926e4a8d60f17b84ca2cc76f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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
|
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
|
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"
|
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.
|
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-
|
11
|
+
date: 2020-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|