google-cloud-language 0.30.0 → 0.31.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 +4 -4
- data/.yardopts +1 -0
- data/README.md +38 -1
- data/lib/google/cloud/language.rb +32 -2
- data/lib/google/cloud/language/v1.rb +75 -41
- data/lib/google/cloud/language/v1/credentials.rb +40 -0
- data/lib/google/cloud/language/v1/doc/google/cloud/language/v1/language_service.rb +0 -11
- data/lib/google/cloud/language/v1/doc/overview.rb +27 -2
- data/lib/google/cloud/language/v1/language_service_client.rb +91 -34
- data/lib/google/cloud/language/v1beta2.rb +76 -51
- data/lib/google/cloud/language/v1beta2/credentials.rb +40 -0
- data/lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb +1 -12
- data/lib/google/cloud/language/v1beta2/doc/overview.rb +31 -5
- data/lib/google/cloud/language/v1beta2/language_service_client.rb +100 -55
- data/lib/google/cloud/language/v1beta2/language_service_services_pb.rb +1 -1
- metadata +36 -7
- data/lib/google/cloud/language/credentials.rb +0 -30
@@ -7,7 +7,7 @@
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
8
8
|
# You may obtain a copy of the License at
|
9
9
|
#
|
10
|
-
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
11
|
#
|
12
12
|
# Unless required by applicable law or agreed to in writing, software
|
13
13
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
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.31.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: 2018-
|
11
|
+
date: 2018-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '5.10'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: redcarpet
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rubocop
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +80,20 @@ dependencies:
|
|
66
80
|
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: '0.9'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: yard
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.9'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.9'
|
69
97
|
description: google-cloud-language is the official library for Google Cloud Natural
|
70
98
|
Language API.
|
71
99
|
email: googleapis-packages@google.com
|
@@ -77,8 +105,8 @@ files:
|
|
77
105
|
- LICENSE
|
78
106
|
- README.md
|
79
107
|
- lib/google/cloud/language.rb
|
80
|
-
- lib/google/cloud/language/credentials.rb
|
81
108
|
- lib/google/cloud/language/v1.rb
|
109
|
+
- lib/google/cloud/language/v1/credentials.rb
|
82
110
|
- lib/google/cloud/language/v1/doc/google/cloud/language/v1/language_service.rb
|
83
111
|
- lib/google/cloud/language/v1/doc/overview.rb
|
84
112
|
- lib/google/cloud/language/v1/language_service_client.rb
|
@@ -86,13 +114,14 @@ files:
|
|
86
114
|
- lib/google/cloud/language/v1/language_service_pb.rb
|
87
115
|
- lib/google/cloud/language/v1/language_service_services_pb.rb
|
88
116
|
- lib/google/cloud/language/v1beta2.rb
|
117
|
+
- lib/google/cloud/language/v1beta2/credentials.rb
|
89
118
|
- lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb
|
90
119
|
- lib/google/cloud/language/v1beta2/doc/overview.rb
|
91
120
|
- lib/google/cloud/language/v1beta2/language_service_client.rb
|
92
121
|
- lib/google/cloud/language/v1beta2/language_service_client_config.json
|
93
122
|
- lib/google/cloud/language/v1beta2/language_service_pb.rb
|
94
123
|
- lib/google/cloud/language/v1beta2/language_service_services_pb.rb
|
95
|
-
homepage: https://github.com/
|
124
|
+
homepage: https://github.com/GoogleCloudPlatform/google-cloud-ruby/tree/master/google-cloud-language
|
96
125
|
licenses:
|
97
126
|
- Apache-2.0
|
98
127
|
metadata: {}
|
@@ -112,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
141
|
version: '0'
|
113
142
|
requirements: []
|
114
143
|
rubyforge_project:
|
115
|
-
rubygems_version: 2.7.
|
144
|
+
rubygems_version: 2.7.7
|
116
145
|
signing_key:
|
117
146
|
specification_version: 4
|
118
147
|
summary: API Client library for Google Cloud Natural Language API
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# Copyright 2018 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require "googleauth"
|
16
|
-
|
17
|
-
module Google
|
18
|
-
module Cloud
|
19
|
-
module Language
|
20
|
-
class Credentials < Google::Auth::Credentials
|
21
|
-
SCOPE = [
|
22
|
-
"https://www.googleapis.com/auth/cloud-platform"
|
23
|
-
].freeze
|
24
|
-
PATH_ENV_VARS = %w(LANGUAGE_KEYFILE GOOGLE_CLOUD_KEYFILE GCLOUD_KEYFILE)
|
25
|
-
JSON_ENV_VARS = %w(LANGUAGE_KEYFILE_JSON GOOGLE_CLOUD_KEYFILE_JSON GCLOUD_KEYFILE_JSON)
|
26
|
-
DEFAULT_PATHS = ["~/.config/gcloud/application_default_credentials.json"]
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|