google-cloud-vision 0.36.0 → 0.37.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
  SHA256:
3
- metadata.gz: 16ec1f0926e5b6a774f1be8ed2366046fdc386818ef233542a321ec4df75f827
4
- data.tar.gz: d8e8c9d59d12e377409d9aa031e2d3876ddcdfaf00dddbafcdee6b283dca2b14
3
+ metadata.gz: 9d2d2ad001aee21e64db322f669b2cdf21aa2b3570ae010367c93e83ec579e4d
4
+ data.tar.gz: 07ffbd6d0ef10b675bf797aab3037489f49e7336fc39ed11ef06c2f6f73696a7
5
5
  SHA512:
6
- metadata.gz: 881f30276e7dad4af98a59ef37e81d35ca5f45504007981c29384d206f20fbd5acb1451aca0fad6cffb5e7f861886e74481d53ebbbde282bb473fa8333f45eb2
7
- data.tar.gz: 9881ac665c124e85c5322e2a53796c4411119633bf0d92a1502172d070d7d47cacdc9f50ad8ecaf5d159e9f07181000bcd57cda076dbf55c48d1c737007ff2d2
6
+ metadata.gz: 7ff5cf3076ecbc6ac3d479493582757dc19d36797fb02ae74c032be6b93ef1243c96fa8518064fecf359dd761943173636e2463583027edf25cf81af67c47948
7
+ data.tar.gz: e3b979eb1231f0dd1f480a0a0d575153fedb9faf56141b57a0aa2959caaac8004474d3a2582181180497607e2b5669ef76999f35481ea7e9dd01351e2e8736dd
@@ -26,7 +26,7 @@ export VISION_CREDENTIALS=/path/to/json`
26
26
  ```ruby
27
27
  require "google/cloud/vision"
28
28
 
29
- client = Google::Cloud::Vision.new
29
+ client = Google::Cloud::Vision::ImageAnnotator.new
30
30
  ```
31
31
 
32
32
  ## Project and Credential Lookup
@@ -41,7 +41,7 @@ code.
41
41
  1. Specify project ID in method arguments
42
42
  2. Specify project ID in configuration
43
43
  3. Discover project ID in environment variables
44
- 4. Discover GCE project ID
44
+ 4. Discover GCP project ID
45
45
  5. Discover project ID in credentials JSON
46
46
 
47
47
  **Credentials** are discovered in the following order:
@@ -51,36 +51,14 @@ code.
51
51
  3. Discover credentials path in environment variables
52
52
  4. Discover credentials JSON in environment variables
53
53
  5. Discover credentials file in the Cloud SDK's path
54
- 6. Discover GCE credentials
54
+ 6. Discover GCP credentials
55
55
 
56
56
  ### Google Cloud Platform environments
57
57
 
58
- While running on Google Cloud Platform environments such as Google Compute
59
- Engine, Google App Engine and Google Kubernetes Engine, no extra work is needed.
60
- The **Project ID** and **Credentials** and are discovered automatically. Code
61
- should be written as if already authenticated. Just be sure when you [set up the
62
- GCE instance][gce-how-to], you add the correct scopes for the APIs you want to
63
- access. For example:
64
-
65
- * **All APIs**
66
- * `https://www.googleapis.com/auth/cloud-platform`
67
- * `https://www.googleapis.com/auth/cloud-platform.read-only`
68
- * **BigQuery**
69
- * `https://www.googleapis.com/auth/bigquery`
70
- * `https://www.googleapis.com/auth/bigquery.insertdata`
71
- * **Compute Engine**
72
- * `https://www.googleapis.com/auth/compute`
73
- * **Datastore**
74
- * `https://www.googleapis.com/auth/datastore`
75
- * `https://www.googleapis.com/auth/userinfo.email`
76
- * **DNS**
77
- * `https://www.googleapis.com/auth/ndev.clouddns.readwrite`
78
- * **Pub/Sub**
79
- * `https://www.googleapis.com/auth/pubsub`
80
- * **Storage**
81
- * `https://www.googleapis.com/auth/devstorage.full_control`
82
- * `https://www.googleapis.com/auth/devstorage.read_only`
83
- * `https://www.googleapis.com/auth/devstorage.read_write`
58
+ When running on Google Cloud Platform (GCP), including Google Compute Engine (GCE),
59
+ Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud Functions
60
+ (GCF) and Cloud Run, the **Project ID** and **Credentials** and are discovered
61
+ automatically. Code should be written as if already authenticated.
84
62
 
85
63
  ### Environment Variables
86
64
 
@@ -112,7 +90,7 @@ require "google/cloud/vision"
112
90
  ENV["VISION_PROJECT"] = "my-project-id"
113
91
  ENV["VISION_CREDENTIALS"] = "path/to/keyfile.json"
114
92
 
115
- client = Google::Cloud::Vision.new
93
+ client = Google::Cloud::Vision::ImageAnnotator.new
116
94
  ```
117
95
 
118
96
  ### Configuration
@@ -127,7 +105,7 @@ Google::Cloud::Vision.configure do |config|
127
105
  config.credentials = "path/to/keyfile.json"
128
106
  end
129
107
 
130
- client = Google::Cloud::Vision.new
108
+ client = Google::Cloud::Vision::ImageAnnotator.new
131
109
  ```
132
110
 
133
111
  ### Cloud SDK
data/README.md CHANGED
@@ -84,11 +84,11 @@ end
84
84
 
85
85
  ## Supported Ruby Versions
86
86
 
87
- This library is supported on Ruby 2.3+.
87
+ This library is supported on Ruby 2.4+.
88
88
 
89
89
  Google provides official support for Ruby versions that are actively supported
90
90
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
91
- in security maintenance, and not end of life. Currently, this means Ruby 2.3
91
+ in security maintenance, and not end of life. Currently, this means Ruby 2.4
92
92
  and later. Older versions of Ruby _may_ still work, but are unsupported and not
93
93
  recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
94
94
  about the Ruby support schedule.
@@ -8,6 +8,7 @@ require 'google/cloud/vision/v1/geometry_pb'
8
8
  require 'google/cloud/vision/v1/product_search_service_pb'
9
9
  require 'google/protobuf/timestamp_pb'
10
10
  require 'google/api/annotations_pb'
11
+ require 'google/api/resource_pb'
11
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
13
  add_message "google.cloud.vision.v1.ProductSearchParams" do
13
14
  optional :bounding_poly, :message, 9, "google.cloud.vision.v1.BoundingPoly"
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Vision
19
- VERSION = "0.36.0".freeze
19
+ VERSION = "0.37.0".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-vision
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.0
4
+ version: 0.37.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-03 00:00:00.000000000 Z
11
+ date: 2019-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.7'
19
+ version: '1.8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.7'
26
+ version: '1.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -53,19 +53,19 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rubocop
56
+ name: google-style
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.64.0
61
+ version: 1.24.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.64.0
68
+ version: 1.24.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -180,14 +180,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
180
180
  requirements:
181
181
  - - ">="
182
182
  - !ruby/object:Gem::Version
183
- version: 2.0.0
183
+ version: '2.4'
184
184
  required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  requirements:
186
186
  - - ">="
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0'
189
189
  requirements: []
190
- rubygems_version: 3.0.4
190
+ rubygems_version: 3.0.6
191
191
  signing_key:
192
192
  specification_version: 4
193
193
  summary: API Client library for Cloud Vision API