google-cloud-language-v1 0.1.4 → 0.2.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: 936aac178886abc68770d67019be866f942b4a1f16b624f5fd4880587be937b3
4
- data.tar.gz: a2144fe05eb2ca589d005bf0638ca8215b68b4eb18d84bf9d42669b2bb2521df
3
+ metadata.gz: a32bffe57472344b689bd2bc23109dee925af780191addd9db10396934a13570
4
+ data.tar.gz: 1da397cc3e165b8a3ee368428eb3c1abe14379fb1a7ff7befafb6645a8481b88
5
5
  SHA512:
6
- metadata.gz: bb3e00d78bfbac81bf41d933d2177c2520d7d385544132b19495598d90e4a66ddbf0a25cc3960aaf56688e87efb9c496e5deda5055d16c00bf32905290dde919
7
- data.tar.gz: 27c90d223a07b928aef8869c7340b4ca2214aec521e087edf68f3e592276d8ddc10d15a039037ac2c6e3421949ffd0d23f0f8873b0f18bf7a5f634b09653c46e
6
+ metadata.gz: 3b52ffeadbdf7c05e6ecee6f9ed6bfdfe8e4097ad71bf608bfb5a9893d2e23aa5ea4d70dde1d0754de36067fd1ab918271fc2ca274db0daec449f7819837831a
7
+ data.tar.gz: 7906437ddbfb6a3871a0b9cedefdc81685c25f04c4609199e020f2bfb46194e578b4d582cfc33add8c79da683fb076169c5b51fcef2b5b94abf5825696f4bf7d
@@ -177,7 +177,8 @@ module Google
177
177
  if credentials.is_a?(String) || credentials.is_a?(Hash)
178
178
  credentials = Credentials.new credentials, scope: @config.scope
179
179
  end
180
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
180
+ @quota_project_id = @config.quota_project
181
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
181
182
 
182
183
  @language_service_stub = ::Gapic::ServiceStub.new(
183
184
  ::Google::Cloud::Language::V1::LanguageService::Stub,
@@ -644,24 +645,28 @@ module Google
644
645
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
645
646
  # trigger a retry.
646
647
  # @return [::Hash]
648
+ # @!attribute [rw] quota_project
649
+ # A separate project against which to charge quota.
650
+ # @return [::String]
647
651
  #
648
652
  class Configuration
649
653
  extend ::Gapic::Config
650
654
 
651
- config_attr :endpoint, "language.googleapis.com", String
652
- config_attr :credentials, nil do |value|
655
+ config_attr :endpoint, "language.googleapis.com", ::String
656
+ config_attr :credentials, nil do |value|
653
657
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
654
658
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
655
659
  allowed.any? { |klass| klass === value }
656
660
  end
657
- config_attr :scope, nil, ::String, ::Array, nil
658
- config_attr :lib_name, nil, ::String, nil
659
- config_attr :lib_version, nil, ::String, nil
660
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
661
- config_attr :interceptors, nil, ::Array, nil
662
- config_attr :timeout, nil, ::Numeric, nil
663
- config_attr :metadata, nil, ::Hash, nil
664
- config_attr :retry_policy, nil, ::Hash, Proc, nil
661
+ config_attr :scope, nil, ::String, ::Array, nil
662
+ config_attr :lib_name, nil, ::String, nil
663
+ config_attr :lib_version, nil, ::String, nil
664
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
665
+ config_attr :interceptors, nil, ::Array, nil
666
+ config_attr :timeout, nil, ::Numeric, nil
667
+ config_attr :metadata, nil, ::Hash, nil
668
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
669
+ config_attr :quota_project, nil, ::String, nil
665
670
 
666
671
  # @private
667
672
  def initialize parent_config = nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Language
23
23
  module V1
24
- VERSION = "0.1.4"
24
+ VERSION = "0.2.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-language-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.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: 2020-05-05 00:00:00.000000000 Z
11
+ date: 2020-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -58,14 +58,42 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '5.10'
61
+ version: '5.14'
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: '5.10'
68
+ version: '5.14'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest-focus
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.1'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest-rg
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '5.2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '5.2'
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: rake
71
99
  requirement: !ruby/object:Gem::Requirement