google-cloud-vision 0.23.0 → 0.24.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/vision/project.rb +2 -2
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb +2 -2
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/web_detection.rb +2 -2
- data/lib/google/cloud/vision/v1/doc/google/protobuf/any.rb +13 -3
- data/lib/google/cloud/vision/v1/image_annotator_client.rb +3 -2
- data/lib/google/cloud/vision/v1/image_annotator_client_config.json +3 -1
- data/lib/google/cloud/vision/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: 9bf4ace8e0a98ed237b81ff52efdcdc3df1e143a
|
4
|
+
data.tar.gz: f17e4709edeb2c7a54e956bc79c6508d26cfe2f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e95f22f8d7ba1fbd4a5d99e1b24faec46e25421f4a936ea667b69ce6ee5c5f4a7166667a3131473c0ad626272e63bcd5b4a33d5ac6d679e0c774e88427e6a16
|
7
|
+
data.tar.gz: dfcde1b68676679878eef8552fd7ce4e4210b42360e40bc95b4ff031b9a69bbff910785ef974d68f2b5c2a46422ca783fa271a1ff37bb3599fe92d7b897ec7c7
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[Google Cloud Vision](https://cloud.google.com/vision/) ([docs](https://cloud.google.com/vision/docs)) allows developers to easily integrate vision detection features within applications, including image labeling, face and landmark detection, optical character recognition (OCR), and tagging of explicit content.
|
4
4
|
|
5
|
-
- [google-cloud-vision API documentation](http://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-vision/
|
5
|
+
- [google-cloud-vision API documentation](http://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-vision/latest)
|
6
6
|
- [google-cloud-vision on RubyGems](https://rubygems.org/gems/google-cloud-vision)
|
7
7
|
- [Google Cloud Vision documentation](https://cloud.google.com/vision/docs)
|
8
8
|
|
@@ -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/vision/service"
|
19
19
|
require "google/cloud/vision/credentials"
|
20
20
|
require "google/cloud/vision/annotate"
|
@@ -79,7 +79,7 @@ module Google
|
|
79
79
|
ENV["VISION_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,
|
@@ -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,
|
@@ -39,6 +39,16 @@ module Google
|
|
39
39
|
# foo = any.unpack(Foo.class);
|
40
40
|
# }
|
41
41
|
#
|
42
|
+
# Example 3: Pack and unpack a message in Python.
|
43
|
+
#
|
44
|
+
# foo = Foo(...)
|
45
|
+
# any = Any()
|
46
|
+
# any.Pack(foo)
|
47
|
+
# ...
|
48
|
+
# if any.Is(Foo.DESCRIPTOR):
|
49
|
+
# any.Unpack(foo)
|
50
|
+
# ...
|
51
|
+
#
|
42
52
|
# The pack methods provided by protobuf library will by default use
|
43
53
|
# 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
44
54
|
# methods only use the fully qualified type name after the last '/'
|
@@ -78,10 +88,10 @@ module Google
|
|
78
88
|
# A URL/resource name whose content describes the type of the
|
79
89
|
# serialized protocol buffer message.
|
80
90
|
#
|
81
|
-
# For URLs which use the
|
91
|
+
# For URLs which use the scheme +http+, +https+, or no scheme, the
|
82
92
|
# following restrictions and interpretations apply:
|
83
93
|
#
|
84
|
-
# * If no
|
94
|
+
# * If no scheme is provided, +https+ is assumed.
|
85
95
|
# * The last segment of the URL's path must represent the fully
|
86
96
|
# qualified name of the type (as in +path/google.protobuf.Duration+).
|
87
97
|
# The name should be in a canonical form (e.g., leading "." is
|
@@ -94,7 +104,7 @@ module Google
|
|
94
104
|
# on changes to types. (Use versioned type names to manage
|
95
105
|
# breaking changes.)
|
96
106
|
#
|
97
|
-
#
|
107
|
+
# Schemes other than +http+, +https+ (or the empty scheme) might be
|
98
108
|
# used with implementation specific semantics.
|
99
109
|
# @!attribute [rw] value
|
100
110
|
# @return [String]
|
@@ -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/vision/v1/image_annotator_pb"
|
30
31
|
|
31
32
|
module Google
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-vision
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.24.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
|
@@ -231,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
231
231
|
version: '0'
|
232
232
|
requirements: []
|
233
233
|
rubyforge_project:
|
234
|
-
rubygems_version: 2.6.
|
234
|
+
rubygems_version: 2.6.11
|
235
235
|
signing_key:
|
236
236
|
specification_version: 4
|
237
237
|
summary: API Client library for Google Cloud Vision API
|