grafeas 1.1.2 → 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 +9 -9
- data/lib/grafeas/version.rb +1 -1
- data/lib/grafeas.rb +6 -6
- metadata +12 -12
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
@@ -11,12 +11,12 @@ verisoned gems in as dependencies, and provides high-level methods for
|
|
11
11
|
constructing clients. More information on versioned clients can be found below
|
12
12
|
in the section titled *Which client should I use?*.
|
13
13
|
|
14
|
-
View the [Client Library Documentation](https://
|
14
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/grafeas/latest)
|
15
15
|
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
|
|
@@ -63,14 +63,14 @@ end
|
|
63
63
|
|
64
64
|
## Supported Ruby Versions
|
65
65
|
|
66
|
-
This library is supported on Ruby 2.
|
66
|
+
This library is supported on Ruby 2.6+.
|
67
67
|
|
68
68
|
Google provides official support for Ruby versions that are actively supported
|
69
69
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
70
|
-
in security maintenance, and not end of life.
|
71
|
-
|
72
|
-
|
73
|
-
|
70
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
71
|
+
still work, but are unsupported and not recommended. See
|
72
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
73
|
+
support schedule.
|
74
74
|
|
75
75
|
## Which client should I use?
|
76
76
|
|
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
|
@@ -50,28 +50,28 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
53
|
+
version: 1.26.1
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
60
|
+
version: 1.26.1
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '5.
|
67
|
+
version: '5.16'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '5.
|
74
|
+
version: '5.16'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest-focus
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '13.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '13.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: redcarpet
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -181,14 +181,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
181
181
|
requirements:
|
182
182
|
- - ">="
|
183
183
|
- !ruby/object:Gem::Version
|
184
|
-
version: '2.
|
184
|
+
version: '2.6'
|
185
185
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
186
|
requirements:
|
187
187
|
- - ">="
|
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
|