google-cloud-language 0.20.0 → 0.20.1
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/lib/google-cloud-language.rb +9 -8
- data/lib/google/cloud/language/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e662ca0f0f3c90341046cc7bdb25a941d95bc86b
|
|
4
|
+
data.tar.gz: 01dd5504af762c11b8fe71e4eed451d0b68b55c4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 347bcc57d78145d99008bcfbae3fb6e8c29bf7c68133f7058fdbce3ff3fc650e47b21dddd2e854fcb10f78d1e755a44d42ca68a661823474b987ebf492eead54
|
|
7
|
+
data.tar.gz: 1c9ddff398f52205de5091068c037652490d0254aad3cd6c75b8c225ae7913596643ceed1f8bc6ce4b34b797a9acafd5fa6ec55e4711a547f0389f2db4e5503e
|
|
@@ -38,8 +38,7 @@ module Google
|
|
|
38
38
|
# The default scope is:
|
|
39
39
|
#
|
|
40
40
|
# * `"https://www.googleapis.com/auth/cloud-platform"`
|
|
41
|
-
# @param [Integer] retries
|
|
42
|
-
# error. The default value is `3`. Optional.
|
|
41
|
+
# @param [Integer] retries This option is not currently supported.
|
|
43
42
|
# @param [Integer] timeout Default timeout to use in requests. Optional.
|
|
44
43
|
#
|
|
45
44
|
# @return [Google::Cloud::Language::Project]
|
|
@@ -49,8 +48,10 @@ module Google
|
|
|
49
48
|
#
|
|
50
49
|
# gcloud = Google::Cloud.new
|
|
51
50
|
# language = gcloud.language
|
|
52
|
-
#
|
|
53
|
-
#
|
|
51
|
+
#
|
|
52
|
+
# content = "Darth Vader is the best villain in Star Wars."
|
|
53
|
+
# document = language.document content
|
|
54
|
+
# annotation = document.annotate
|
|
54
55
|
#
|
|
55
56
|
# @example The default scope can be overridden with the `scope` option:
|
|
56
57
|
# require "google/cloud"
|
|
@@ -84,8 +85,7 @@ module Google
|
|
|
84
85
|
# The default scope is:
|
|
85
86
|
#
|
|
86
87
|
# * `"https://www.googleapis.com/auth/cloud-platform"`
|
|
87
|
-
# @param [Integer] retries
|
|
88
|
-
# error. The default value is `3`. Optional.
|
|
88
|
+
# @param [Integer] retries This option is not currently supported.
|
|
89
89
|
# @param [Integer] timeout Default timeout to use in requests. Optional.
|
|
90
90
|
#
|
|
91
91
|
# @return [Google::Cloud::Language::Project]
|
|
@@ -95,8 +95,9 @@ module Google
|
|
|
95
95
|
#
|
|
96
96
|
# language = Google::Cloud.language
|
|
97
97
|
#
|
|
98
|
-
#
|
|
99
|
-
#
|
|
98
|
+
# content = "Darth Vader is the best villain in Star Wars."
|
|
99
|
+
# document = language.document content
|
|
100
|
+
# annotation = document.annotate
|
|
100
101
|
#
|
|
101
102
|
def self.language project = nil, keyfile = nil, scope: nil, retries: nil,
|
|
102
103
|
timeout: nil
|
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.20.
|
|
4
|
+
version: 0.20.1
|
|
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: 2016-08-
|
|
12
|
+
date: 2016-08-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: google-cloud-core
|