grafeas 1.2.0 → 1.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 +4 -4
- data/README.md +3 -3
- data/lib/grafeas/version.rb +1 -1
- data/lib/grafeas.rb +6 -6
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 15078c6d11818df6b566ea6d75ec36bb2b7a785cec1804122dbb6016755b344b
|
|
4
|
+
data.tar.gz: 431625f54ee88560518208e6144a30accc53d5673d7fed960d861241ad9453e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1fbfa2053b47dfe8f523225269066b21023b017587aa02449e27d707f0e06a342c2a8bacd41f0c6ce99a4aa18a0eb42f80ac3f7ee94152fdb5fe0799210a61f7
|
|
7
|
+
data.tar.gz: 18e82d179d9f2d1a1e343867a4cd08c0937071a1d552d425f28595244a881a9641a71bfa0bb3f2d97f1eb1b2f52d48dee1895c53ed692ba8b3e2c9b131f9028e
|
data/README.md
CHANGED
|
@@ -16,7 +16,7 @@ for this library, grafeas, to see the convenience methods for
|
|
|
16
16
|
constructing client objects. Reference documentation for the client objects
|
|
17
17
|
themselves can be found in the client library documentation for the versioned
|
|
18
18
|
client gems:
|
|
19
|
-
[grafeas-v1](https://
|
|
19
|
+
[grafeas-v1](https://cloud.google.com/ruby/docs/reference/grafeas-v1/latest).
|
|
20
20
|
|
|
21
21
|
See also the [Product Documentation](https://grafeas.io)
|
|
22
22
|
for more usage information.
|
|
@@ -38,8 +38,8 @@ See the {file:MIGRATING.md MIGRATING.md} document for more information.
|
|
|
38
38
|
## Enabling Logging
|
|
39
39
|
|
|
40
40
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
|
41
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
|
42
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
|
41
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
|
42
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
|
43
43
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
|
44
44
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
|
45
45
|
|
data/lib/grafeas/version.rb
CHANGED
data/lib/grafeas.rb
CHANGED
|
@@ -29,9 +29,9 @@ module Grafeas
|
|
|
29
29
|
# Create a new client object for Grafeas.
|
|
30
30
|
#
|
|
31
31
|
# By default, this returns an instance of
|
|
32
|
-
# [Grafeas::V1::Grafeas::Client](https://
|
|
33
|
-
# for version V1 of the API.
|
|
34
|
-
# However, you can specify
|
|
32
|
+
# [Grafeas::V1::Grafeas::Client](https://cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Grafeas-Client)
|
|
33
|
+
# for a gRPC client for version V1 of the API.
|
|
34
|
+
# However, you can specify a different API version by passing it in the
|
|
35
35
|
# `version` parameter. If the Grafeas service is
|
|
36
36
|
# supported by that API version, and the corresponding gem is available, the
|
|
37
37
|
# appropriate versioned client will be returned.
|
|
@@ -55,7 +55,7 @@ module Grafeas
|
|
|
55
55
|
#
|
|
56
56
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
57
57
|
# Defaults to `:v1`.
|
|
58
|
-
# @return [
|
|
58
|
+
# @return [::Object] A client object for the specified version.
|
|
59
59
|
#
|
|
60
60
|
def self.grafeas version: :v1, &block
|
|
61
61
|
require "grafeas/#{version.to_s.downcase}"
|
|
@@ -64,8 +64,8 @@ module Grafeas
|
|
|
64
64
|
.constants
|
|
65
65
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
66
66
|
.first
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
service_module = Grafeas.const_get(package_name).const_get(:Grafeas)
|
|
68
|
+
service_module.const_get(:Client).new(&block)
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
|
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: 1.
|
|
4
|
+
version: 1.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:
|
|
11
|
+
date: 2024-01-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-cloud-core
|
|
@@ -30,7 +30,7 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '0.
|
|
33
|
+
version: '0.14'
|
|
34
34
|
- - "<"
|
|
35
35
|
- !ruby/object:Gem::Version
|
|
36
36
|
version: 2.a
|
|
@@ -40,7 +40,7 @@ dependencies:
|
|
|
40
40
|
requirements:
|
|
41
41
|
- - ">="
|
|
42
42
|
- !ruby/object:Gem::Version
|
|
43
|
-
version: '0.
|
|
43
|
+
version: '0.14'
|
|
44
44
|
- - "<"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
46
|
version: 2.a
|
|
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
188
188
|
- !ruby/object:Gem::Version
|
|
189
189
|
version: '0'
|
|
190
190
|
requirements: []
|
|
191
|
-
rubygems_version: 3.3
|
|
191
|
+
rubygems_version: 3.5.3
|
|
192
192
|
signing_key:
|
|
193
193
|
specification_version: 4
|
|
194
194
|
summary: API Client library for the Grafeas API
|