grafeas 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 822114dc369eabae017c705fc641b418b2bb95f0234ab241c0891e384df71f97
4
- data.tar.gz: b98c8638b610165abbdc6cddb304823d47986ec35fd1a6dc11bebffaec457a31
3
+ metadata.gz: 74d5cf12c67064ffa316b0c296f164b18549617f6ae5c125e90af7d1d5c5d130
4
+ data.tar.gz: 12dd971cd3f9c4e36ba940e2e9d8ac674490bf23e24e5c056970699d82f73368
5
5
  SHA512:
6
- metadata.gz: 75c84876f762f40d8f9ffef7a840fae9d68f8a9b3f0a1fdfe3e66b99288d7479c5023f9c8e6c8f497ae82b379dbdd023fe4f6f9d23d2ab2c2d85ce130f2c37bf
7
- data.tar.gz: bd9fd78fe36f8e11d5da611ae55a21841256f34be497e6721d401eef67ab5c70aa4f2f274d1679958d2e633d54893c79886bdf3d82d55d6ddec537281ecc24cf
6
+ metadata.gz: e9e3aa376090948e915d0b1b2c2bc65f0b2d509e99ba0bf5156370b1312b3bbc409e9bba3f84f3c6b0e9448b64f8a2431d4d7938bb13f79eea8c18251cb424e0
7
+ data.tar.gz: 5d15ea07728ddda822326a62b5ec16d4a253b3ae67506614f07950116a1eaa5759b6ddc575b15b7bea727fb93533aa0d94a9ce50539e6937f4296f98bbd48d91
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Ruby Client for Container Analysis API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
1
+ # Ruby Client for Container Analysis API
2
2
 
3
3
  [Container Analysis API][Product Documentation]:
4
4
  An implementation of the Grafeas API, which stores, and enables querying and
@@ -19,7 +19,7 @@ require "pathname"
19
19
  # rubocop:disable LineLength
20
20
 
21
21
  ##
22
- # # Ruby Client for Container Analysis API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
22
+ # # Ruby Client for Container Analysis API
23
23
  #
24
24
  # [Container Analysis API][Product Documentation]:
25
25
  # An implementation of the Grafeas API, which stores, and enables querying and
@@ -19,7 +19,7 @@ module Grafeas
19
19
  # rubocop:disable LineLength
20
20
 
21
21
  ##
22
- # # Ruby Client for Container Analysis API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
22
+ # # Ruby Client for Container Analysis API
23
23
  #
24
24
  # [Container Analysis API][Product Documentation]:
25
25
  # An implementation of the Grafeas API, which stores, and enables querying and
@@ -213,6 +213,9 @@ module Grafeas
213
213
  google_api_client.freeze
214
214
 
215
215
  headers = { :"x-goog-api-client" => google_api_client }
216
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
217
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
218
+ end
216
219
  headers.merge!(metadata) unless metadata.nil?
217
220
  client_config_file = Pathname.new(__dir__).join(
218
221
  "grafeas_client_config.json"
@@ -14,5 +14,5 @@
14
14
 
15
15
 
16
16
  module Grafeas
17
- VERSION = "0.2.1".freeze
17
+ VERSION = "0.3.0".freeze
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grafeas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.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