google-cloud-recaptcha_enterprise 0.4.1 → 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: 89a2aa229aef7888a054fa588f52836698b5d5eb456aa5b9c64622966f3dbdf9
4
- data.tar.gz: 84956e8f4c965e004bf0481c674358711e4acf3500660b06c8e213526655fb2a
3
+ metadata.gz: d343f8592e18d5eb2ddf0a5ca46c8f9a8e84db7802f13e06096ecdfdafec5d4d
4
+ data.tar.gz: 72b9d97b62dad046b05d6d00bf64f41d21cf7d782c3ce7bfa3f6d30cb1b8203a
5
5
  SHA512:
6
- metadata.gz: 71633b6321babf97587ce9622754231b8510459f91ab86f0be313ccd8c680b22c3e2c2336f4d1ca953e30c464ea46de7f692f7b7c3b4e674833e3d288fb5e859
7
- data.tar.gz: ad0038c077d508df871ac1a8513902893dfad4fff33ecac07e3135f9e0ae459af2f10abcb0b9ab9743de6c4c6204f5d78a2faafd71619d18a13567615a80b739
6
+ metadata.gz: d7bd5f29ffd7179081e5a856b05ac3c45ff301c4b469cf981e0e7741148a255931f5811ed0b21563d6f808d82a66bdf9a577b6db635c569125fffa2fe4d94bce
7
+ data.tar.gz: 6c77e67694373f671a35fddfa5ef7fcd2849f5fcbc20f4154121366b20498f256c1953691cb76187efc5a212b17bf1fae9c621908858c6a63b918706c2b21148
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Ruby Client for reCAPTCHA Enterprise API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
1
+ # Ruby Client for reCAPTCHA Enterprise API
2
2
 
3
3
  [reCAPTCHA Enterprise API][Product Documentation]:
4
4
 
@@ -21,7 +21,7 @@ module Google
21
21
  # rubocop:disable LineLength
22
22
 
23
23
  ##
24
- # # Ruby Client for reCAPTCHA Enterprise API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
24
+ # # Ruby Client for reCAPTCHA Enterprise API
25
25
  #
26
26
  # [reCAPTCHA Enterprise API][Product Documentation]:
27
27
  #
@@ -22,7 +22,7 @@ module Google
22
22
  # rubocop:disable LineLength
23
23
 
24
24
  ##
25
- # # Ruby Client for reCAPTCHA Enterprise API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
25
+ # # Ruby Client for reCAPTCHA Enterprise API
26
26
  #
27
27
  # [reCAPTCHA Enterprise API][Product Documentation]:
28
28
  #
@@ -194,6 +194,9 @@ module Google
194
194
  google_api_client.freeze
195
195
 
196
196
  headers = { :"x-goog-api-client" => google_api_client }
197
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
198
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
199
+ end
197
200
  headers.merge!(metadata) unless metadata.nil?
198
201
  client_config_file = Pathname.new(__dir__).join(
199
202
  "recaptcha_enterprise_client_config.json"
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module RecaptchaEnterprise
19
- VERSION = "0.4.1".freeze
19
+ VERSION = "0.5.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-recaptcha_enterprise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
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: 2020-01-23 00:00:00.000000000 Z
11
+ date: 2020-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax