google-cloud-language 0.25.0 → 0.26.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
  SHA1:
3
- metadata.gz: df16876f8d54ce54873bd66d47d90b207e65bd89
4
- data.tar.gz: f60733814fec29c26b3f8f8a40e8f18de13e911b
3
+ metadata.gz: 4830cbe5b93103ce33cca8c454b75b20d44e56e4
4
+ data.tar.gz: 2abde3909e2c55adb142d8ed5ebec1bddd4b8366
5
5
  SHA512:
6
- metadata.gz: 75373df4a6ac03614b09f34557085f411b455868a7af9cf703f954802b3c63f594370d2c32e662cc481cc368ef27c109817828b78c15f9551f7ef55117bb207b
7
- data.tar.gz: 9a9dd67b2e28594d51a7fb91deff73f5645bff688971c96acc41a3d7d982cef30ed18f98f4698d35d77391ba01ae733bd07d392f1e9994a57bddfca73f0463a4
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/master/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 TextSpan from a V1::TextSpan object.
1018
+ # @private New Mention from a V1::Mention object.
1019
1019
  def self.from_grpc grpc
1020
- new grpc.content, grpc.begin_offset
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/core/environment"
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::Core::Environment.project_id
82
+ Google::Cloud.env.project_id
83
83
  end
84
84
 
85
85
  ##
@@ -1,10 +1,10 @@
1
- # Copyright 2016 Google Inc. All rights reserved.
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
- # http://www.apache.org/licenses/LICENSE-2.0
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
@@ -6,7 +6,9 @@
6
6
  "DEADLINE_EXCEEDED",
7
7
  "UNAVAILABLE"
8
8
  ],
9
- "non_idempotent": []
9
+ "non_idempotent": [
10
+ "UNAVAILABLE"
11
+ ]
10
12
  },
11
13
  "retry_params": {
12
14
  "default": {
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Language
19
- VERSION = "0.25.0"
19
+ VERSION = "0.26.0"
20
20
  end
21
21
  end
22
22
  end
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.25.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-03-04 00:00:00.000000000 Z
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: 0.21.0
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: 0.21.0
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.10
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