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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5bdbd68499f14f96adeff2ab43a46eb094c2cbc1
4
- data.tar.gz: 3ac3f507e6960ba31dff0c6723320e49fab0ac6c
3
+ metadata.gz: 9bf4ace8e0a98ed237b81ff52efdcdc3df1e143a
4
+ data.tar.gz: f17e4709edeb2c7a54e956bc79c6508d26cfe2f8
5
5
  SHA512:
6
- metadata.gz: 98d7660ad9d58a22e402df61af630b8014c1c59c27754383c1d40536e9b6c014bedabbef579e29f08c261ac3ad6b18855c6bf1505585fb244637a7469aa63b4f
7
- data.tar.gz: 2e53399f5efdd0f1712cf6877f7617c97951bade9f4c2fbfa519fb31b4f5759f31cddf2d10c957b84b0d5e13a0a83c93c30acc5171e80aac5eb18020c86b2a5e
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/master/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/core/environment"
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::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,
@@ -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,
@@ -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 schema +http+, +https+, or no schema, 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 schema is provided, +https+ is assumed.
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
- # Schemas other than +http+, +https+ (or the empty schema) might be
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 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/vision/v1/image_annotator_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 Vision
19
- VERSION = "0.23.0"
19
+ VERSION = "0.24.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-vision
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.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-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
@@ -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.10
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