google-cloud-document_ai-v1beta3 0.4.0 → 0.5.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: cb2c36f89ae49cf18e3f7f3bf2e82faf8d538c743934c088eb33efb90138bbe4
4
- data.tar.gz: 608dabf586885aaea7fc2f2e497fbaa747ba14238ee9d2309ae6ac5c5d4ac47b
3
+ metadata.gz: 92932d23f129d023c3e281e0df7a35a3542f5ab0e1836ce3654bc13905224b27
4
+ data.tar.gz: b16d3f7ddddedbf4cfa635a6d2734c055bbe8188aeaf38a3d8735dc06f6c4cc1
5
5
  SHA512:
6
- metadata.gz: 69296d72c0fd700c02e88e645783fbd29a83e447764f1bb774479cdc817cbfbf1dfcc70c2492335893bf8e8c30d0752de3bc48462d453613f0fd0486c99ad7b5
7
- data.tar.gz: af6c3a3a0e05e3878f74498f1fbc96e252b73f5e534dd98bdc42bae16e9ffc777c3ef06689dd0f3f80436397fe836cc41d72d0826586969a744feeafbc2ea898
6
+ metadata.gz: 7a567756d93fdd27b3b4bc92f0299eecbf054f52260a221557698d3a98e212e291d40aaada921c8193072af4772d7ba98cd93c882fe5bd7acd4333a458fe4482
7
+ data.tar.gz: 1ffbcd2b9b246621ac6f907768c4a5c10c17e10511b9bf25339bd940c6943c7241b34fcc03fc4e7a757fe3121e72cb6f53ce3eb527474f2ecac922647275df43
data/README.md CHANGED
@@ -71,11 +71,11 @@ end
71
71
 
72
72
  ## Supported Ruby Versions
73
73
 
74
- This library is supported on Ruby 2.4+.
74
+ This library is supported on Ruby 2.5+.
75
75
 
76
76
  Google provides official support for Ruby versions that are actively supported
77
77
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.4
78
+ in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
79
  and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
80
  recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
81
  about the Ruby support schedule.
@@ -63,7 +63,7 @@ module Google
63
63
  parent_config = while namespace.any?
64
64
  parent_name = namespace.join "::"
65
65
  parent_const = const_get parent_name
66
- break parent_const.configure if parent_const&.respond_to? :configure
66
+ break parent_const.configure if parent_const.respond_to? :configure
67
67
  namespace.pop
68
68
  end
69
69
  default_config = Client::Configuration.new parent_config
@@ -71,25 +71,25 @@ module Google
71
71
  default_config.rpcs.process_document.timeout = 120.0
72
72
  default_config.rpcs.process_document.retry_policy = {
73
73
  initial_delay: 0.1,
74
- max_delay: 60.0,
75
- multiplier: 1.3,
76
- retry_codes: [4, 14]
74
+ max_delay: 60.0,
75
+ multiplier: 1.3,
76
+ retry_codes: [4, 14]
77
77
  }
78
78
 
79
79
  default_config.rpcs.batch_process_documents.timeout = 120.0
80
80
  default_config.rpcs.batch_process_documents.retry_policy = {
81
81
  initial_delay: 0.1,
82
- max_delay: 60.0,
83
- multiplier: 1.3,
84
- retry_codes: [4, 14]
82
+ max_delay: 60.0,
83
+ multiplier: 1.3,
84
+ retry_codes: [4, 14]
85
85
  }
86
86
 
87
87
  default_config.rpcs.review_document.timeout = 120.0
88
88
  default_config.rpcs.review_document.retry_policy = {
89
89
  initial_delay: 0.1,
90
- max_delay: 60.0,
91
- multiplier: 1.3,
92
- retry_codes: [4, 14]
90
+ max_delay: 60.0,
91
+ multiplier: 1.3,
92
+ retry_codes: [4, 14]
93
93
  }
94
94
 
95
95
  default_config
@@ -158,7 +158,7 @@ module Google
158
158
  enable_self_signed_jwt = @config.scope == Client.configure.scope &&
159
159
  @config.endpoint == Client.configure.endpoint &&
160
160
  !@config.endpoint.split(".").first.include?("-")
161
- credentials ||= Credentials.default scope: @config.scope,
161
+ credentials ||= Credentials.default scope: @config.scope,
162
162
  enable_self_signed_jwt: enable_self_signed_jwt
163
163
  if credentials.is_a?(String) || credentials.is_a?(Hash)
164
164
  credentials = Credentials.new credentials, scope: @config.scope
@@ -508,7 +508,7 @@ module Google
508
508
  config_attr :scope, nil, ::String, ::Array, nil
