google-cloud-vision 0.22.0 → 0.22.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/vision/service.rb +2 -2
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/geometry.rb +2 -2
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb +3 -3
- data/lib/google/cloud/vision/v1/doc/google/protobuf/any.rb +2 -2
- data/lib/google/cloud/vision/v1/doc/google/protobuf/wrappers.rb +2 -2
- data/lib/google/cloud/vision/v1/doc/google/rpc/status.rb +2 -2
- data/lib/google/cloud/vision/v1/doc/google/type/color.rb +2 -2
- data/lib/google/cloud/vision/v1/doc/google/type/latlng.rb +3 -3
- data/lib/google/cloud/vision/v1/image_annotator_client.rb +14 -11
- data/lib/google/cloud/vision/v1/image_annotator_client_config.json +5 -5
- data/lib/google/cloud/vision/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: 6ae41f26fa335cd0ec9a055716542f405caed2e9
|
4
|
+
data.tar.gz: 355a0a40b3cb78ff3153c5fee062f9698f354242
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 704c57d9fc2b0035f53217d4a81339ad311d5e4733e12d6dee9bc1a0626cebe88d07f2fcda36362234c364d02a28dc080dfe734640b0899b3b00211d458e8107
|
7
|
+
data.tar.gz: 3e1fdbb422795c61079e55fc0df11b288806fa80ec311d3a6ee67cb5520afd8a528ce91602bf2deb3e4bbcd5f939153700c5590c6337795e094e1256bb6c1513
|
@@ -58,8 +58,8 @@ module Google
|
|
58
58
|
channel: channel,
|
59
59
|
timeout: timeout,
|
60
60
|
client_config: client_config,
|
61
|
-
|
62
|
-
|
61
|
+
lib_name: "gccl",
|
62
|
+
lib_version: Google::Cloud::Vision::VERSION)
|
63
63
|
end
|
64
64
|
attr_accessor :mocked_service
|
65
65
|
|
@@ -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,
|
@@ -478,4 +478,4 @@ module Google
|
|
478
478
|
end
|
479
479
|
end
|
480
480
|
end
|
481
|
-
end
|
481
|
+
end
|
@@ -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,
|
@@ -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,
|
@@ -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,
|
@@ -61,4 +61,4 @@ module Google
|
|
61
61
|
# The longitude in degrees. It must be in the range [-180.0, +180.0].
|
62
62
|
class LatLng; end
|
63
63
|
end
|
64
|
-
end
|
64
|
+
end
|
@@ -47,8 +47,6 @@ module Google
|
|
47
47
|
# The default port of the service.
|
48
48
|
DEFAULT_SERVICE_PORT = 443
|
49
49
|
|
50
|
-
CODE_GEN_NAME_VERSION = "gapic/0.1.0".freeze
|
51
|
-
|
52
50
|
DEFAULT_TIMEOUT = 30
|
53
51
|
|
54
52
|
# The scopes needed to make gRPC calls to all of the methods defined in
|
@@ -72,10 +70,6 @@ module Google
|
|
72
70
|
# or the specified config is missing data points.
|
73
71
|
# @param timeout [Numeric]
|
74
72
|
# The default timeout, in seconds, for calls made through this client.
|
75
|
-
# @param app_name [String]
|
76
|
-
# The codename of the calling service.
|
77
|
-
# @param app_version [String]
|
78
|
-
# The version of the calling service.
|
79
73
|
def initialize \
|
80
74
|
service_path: SERVICE_ADDRESS,
|
81
75
|
port: DEFAULT_SERVICE_PORT,
|
@@ -84,8 +78,10 @@ module Google
|
|
84
78
|
scopes: ALL_SCOPES,
|
85
79
|
client_config: {},
|
86
80
|
timeout: DEFAULT_TIMEOUT,
|
87
|
-
app_name:
|
88
|
-
app_version:
|
81
|
+
app_name: nil,
|
82
|
+
app_version: nil,
|
83
|
+
lib_name: nil,
|
84
|
+
lib_version: ""
|
89
85
|
# These require statements are intentionally placed here to initialize
|
90
86
|
# the gRPC module only when it's required.
|
91
87
|
# See https://github.com/googleapis/toolkit/issues/446
|
@@ -93,9 +89,16 @@ module Google
|
|
93
89
|
require "google/cloud/vision/v1/image_annotator_services_pb"
|
94
90
|
|
95
91
|
|
96
|
-
|
97
|
-
"
|
98
|
-
|
92
|
+
if app_name || app_version
|
93
|
+
warn "`app_name` and `app_version` are no longer being used in the request headers."
|
94
|
+
end
|
95
|
+
|
96
|
+
google_api_client = "gl-ruby/#{RUBY_VERSION}"
|
97
|
+
google_api_client << " #{lib_name}/#{lib_version}" if lib_name
|
98
|
+
google_api_client << " gapic/ gax/#{Google::Gax::VERSION}"
|
99
|
+
google_api_client << " grpc/#{GRPC::VERSION}"
|
100
|
+
google_api_client.freeze
|
101
|
+
|
99
102
|
headers = { :"x-goog-api-client" => google_api_client }
|
100
103
|
client_config_file = Pathname.new(__dir__).join(
|
101
104
|
"image_annotator_client_config.json"
|
@@ -2,11 +2,11 @@
|
|
2
2
|
"interfaces": {
|
3
3
|
"google.cloud.vision.v1.ImageAnnotator": {
|
4
4
|
"retry_codes": {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
"idempotent": [
|
6
|
+
"DEADLINE_EXCEEDED",
|
7
|
+
"UNAVAILABLE"
|
8
|
+
],
|
9
|
+
"non_idempotent": []
|
10
10
|
},
|
11
11
|
"retry_params": {
|
12
12
|
"default": {
|
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.22.
|
4
|
+
version: 0.22.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: 2017-
|
12
|
+
date: 2017-03-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|