google-cloud-language 0.25.0 → 0.26.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/README.md +1 -1
- data/lib/google/cloud/language/annotation.rb +3 -2
- data/lib/google/cloud/language/project.rb +2 -2
- data/lib/google/cloud/language/v1/language_service_client.rb +3 -2
- data/lib/google/cloud/language/v1/language_service_client_config.json +3 -1
- data/lib/google/cloud/language/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4830cbe5b93103ce33cca8c454b75b20d44e56e4
|
|
4
|
+
data.tar.gz: 2abde3909e2c55adb142d8ed5ebec1bddd4b8366
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7fe8326ce9ff6ff79b5a4722b205d33d9b0a2adc885d208173b2e3bca78d240ef08a100a01681cae7a9e9f3b0eed908802bf6f89c83ecdbb691eca828c1b27e5
|
|
7
|
+
data.tar.gz: 27c3339fd3fcae0dd33c6f3ace0ebeccfab2876e967ca50fc8484dc0019a1dc93129e3d1436dd466fa8ea40a7f173f7dd44f117ae2024e196d532d23f186204e
|
data/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
The Google Cloud Natural Language API is currently a beta release, and might be changed in backward-incompatible ways. It is not subject to any SLA or deprecation policy and is not intended for real-time usage in critical applications.
|
|
6
6
|
|
|
7
|
-
- [google-cloud-language API documentation](http://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-language/
|
|
7
|
+
- [google-cloud-language API documentation](http://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-language/latest)
|
|
8
8
|
- [google-cloud-language on RubyGems](https://rubygems.org/gems/google-cloud-language)
|
|
9
9
|
- [Google Cloud Natural Language API documentation](https://cloud.google.com/natural-language/docs)
|
|
10
10
|
|
|
@@ -1015,9 +1015,10 @@ module Google
|
|
|
1015
1015
|
end
|
|
1016
1016
|
|
|
1017
1017
|
##
|
|
1018
|
-
# @private New
|
|
1018
|
+
# @private New Mention from a V1::Mention object.
|
|
1019
1019
|
def self.from_grpc grpc
|
|
1020
|
-
|
|
1020
|
+
text_span = TextSpan.from_grpc grpc.text
|
|
1021
|
+
new text_span, grpc.type
|
|
1021
1022
|
end
|
|
1022
1023
|
end
|
|
1023
1024
|
end
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
require "google/cloud/errors"
|
|
17
|
-
require "google/cloud/
|
|
17
|
+
require "google/cloud/env"
|
|
18
18
|
require "google/cloud/language/service"
|
|
19
19
|
require "google/cloud/language/document"
|
|
20
20
|
require "google/cloud/language/annotation"
|
|
@@ -79,7 +79,7 @@ module Google
|
|
|
79
79
|
ENV["LANGUAGE_PROJECT"] ||
|
|
80
80
|
ENV["GOOGLE_CLOUD_PROJECT"] ||
|
|
81
81
|
ENV["GCLOUD_PROJECT"] ||
|
|
82
|
-
Google::Cloud
|
|
82
|
+
Google::Cloud.env.project_id
|
|
83
83
|
end
|
|
84
84
|
|
|
85
85
|
##
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# Copyright
|
|
1
|
+
# Copyright 2017, Google Inc. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
5
5
|
# You may obtain a copy of the License at
|
|
6
6
|
#
|
|
7
|
-
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
8
|
#
|
|
9
9
|
# Unless required by applicable law or agreed to in writing, software
|
|
10
10
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -26,6 +26,7 @@ require "json"
|
|
|
26
26
|
require "pathname"
|
|
27
27
|
|
|
28
28
|
require "google/gax"
|
|
29
|
+
|
|
29
30
|
require "google/cloud/language/v1/language_service_pb"
|
|
30
31
|
|
|
31
32
|
module Google
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.26.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mike Moore
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2017-
|
|
12
|
+
date: 2017-04-01 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: google-cloud-core
|
|
@@ -17,14 +17,14 @@ dependencies:
|
|
|
17
17
|
requirements:
|
|
18
18
|
- - "~>"
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
|
-
version:
|
|
20
|
+
version: '1.0'
|
|
21
21
|
type: :runtime
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
25
|
- - "~>"
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
|
-
version:
|
|
27
|
+
version: '1.0'
|
|
28
28
|
- !ruby/object:Gem::Dependency
|
|
29
29
|
name: google-gax
|
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
212
212
|
version: '0'
|
|
213
213
|
requirements: []
|
|
214
214
|
rubyforge_project:
|
|
215
|
-
rubygems_version: 2.6.
|
|
215
|
+
rubygems_version: 2.6.11
|
|
216
216
|
signing_key:
|
|
217
217
|
specification_version: 4
|
|
218
218
|
summary: API Client library for Google Cloud Natural Language API
|