google-cloud-pubsub 0.33.1 → 2.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +41 -40
- data/CHANGELOG.md +610 -0
- data/CONTRIBUTING.md +328 -116
- data/EMULATOR.md +2 -2
- data/LOGGING.md +95 -3
- data/OVERVIEW.md +183 -90
- data/TROUBLESHOOTING.md +2 -8
- data/lib/google/cloud/pubsub/acknowledge_result.rb +79 -0
- data/lib/google/cloud/pubsub/async_publisher/batch.rb +306 -0
- data/lib/google/cloud/pubsub/async_publisher.rb +270 -161
- data/lib/google/cloud/pubsub/batch_publisher.rb +65 -33
- data/lib/google/cloud/pubsub/convert.rb +36 -8
- data/lib/google/cloud/pubsub/credentials.rb +7 -5
- data/lib/google/cloud/pubsub/errors.rb +93 -0
- data/lib/google/cloud/pubsub/flow_controller.rb +139 -0
- data/lib/google/cloud/pubsub/message.rb +52 -7
- data/lib/google/cloud/pubsub/policy.rb +15 -12
- data/lib/google/cloud/pubsub/project.rb +341 -75
- data/lib/google/cloud/pubsub/publish_result.rb +9 -2
- data/lib/google/cloud/pubsub/received_message.rb +182 -20
- data/lib/google/cloud/pubsub/retry_policy.rb +88 -0
- data/lib/google/cloud/pubsub/schema/list.rb +180 -0
- data/lib/google/cloud/pubsub/schema.rb +310 -0
- data/lib/google/cloud/pubsub/service.rb +285 -258
- data/lib/google/cloud/pubsub/snapshot/list.rb +14 -14
- data/lib/google/cloud/pubsub/snapshot.rb +17 -12
- data/lib/google/cloud/pubsub/subscriber/enumerator_queue.rb +4 -4
- data/lib/google/cloud/pubsub/subscriber/inventory.rb +74 -33
- data/lib/google/cloud/pubsub/subscriber/sequencer.rb +115 -0
- data/lib/google/cloud/pubsub/subscriber/stream.rb +138 -91
- data/lib/google/cloud/pubsub/subscriber/timed_unary_buffer.rb +397 -0
- data/lib/google/cloud/pubsub/subscriber.rb +213 -51
- data/lib/google/cloud/pubsub/subscription/list.rb +16 -16
- data/lib/google/cloud/pubsub/subscription/push_config.rb +268 -0
- data/lib/google/cloud/pubsub/subscription.rb +827 -137
- data/lib/google/cloud/pubsub/topic/list.rb +14 -14
- data/lib/google/cloud/pubsub/topic.rb +565 -93
- data/lib/google/cloud/pubsub/version.rb +4 -2
- data/lib/google/cloud/pubsub.rb +50 -41
- data/lib/google-cloud-pubsub.rb +26 -29
- metadata +59 -53
- data/lib/google/cloud/pubsub/subscriber/async_stream_pusher.rb +0 -222
- data/lib/google/cloud/pubsub/subscriber/async_unary_pusher.rb +0 -270
- data/lib/google/cloud/pubsub/v1/credentials.rb +0 -39
- data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/iam_policy.rb +0 -63
- data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/policy.rb +0 -128
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/field_mask.rb +0 -230
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/timestamp.rb +0 -109
- data/lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb +0 -628
- data/lib/google/cloud/pubsub/v1/publisher_client.rb +0 -734
- data/lib/google/cloud/pubsub/v1/publisher_client_config.json +0 -105
- data/lib/google/cloud/pubsub/v1/subscriber_client.rb +0 -1267
- data/lib/google/cloud/pubsub/v1/subscriber_client_config.json +0 -144
- data/lib/google/cloud/pubsub/v1.rb +0 -17
- data/lib/google/pubsub/v1/pubsub_pb.rb +0 -222
- data/lib/google/pubsub/v1/pubsub_services_pb.rb +0 -192
data/lib/google/cloud/pubsub.rb
CHANGED
@@ -32,7 +32,7 @@ module Google
|
|
32
32
|
#
|
33
33
|
# See {file:OVERVIEW.md Google Cloud Pub/Sub Overview}.
|
34
34
|
#
|
35
|
-
module
|
35
|
+
module PubSub
|
36
36
|
##
|
37
37
|
# Creates a new object for connecting to the Pub/Sub service.
|
38
38
|
# Each call creates a new connection.
|
@@ -45,7 +45,7 @@ module Google
|
|
45
45
|
# credentials is used.
|
46
46
|
# @param [String, Hash, Google::Auth::Credentials] credentials The path to
|
47
47
|
# the keyfile as a String, the contents of the keyfile as a Hash, or a
|
48
|
-
# Google::Auth::Credentials object. (See {
|
48
|
+
# Google::Auth::Credentials object. (See {PubSub::Credentials})
|
49
49
|
# @param [String, Array<String>] scope The OAuth 2.0 scopes controlling
|
50
50
|
# the set of resources and operations that the connection can access.
|
51
51
|
# See [Using OAuth 2.0 to Access Google
|
@@ -54,82 +54,86 @@ module Google
|
|
54
54
|
# The default scope is:
|
55
55
|
#
|
56
56
|
# * `https://www.googleapis.com/auth/pubsub`
|
57
|
-
# @param [
|
58
|
-
# @param [
|
59
|
-
#
|
57
|
+
# @param [Numeric] timeout Default timeout to use in requests. Optional.
|
58
|
+
# @param [String] endpoint Override of the endpoint host name. Optional.
|
59
|
+
# If the param is nil, uses the default endpoint.
|
60
60
|
# @param [String] emulator_host Pub/Sub emulator host. Optional.
|
61
61
|
# If the param is nil, uses the value of the `emulator_host` config.
|
62
62
|
# @param [String] project Alias for the `project_id` argument. Deprecated.
|
63
63
|
# @param [String] keyfile Alias for the `credentials` argument.
|
64
64
|
# Deprecated.
|
65
65
|
#
|
66
|
-
# @return [Google::Cloud::
|
66
|
+
# @return [Google::Cloud::PubSub::Project]
|
67
67
|
#
|
68
68
|
# @example
|
69
69
|
# require "google/cloud/pubsub"
|
70
70
|
#
|
71
|
-
# pubsub = Google::Cloud.
|
71
|
+
# pubsub = Google::Cloud::PubSub.new
|
72
72
|
#
|
73
73
|
# topic = pubsub.topic "my-topic"
|
74
74
|
# topic.publish "task completed"
|
75
75
|
#
|
76
|
-
def self.new project_id: nil,
|
77
|
-
|
76
|
+
def self.new project_id: nil,
|
77
|
+
credentials: nil,
|
78
|
+
scope: nil,
|
79
|
+
timeout: nil,
|
80
|
+
endpoint: nil,
|
81
|
+
emulator_host: nil,
|
82
|
+
project: nil,
|
78
83
|
keyfile: nil
|
79
|
-
project_id
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
scope ||= configure.scope
|
84
|
-
timeout ||= configure.timeout
|
85
|
-
client_config ||= configure.client_config
|
84
|
+
project_id ||= (project || default_project_id)
|
85
|
+
scope ||= configure.scope
|
86
|
+
timeout ||= configure.timeout
|
87
|
+
endpoint ||= configure.endpoint
|
86
88
|
emulator_host ||= configure.emulator_host
|
89
|
+
|
87
90
|
if emulator_host
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
)
|
94
|
-
)
|
91
|
+
project_id = project_id.to_s # Always cast to a string
|
92
|
+
raise ArgumentError, "project_id is missing" if project_id.empty?
|
93
|
+
|
94
|
+
service = PubSub::Service.new project_id, :this_channel_is_insecure, host: emulator_host, timeout: timeout
|
95
|
+
return PubSub::Project.new service
|
95
96
|
end
|
96
97
|
|
97
98
|
credentials ||= (keyfile || default_credentials(scope: scope))
|
98
99
|
unless credentials.is_a? Google::Auth::Credentials
|
99
|
-
credentials =
|
100
|
+
credentials = PubSub::Credentials.new credentials, scope: scope
|
100
101
|
end
|
101
102
|
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
103
|
+
project_id ||= credentials.project_id if credentials.respond_to? :project_id
|
104
|
+
project_id = project_id.to_s # Always cast to a string
|
105
|
+
raise ArgumentError, "project_id is missing" if project_id.empty?
|
106
|
+
|
107
|
+
service = PubSub::Service.new project_id, credentials, host: endpoint, timeout: timeout
|
108
|
+
PubSub::Project.new service
|
108
109
|
end
|
109
110
|
|
110
111
|
##
|
111
|
-
# Configure the Google Cloud
|
112
|
+
# Configure the Google Cloud PubSub library.
|
112
113
|
#
|
113
|
-
# The following
|
114
|
+
# The following PubSub configuration parameters are supported:
|
114
115
|
#
|
115
|
-
# * `project_id` - (String) Identifier for a
|
116
|
+
# * `project_id` - (String) Identifier for a PubSub project. (The
|
116
117
|
# parameter `project` is considered deprecated, but may also be used.)
|
117
118
|
# * `credentials` - (String, Hash, Google::Auth::Credentials) The path to
|
118
119
|
# the keyfile as a String, the contents of the keyfile as a Hash, or a
|
119
|
-
# Google::Auth::Credentials object. (See {
|
120
|
+
# Google::Auth::Credentials object. (See {PubSub::Credentials}) (The
|
120
121
|
# parameter `keyfile` is considered deprecated, but may also be used.)
|
121
122
|
# * `scope` - (String, Array<String>) The OAuth 2.0 scopes controlling
|
122
123
|
# the set of resources and operations that the connection can access.
|
123
|
-
# * `
|
124
|
-
#
|
125
|
-
# * `timeout` - (
|
126
|
-
# * `
|
127
|
-
#
|
124
|
+
# * `quota_project` - (String) The project ID for a project that can be
|
125
|
+
# used by client libraries for quota and billing purposes.
|
126
|
+
# * `timeout` - (Numeric) Default timeout to use in requests.
|
127
|
+
# * `endpoint` - (String) Override of the endpoint host name, or `nil`
|
128
|
+
# to use the default endpoint.
|
128
129
|
# * `emulator_host` - (String) Host name of the emulator. Defaults to
|
129
130
|
# `ENV["PUBSUB_EMULATOR_HOST"]`
|
131
|
+
# * `on_error` - (Proc) A Proc to be run when an error is encountered
|
132
|
+
# on a background thread. The Proc must take the error object as the
|
133
|
+
# single argument. (See {Subscriber.on_error}.)
|
130
134
|
#
|
131
135
|
# @return [Google::Cloud::Config] The configuration object the
|
132
|
-
# Google::Cloud::
|
136
|
+
# Google::Cloud::PubSub library uses.
|
133
137
|
#
|
134
138
|
def self.configure
|
135
139
|
yield Google::Cloud.configure.pubsub if block_given?
|
@@ -150,8 +154,13 @@ module Google
|
|
150
154
|
def self.default_credentials scope: nil
|
151
155
|
Google::Cloud.configure.pubsub.credentials ||
|
152
156
|
Google::Cloud.configure.credentials ||
|
153
|
-
|
157
|
+
PubSub::Credentials.default(scope: scope)
|
154
158
|
end
|
155
159
|
end
|
160
|
+
|
161
|
+
## Legacy veneer namespace
|
162
|
+
Pubsub = PubSub unless const_defined? :Pubsub
|
156
163
|
end
|
164
|
+
## Legacy generated client namespace
|
165
|
+
Pubsub = Cloud::PubSub unless const_defined? :Pubsub
|
157
166
|
end
|
data/lib/google-cloud-pubsub.rb
CHANGED
@@ -41,11 +41,9 @@ module Google
|
|
41
41
|
# The default scope is:
|
42
42
|
#
|
43
43
|
# * `https://www.googleapis.com/auth/pubsub`
|
44
|
-
# @param [
|
45
|
-
# @param [Hash] client_config A hash of values to override the default
|
46
|
-
# behavior of the API client. Optional.
|
44
|
+
# @param [Numeric] timeout Default timeout to use in requests. Optional.
|
47
45
|
#
|
48
|
-
# @return [Google::Cloud::
|
46
|
+
# @return [Google::Cloud::PubSub::Project]
|
49
47
|
#
|
50
48
|
# @example
|
51
49
|
# require "google/cloud"
|
@@ -62,10 +60,9 @@ module Google
|
|
62
60
|
# platform_scope = "https://www.googleapis.com/auth/cloud-platform"
|
63
61
|
# pubsub = gcloud.pubsub scope: platform_scope
|
64
62
|
#
|
65
|
-
def pubsub scope: nil, timeout: nil
|
66
|
-
|
67
|
-
|
68
|
-
client_config: client_config
|
63
|
+
def pubsub scope: nil, timeout: nil
|
64
|
+
timeout ||= @timeout
|
65
|
+
Google::Cloud.pubsub @project, @keyfile, scope: scope, timeout: timeout
|
69
66
|
end
|
70
67
|
|
71
68
|
##
|
@@ -80,7 +77,8 @@ module Google
|
|
80
77
|
# credentials is used.
|
81
78
|
# @param [String, Hash, Google::Auth::Credentials] credentials The path to
|
82
79
|
# the keyfile as a String, the contents of the keyfile as a Hash, or a
|
83
|
-
# Google::Auth::Credentials object.
|
80
|
+
# Google::Auth::Credentials object.
|
81
|
+
# (See {Google::Cloud::PubSub::Credentials})
|
84
82
|
# @param [String, Array<String>] scope The OAuth 2.0 scopes controlling the
|
85
83
|
# set of resources and operations that the connection can access. See
|
86
84
|
# [Using OAuth 2.0 to Access Google
|
@@ -89,11 +87,9 @@ module Google
|
|
89
87
|
# The default scope is:
|
90
88
|
#
|
91
89
|
# * `https://www.googleapis.com/auth/pubsub`
|
92
|
-
# @param [
|
93
|
-
# @param [Hash] client_config A hash of values to override the default
|
94
|
-
# behavior of the API client. Optional.
|
90
|
+
# @param [Numeric] timeout Default timeout to use in requests. Optional.
|
95
91
|
#
|
96
|
-
# @return [Google::Cloud::
|
92
|
+
# @return [Google::Cloud::PubSub::Project]
|
97
93
|
#
|
98
94
|
# @example
|
99
95
|
# require "google/cloud"
|
@@ -103,13 +99,12 @@ module Google
|
|
103
99
|
# topic = pubsub.topic "my-topic"
|
104
100
|
# topic.publish "task completed"
|
105
101
|
#
|
106
|
-
def self.pubsub project_id = nil,
|
107
|
-
|
102
|
+
def self.pubsub project_id = nil,
|
103
|
+
credentials = nil,
|
104
|
+
scope: nil,
|
105
|
+
timeout: nil
|
108
106
|
require "google/cloud/pubsub"
|
109
|
-
Google::Cloud::
|
110
|
-
credentials: credentials,
|
111
|
-
scope: scope, timeout: timeout,
|
112
|
-
client_config: client_config
|
107
|
+
Google::Cloud::PubSub.new project_id: project_id, credentials: credentials, scope: scope, timeout: timeout
|
113
108
|
end
|
114
109
|
end
|
115
110
|
end
|
@@ -121,23 +116,25 @@ Google::Cloud.configure.add_config! :pubsub do |config|
|
|
121
116
|
end
|
122
117
|
default_creds = Google::Cloud::Config.deferred do
|
123
118
|
Google::Cloud::Config.credentials_from_env(
|
124
|
-
"PUBSUB_CREDENTIALS", "PUBSUB_CREDENTIALS_JSON",
|
125
|
-
"PUBSUB_KEYFILE", "PUBSUB_KEYFILE_JSON"
|
119
|
+
"PUBSUB_CREDENTIALS", "PUBSUB_CREDENTIALS_JSON", "PUBSUB_KEYFILE", "PUBSUB_KEYFILE_JSON"
|
126
120
|
)
|
127
121
|
end
|
128
122
|
default_emulator = Google::Cloud::Config.deferred do
|
129
123
|
ENV["PUBSUB_EMULATOR_HOST"]
|
130
124
|
end
|
125
|
+
default_scopes = [
|
126
|
+
"https://www.googleapis.com/auth/cloud-platform",
|
127
|
+
"https://www.googleapis.com/auth/pubsub"
|
128
|
+
]
|
131
129
|
|
132
130
|
config.add_field! :project_id, default_project, match: String, allow_nil: true
|
133
131
|
config.add_alias! :project, :project_id
|
134
|
-
config.add_field! :credentials, default_creds,
|
135
|
-
match: [String, Hash, Google::Auth::Credentials],
|
136
|
-
allow_nil: true
|
132
|
+
config.add_field! :credentials, default_creds, match: [String, Hash, Google::Auth::Credentials], allow_nil: true
|
137
133
|
config.add_alias! :keyfile, :credentials
|
138
|
-
config.add_field! :scope,
|
139
|
-
config.add_field! :
|
140
|
-
config.add_field! :
|
141
|
-
config.add_field! :emulator_host, default_emulator,
|
142
|
-
|
134
|
+
config.add_field! :scope, default_scopes, match: [String, Array]
|
135
|
+
config.add_field! :quota_project, nil, match: String
|
136
|
+
config.add_field! :timeout, nil, match: Numeric
|
137
|
+
config.add_field! :emulator_host, default_emulator, match: String, allow_nil: true
|
138
|
+
config.add_field! :on_error, nil, match: Proc
|
139
|
+
config.add_field! :endpoint, "pubsub.googleapis.com", match: String
|
143
140
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-pubsub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
@@ -9,122 +9,136 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-02-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: concurrent-ruby
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '1.
|
20
|
+
version: '1.1'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '1.
|
27
|
+
version: '1.1'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name: google-
|
29
|
+
name: google-cloud-core
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '1.
|
34
|
+
version: '1.5'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '1.
|
41
|
+
version: '1.5'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
43
|
+
name: google-cloud-pubsub-v1
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 0.
|
48
|
+
version: '0.8'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.
|
55
|
+
version: '0.8'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
57
|
+
name: retriable
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '1
|
62
|
+
version: '3.1'
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '1
|
69
|
+
version: '3.1'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
71
|
+
name: autotest-suffix
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
76
|
+
version: '1.1'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
83
|
+
version: '1.1'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
|
-
name:
|
85
|
+
name: avro
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: '1.
|
90
|
+
version: '1.10'
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: '1.
|
97
|
+
version: '1.10'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
|
-
name:
|
99
|
+
name: google-style
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - "~>"
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
104
|
+
version: 1.25.1
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - "~>"
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
111
|
+
version: 1.25.1
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
|
-
name: minitest
|
113
|
+
name: minitest
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
116
|
- - "~>"
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version: '5.
|
118
|
+
version: '5.16'
|
119
119
|
type: :development
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
123
|
- - "~>"
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version: '5.
|
125
|
+
version: '5.16'
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
|
-
name: autotest
|
127
|
+
name: minitest-autotest
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - "~>"
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '1.0'
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '1.0'
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: minitest-focus
|
128
142
|
requirement: !ruby/object:Gem::Requirement
|
129
143
|
requirements:
|
130
144
|
- - "~>"
|
@@ -138,33 +152,33 @@ dependencies:
|
|
138
152
|
- !ruby/object:Gem::Version
|
139
153
|
version: '1.1'
|
140
154
|
- !ruby/object:Gem::Dependency
|
141
|
-
name:
|
155
|
+
name: minitest-rg
|
142
156
|
requirement: !ruby/object:Gem::Requirement
|
143
157
|
requirements:
|
144
158
|
- - "~>"
|
145
159
|
- !ruby/object:Gem::Version
|
146
|
-
version: '
|
160
|
+
version: '5.2'
|
147
161
|
type: :development
|
148
162
|
prerelease: false
|
149
163
|
version_requirements: !ruby/object:Gem::Requirement
|
150
164
|
requirements:
|
151
165
|
- - "~>"
|
152
166
|
- !ruby/object:Gem::Version
|
153
|
-
version: '
|
167
|
+
version: '5.2'
|
154
168
|
- !ruby/object:Gem::Dependency
|
155
|
-
name:
|
169
|
+
name: redcarpet
|
156
170
|
requirement: !ruby/object:Gem::Requirement
|
157
171
|
requirements:
|
158
172
|
- - "~>"
|
159
173
|
- !ruby/object:Gem::Version
|
160
|
-
version:
|
174
|
+
version: '3.0'
|
161
175
|
type: :development
|
162
176
|
prerelease: false
|
163
177
|
version_requirements: !ruby/object:Gem::Requirement
|
164
178
|
requirements:
|
165
179
|
- - "~>"
|
166
180
|
- !ruby/object:Gem::Version
|
167
|
-
version:
|
181
|
+
version: '3.0'
|
168
182
|
- !ruby/object:Gem::Dependency
|
169
183
|
name: simplecov
|
170
184
|
requirement: !ruby/object:Gem::Requirement
|
@@ -227,44 +241,37 @@ files:
|
|
227
241
|
- TROUBLESHOOTING.md
|
228
242
|
- lib/google-cloud-pubsub.rb
|
229
243
|
- lib/google/cloud/pubsub.rb
|
244
|
+
- lib/google/cloud/pubsub/acknowledge_result.rb
|
230
245
|
- lib/google/cloud/pubsub/async_publisher.rb
|
246
|
+
- lib/google/cloud/pubsub/async_publisher/batch.rb
|
231
247
|
- lib/google/cloud/pubsub/batch_publisher.rb
|
232
248
|
- lib/google/cloud/pubsub/convert.rb
|
233
249
|
- lib/google/cloud/pubsub/credentials.rb
|
250
|
+
- lib/google/cloud/pubsub/errors.rb
|
251
|
+
- lib/google/cloud/pubsub/flow_controller.rb
|
234
252
|
- lib/google/cloud/pubsub/message.rb
|
235
253
|
- lib/google/cloud/pubsub/policy.rb
|
236
254
|
- lib/google/cloud/pubsub/project.rb
|
237
255
|
- lib/google/cloud/pubsub/publish_result.rb
|
238
256
|
- lib/google/cloud/pubsub/received_message.rb
|
257
|
+
- lib/google/cloud/pubsub/retry_policy.rb
|
258
|
+
- lib/google/cloud/pubsub/schema.rb
|
259
|
+
- lib/google/cloud/pubsub/schema/list.rb
|
239
260
|
- lib/google/cloud/pubsub/service.rb
|
240
261
|
- lib/google/cloud/pubsub/snapshot.rb
|
241
262
|
- lib/google/cloud/pubsub/snapshot/list.rb
|
242
263
|
- lib/google/cloud/pubsub/subscriber.rb
|
243
|
-
- lib/google/cloud/pubsub/subscriber/async_stream_pusher.rb
|
244
|
-
- lib/google/cloud/pubsub/subscriber/async_unary_pusher.rb
|
245
264
|
- lib/google/cloud/pubsub/subscriber/enumerator_queue.rb
|
246
265
|
- lib/google/cloud/pubsub/subscriber/inventory.rb
|
266
|
+
- lib/google/cloud/pubsub/subscriber/sequencer.rb
|
247
267
|
- lib/google/cloud/pubsub/subscriber/stream.rb
|
268
|
+
- lib/google/cloud/pubsub/subscriber/timed_unary_buffer.rb
|
248
269
|
- lib/google/cloud/pubsub/subscription.rb
|
249
270
|
- lib/google/cloud/pubsub/subscription/list.rb
|
271
|
+
- lib/google/cloud/pubsub/subscription/push_config.rb
|
250
272
|
- lib/google/cloud/pubsub/topic.rb
|
251
273
|
- lib/google/cloud/pubsub/topic/list.rb
|
252
|
-
- lib/google/cloud/pubsub/v1.rb
|
253
|
-
- lib/google/cloud/pubsub/v1/credentials.rb
|
254
|
-
- lib/google/cloud/pubsub/v1/doc/google/iam/v1/iam_policy.rb
|
255
|
-
- lib/google/cloud/pubsub/v1/doc/google/iam/v1/policy.rb
|
256
|
-
- lib/google/cloud/pubsub/v1/doc/google/protobuf/duration.rb
|
257
|
-
- lib/google/cloud/pubsub/v1/doc/google/protobuf/empty.rb
|
258
|
-
- lib/google/cloud/pubsub/v1/doc/google/protobuf/field_mask.rb
|
259
|
-
- lib/google/cloud/pubsub/v1/doc/google/protobuf/timestamp.rb
|
260
|
-
- lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb
|
261
|
-
- lib/google/cloud/pubsub/v1/publisher_client.rb
|
262
|
-
- lib/google/cloud/pubsub/v1/publisher_client_config.json
|
263
|
-
- lib/google/cloud/pubsub/v1/subscriber_client.rb
|
264
|
-
- lib/google/cloud/pubsub/v1/subscriber_client_config.json
|
265
274
|
- lib/google/cloud/pubsub/version.rb
|
266
|
-
- lib/google/pubsub/v1/pubsub_pb.rb
|
267
|
-
- lib/google/pubsub/v1/pubsub_services_pb.rb
|
268
275
|
homepage: https://github.com/googleapis/google-cloud-ruby/tree/master/google-cloud-pubsub
|
269
276
|
licenses:
|
270
277
|
- Apache-2.0
|
@@ -277,15 +284,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
277
284
|
requirements:
|
278
285
|
- - ">="
|
279
286
|
- !ruby/object:Gem::Version
|
280
|
-
version: 2.
|
287
|
+
version: '2.5'
|
281
288
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
282
289
|
requirements:
|
283
290
|
- - ">="
|
284
291
|
- !ruby/object:Gem::Version
|
285
292
|
version: '0'
|
286
293
|
requirements: []
|
287
|
-
|
288
|
-
rubygems_version: 2.7.7
|
294
|
+
rubygems_version: 3.4.2
|
289
295
|
signing_key:
|
290
296
|
specification_version: 4
|
291
297
|
summary: API Client library for Google Cloud Pub/Sub
|