509
509
  config_attr :lib_name, nil, ::String, nil
510
510
  config_attr :lib_version, nil, ::String, nil
511
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
511
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
512
512
  config_attr :interceptors, nil, ::Array, nil
513
513
  config_attr :timeout, nil, ::Numeric, nil
514
514
  config_attr :metadata, nil, ::Hash, nil
@@ -529,7 +529,7 @@ module Google
529
529
  def rpcs
530
530
  @rpcs ||= begin
531
531
  parent_rpcs = nil
532
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
532
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
533
533
  Rpcs.new parent_rpcs
534
534
  end
535
535
  end
@@ -570,11 +570,11 @@ module Google
570
570
 
571
571
  # @private
572
572
  def initialize parent_rpcs = nil
573
- process_document_config = parent_rpcs&.process_document if parent_rpcs&.respond_to? :process_document
573
+ process_document_config = parent_rpcs.process_document if parent_rpcs.respond_to? :process_document
574
574
  @process_document = ::Gapic::Config::Method.new process_document_config
575
- batch_process_documents_config = parent_rpcs&.batch_process_documents if parent_rpcs&.respond_to? :batch_process_documents
575
+ batch_process_documents_config = parent_rpcs.batch_process_documents if parent_rpcs.respond_to? :batch_process_documents
576
576
  @batch_process_documents = ::Gapic::Config::Method.new batch_process_documents_config
577
- review_document_config = parent_rpcs&.review_document if parent_rpcs&.respond_to? :review_document
577
+ review_document_config = parent_rpcs.review_document if parent_rpcs.respond_to? :review_document
578
578
  @review_document = ::Gapic::Config::Method.new review_document_config
579
579
 
580
580
  yield self if block_given?
@@ -560,7 +560,7 @@ module Google
560
560
  config_attr :scope, nil, ::String, ::Array, nil
561
561
  config_attr :lib_name, nil, ::String, nil
562
562
  config_attr :lib_version, nil, ::String, nil
563
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
563
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
564
564
  config_attr :interceptors, nil, ::Array, nil
565
565
  config_attr :timeout, nil, ::Numeric, nil
566
566
  config_attr :metadata, nil, ::Hash, nil
@@ -581,7 +581,7 @@ module Google
581
581
  def rpcs
582
582
  @rpcs ||= begin
583
583
  parent_rpcs = nil
584
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
584
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
585
585
  Rpcs.new parent_rpcs
586
586
  end
587
587
  end
@@ -632,15 +632,15 @@ module Google
632
632
 
633
633
  # @private
634
634
  def initialize parent_rpcs = nil
635
- list_operations_config = parent_rpcs&.list_operations if parent_rpcs&.respond_to? :list_operations
635
+ list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
636
636
  @list_operations = ::Gapic::Config::Method.new list_operations_config
637
- get_operation_config = parent_rpcs&.get_operation if parent_rpcs&.respond_to? :get_operation
637
+ get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
638
638
  @get_operation = ::Gapic::Config::Method.new get_operation_config
639
- delete_operation_config = parent_rpcs&.delete_operation if parent_rpcs&.respond_to? :delete_operation
639
+ delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation
640
640
  @delete_operation = ::Gapic::Config::Method.new delete_operation_config
641
- cancel_operation_config = parent_rpcs&.cancel_operation if parent_rpcs&.respond_to? :cancel_operation
641
+ cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
642
642
  @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
643
- wait_operation_config = parent_rpcs&.wait_operation if parent_rpcs&.respond_to? :wait_operation
643
+ wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation
644
644
  @wait_operation = ::Gapic::Config::Method.new wait_operation_config
645
645
 
646
646
  yield self if block_given?
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DocumentAI
23
23
  module V1beta3
24
- VERSION = "0.4.0"
24
+ VERSION = "0.5.0"
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-document_ai-v1beta3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.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: 2021-02-25 00:00:00.000000000 Z
11
+ date: 2021-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.24.0
47
+ version: 1.25.1
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.24.0
54
+ version: 1.25.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -209,14 +209,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
209
209
  requirements:
210
210
  - - ">="
211
211
  - !ruby/object:Gem::Version
212
- version: '2.4'
212
+ version: '2.5'
213
213
  required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  requirements:
215
215
  - - ">="
216
216
  - !ruby/object:Gem::Version
217
217
  version: '0'
218
218
  requirements: []
219
- rubygems_version: 3.2.11
219
+ rubygems_version: 3.2.13
220
220
  signing_key:
221
221
  specification_version: 4
222
222
  summary: API Client library for the Document AI V1beta3 API