google-cloud-vision-v1 0.2.0 → 0.2.1

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: c04c7b847c530b0a56307c46e8772f6627f5832ea80372e597838b0c1570dcd0
4
- data.tar.gz: '09421acdf79ee73cdefca95f5cbc41fea92702b426af9b42724411a1dfc78ce5'
3
+ metadata.gz: 5c2fc098b59128d6350a0b3a2cd4aa6290511de5046a344ccb7399ffaa043724
4
+ data.tar.gz: dd3245d8a4797d6b346506d24315fec0e96bb1254376edb3ec26e1ff682467e8
5
5
  SHA512:
6
- metadata.gz: '0845ca9a8bd9efb6df159b8231be5da8115d71b6e63c007be059e9c59d7dc799c1359256c3b67763b8e0eac982c2a934759843884888c3c5d2950f9b3e5b4a47'
7
- data.tar.gz: a8e5a2a357e39a8209ba4098535f16e65269b7ecf592eed7cf778998116fc40ff4eaaf39526bda1df67d4f84d1431629080c3d58b661a22fc8949c5daefaa5c0
6
+ metadata.gz: 48c9ed82a393767a376fc93ac192c87bdeb7b95b1566b8e6e93c35a24bf394218782e44135a337cb0f34ef4a54b8bcf1dc42941784446457bc16eed47945d204
7
+ data.tar.gz: 118c6a52e7ec72452c838171210b5c82e01d39d4c8632884bee2b1702c8f1125431c608fd07643fdb833957038e35cc70f7a8f804fe6fe28dfa051027cd54537
@@ -85,6 +85,8 @@ module Google
85
85
  if credentials.is_a?(String) || credentials.is_a?(Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
+ @quota_project_id = @config.quota_project
89
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
88
90
 
89
91
  @operations_stub = ::Gapic::ServiceStub.new(
90
92
  ::Google::Longrunning::Operations::Stub,
@@ -85,6 +85,8 @@ module Google
85
85
  if credentials.is_a?(String) || credentials.is_a?(Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
+ @quota_project_id = @config.quota_project
89
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
88
90
 
89
91
  @operations_stub = ::Gapic::ServiceStub.new(
90
92
  ::Google::Longrunning::Operations::Stub,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Vision
23
23
  module V1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.2.1"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-vision-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-21 00:00:00.000000000 Z
11
+ date: 2020-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -163,7 +163,6 @@ files:
163
163
  - LICENSE.md
164
164
  - README.md
165
165
  - lib/google-cloud-vision-v1.rb
166
- - lib/google/cloud/common_resources_pb.rb
167
166
  - lib/google/cloud/vision/v1.rb
168
167
  - lib/google/cloud/vision/v1/geometry_pb.rb
169
168
  - lib/google/cloud/vision/v1/image_annotator.rb
@@ -1,15 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/common_resources.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'google/api/resource_pb'
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
9
- end
10
- end
11
-
12
- module Google
13
- module Cloud
14
- end
15
- end