google-cloud-pubsub 2.15.5 → 3.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/AUTHENTICATION.md +12 -1
- data/CHANGELOG.md +129 -0
- data/OVERVIEW.md +189 -145
- data/lib/google/cloud/pubsub/admin_clients.rb +116 -0
- data/lib/google/cloud/pubsub/async_publisher.rb +20 -19
- data/lib/google/cloud/pubsub/batch_publisher.rb +7 -5
- data/lib/google/cloud/pubsub/convert.rb +1 -1
- data/lib/google/cloud/pubsub/errors.rb +3 -3
- data/lib/google/cloud/pubsub/flow_controller.rb +0 -2
- data/lib/google/cloud/pubsub/internal_logger.rb +76 -0
- data/lib/google/cloud/pubsub/message.rb +10 -11
- data/lib/google/cloud/pubsub/{subscriber → message_listener}/enumerator_queue.rb +1 -1
- data/lib/google/cloud/pubsub/{subscriber → message_listener}/inventory.rb +13 -10
- data/lib/google/cloud/pubsub/{subscriber → message_listener}/sequencer.rb +1 -1
- data/lib/google/cloud/pubsub/{subscriber → message_listener}/stream.rb +58 -17
- data/lib/google/cloud/pubsub/{subscriber → message_listener}/timed_unary_buffer.rb +29 -9
- data/lib/google/cloud/pubsub/message_listener.rb +413 -0
- data/lib/google/cloud/pubsub/project.rb +108 -523
- data/lib/google/cloud/pubsub/publisher.rb +424 -0
- data/lib/google/cloud/pubsub/received_message.rb +50 -45
- data/lib/google/cloud/pubsub/service.rb +48 -349
- data/lib/google/cloud/pubsub/subscriber.rb +442 -279
- data/lib/google/cloud/pubsub/version.rb +1 -1
- data/lib/google/cloud/pubsub.rb +51 -30
- data/lib/google-cloud-pubsub.rb +30 -10
- metadata +19 -183
- data/lib/google/cloud/pubsub/policy.rb +0 -188
- data/lib/google/cloud/pubsub/retry_policy.rb +0 -88
- data/lib/google/cloud/pubsub/schema/list.rb +0 -180
- data/lib/google/cloud/pubsub/schema.rb +0 -310
- data/lib/google/cloud/pubsub/snapshot/list.rb +0 -178
- data/lib/google/cloud/pubsub/snapshot.rb +0 -205
- data/lib/google/cloud/pubsub/subscription/list.rb +0 -205
- data/lib/google/cloud/pubsub/subscription/push_config.rb +0 -268
- data/lib/google/cloud/pubsub/subscription.rb +0 -1467
- data/lib/google/cloud/pubsub/topic/list.rb +0 -171
- data/lib/google/cloud/pubsub/topic.rb +0 -1100
data/lib/google/cloud/pubsub.rb
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
require "google-cloud-pubsub"
|
|
17
|
+
require "google/cloud/pubsub/internal_logger"
|
|
17
18
|
require "google/cloud/pubsub/project"
|
|
18
19
|
require "google/cloud/config"
|
|
19
20
|
require "google/cloud/env"
|
|
@@ -43,9 +44,24 @@ module Google
|
|
|
43
44
|
# @param [String] project_id Project identifier for the Pub/Sub service
|
|
44
45
|
# you are connecting to. If not present, the default project for the
|
|
45
46
|
# credentials is used.
|
|
46
|
-
# @param [
|
|
47
|
-
#
|
|
48
|
-
#
|
|
47
|
+
# @param [Google::Auth::Credentials] credentials A Google::Auth::Credentials
|
|
48
|
+
# object. (See {PubSub::Credentials})
|
|
49
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
50
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
51
|
+
# Google APIs can compromise the security of your systems and data.
|
|
52
|
+
#
|
|
53
|
+
# @example
|
|
54
|
+
#
|
|
55
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
56
|
+
# # on the appropriate credentials class for your environment.
|
|
57
|
+
#
|
|
58
|
+
# require "googleauth"
|
|
59
|
+
#
|
|
60
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
61
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
62
|
+
# )
|
|
63
|
+
#
|
|
64
|
+
# pubsub = Google::Cloud::Pubsub.new project_id: "my-project", credentials: credentials
|
|
49
65
|
# @param [String, Array<String>] scope The OAuth 2.0 scopes controlling
|
|
50
66
|
# the set of resources and operations that the connection can access.
|
|
51
67
|
# See [Using OAuth 2.0 to Access Google
|
|
@@ -55,13 +71,16 @@ module Google
|
|
|
55
71
|
#
|
|
56
72
|
# * `https://www.googleapis.com/auth/pubsub`
|
|
57
73
|
# @param [Numeric] timeout Default timeout to use in requests. Optional.
|
|
74
|
+
# @param [String] universe_domain A custom universe domain. Optional.
|
|
58
75
|
# @param [String] endpoint Override of the endpoint host name. Optional.
|
|
59
76
|
# If the param is nil, uses the default endpoint.
|
|
60
77
|
# @param [String] emulator_host Pub/Sub emulator host. Optional.
|
|
61
78
|
# If the param is nil, uses the value of the `emulator_host` config.
|
|
62
|
-
# @param [
|
|
63
|
-
#
|
|
64
|
-
#
|
|
79
|
+
# @param [Logger] logger Optional Logger instance for emitting
|
|
80
|
+
# library-level debug logs. If not provided, it will default to
|
|
81
|
+
# configure.logger, which defaults to Logger.new STDOUT if not set. To
|
|
82
|
+
# enable logging, set environment variable GOOGLE_SDK_RUBY_LOGGING_GEMS
|
|
83
|
+
# to "all" or a comma separated list of gem names, including "pubsub".
|
|
65
84
|
#
|
|
66
85
|
# @return [Google::Cloud::PubSub::Project]
|
|
67
86
|
#
|
|
@@ -70,41 +89,45 @@ module Google
|
|
|
70
89
|
#
|
|
71
90
|
# pubsub = Google::Cloud::PubSub.new
|
|
72
91
|
#
|
|
73
|
-
#
|
|
74
|
-
#
|
|
92
|
+
# publisher = pubsub.publisher "my-topic"
|
|
93
|
+
# publisher.publish "task completed"
|
|
75
94
|
#
|
|
76
95
|
def self.new project_id: nil,
|
|
77
96
|
credentials: nil,
|
|
78
97
|
scope: nil,
|
|
79
98
|
timeout: nil,
|
|
99
|
+
universe_domain: nil,
|
|
80
100
|
endpoint: nil,
|
|
81
101
|
emulator_host: nil,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
102
|
+
logger: nil
|
|
103
|
+
project_id ||= default_project_id
|
|
104
|
+
scope ||= configure.scope
|
|
105
|
+
timeout ||= configure.timeout
|
|
106
|
+
endpoint ||= configure.endpoint
|
|
107
|
+
universe_domain ||= configure.universe_domain
|
|
88
108
|
emulator_host ||= configure.emulator_host
|
|
109
|
+
logger ||= configure.logger
|
|
89
110
|
|
|
90
111
|
if emulator_host
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
credentials ||= (keyfile || default_credentials(scope: scope))
|
|
99
|
-
unless credentials.is_a? Google::Auth::Credentials
|
|
100
|
-
credentials = PubSub::Credentials.new credentials, scope: scope
|
|
112
|
+
credentials = :this_channel_is_insecure
|
|
113
|
+
endpoint = emulator_host
|
|
114
|
+
else
|
|
115
|
+
credentials ||= default_credentials scope: scope
|
|
116
|
+
unless credentials.is_a? Google::Auth::Credentials
|
|
117
|
+
credentials = PubSub::Credentials.new credentials, scope: scope
|
|
118
|
+
end
|
|
101
119
|
end
|
|
102
120
|
|
|
103
121
|
project_id ||= credentials.project_id if credentials.respond_to? :project_id
|
|
104
122
|
project_id = project_id.to_s # Always cast to a string
|
|
105
123
|
raise ArgumentError, "project_id is missing" if project_id.empty?
|
|
106
124
|
|
|
107
|
-
|
|
125
|
+
logger = Google::Cloud::PubSub::InternalLogger.new logger
|
|
126
|
+
service = PubSub::Service.new project_id, credentials,
|
|
127
|
+
host: endpoint,
|
|
128
|
+
timeout: timeout,
|
|
129
|
+
universe_domain: universe_domain,
|
|
130
|
+
logger: logger
|
|
108
131
|
PubSub::Project.new service
|
|
109
132
|
end
|
|
110
133
|
|
|
@@ -113,12 +136,10 @@ module Google
|
|
|
113
136
|
#
|
|
114
137
|
# The following PubSub configuration parameters are supported:
|
|
115
138
|
#
|
|
116
|
-
# * `project_id` - (String) Identifier for a PubSub project.
|
|
117
|
-
# parameter `project` is considered deprecated, but may also be used.)
|
|
139
|
+
# * `project_id` - (String) Identifier for a PubSub project.
|
|
118
140
|
# * `credentials` - (String, Hash, Google::Auth::Credentials) The path to
|
|
119
141
|
# the keyfile as a String, the contents of the keyfile as a Hash, or a
|
|
120
|
-
# Google::Auth::Credentials object. (See {PubSub::Credentials})
|
|
121
|
-
# parameter `keyfile` is considered deprecated, but may also be used.)
|
|
142
|
+
# Google::Auth::Credentials object. (See {PubSub::Credentials})
|
|
122
143
|
# * `scope` - (String, Array<String>) The OAuth 2.0 scopes controlling
|
|
123
144
|
# the set of resources and operations that the connection can access.
|
|
124
145
|
# * `quota_project` - (String) The project ID for a project that can be
|
|
@@ -130,7 +151,7 @@ module Google
|
|
|
130
151
|
# `ENV["PUBSUB_EMULATOR_HOST"]`
|
|
131
152
|
# * `on_error` - (Proc) A Proc to be run when an error is encountered
|
|
132
153
|
# on a background thread. The Proc must take the error object as the
|
|
133
|
-
# single argument. (See {
|
|
154
|
+
# single argument. (See {MessageListener.on_error}.)
|
|
134
155
|
#
|
|
135
156
|
# @return [Google::Cloud::Config] The configuration object the
|
|
136
157
|
# Google::Cloud::PubSub library uses.
|
data/lib/google-cloud-pubsub.rb
CHANGED
|
@@ -23,6 +23,7 @@ gem "google-cloud-core"
|
|
|
23
23
|
require "google/cloud" unless defined? Google::Cloud.new
|
|
24
24
|
require "google/cloud/config"
|
|
25
25
|
require "googleauth"
|
|
26
|
+
require "logger"
|
|
26
27
|
|
|
27
28
|
module Google
|
|
28
29
|
module Cloud
|
|
@@ -50,8 +51,9 @@ module Google
|
|
|
50
51
|
#
|
|
51
52
|
# gcloud = Google::Cloud.new
|
|
52
53
|
# pubsub = gcloud.pubsub
|
|
53
|
-
#
|
|
54
|
-
#
|
|
54
|
+
# topic_admin = pubsub.topic_admin
|
|
55
|
+
# publisher = pubsub.publisher "my-topic"
|
|
56
|
+
# publisher.publish "task completed"
|
|
55
57
|
#
|
|
56
58
|
# @example The default scope can be overridden with the `scope` option:
|
|
57
59
|
# require "google/cloud"
|
|
@@ -75,10 +77,24 @@ module Google
|
|
|
75
77
|
# @param [String] project_id Project identifier for the Pub/Sub service you
|
|
76
78
|
# are connecting to. If not present, the default project for the
|
|
77
79
|
# credentials is used.
|
|
78
|
-
# @param [
|
|
79
|
-
#
|
|
80
|
-
#
|
|
81
|
-
#
|
|
80
|
+
# @param [Google::Auth::Credentials] credentials A Google::Auth::Credentials
|
|
81
|
+
# object. (See {Google::Cloud::PubSub::Credentials})
|
|
82
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
83
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
84
|
+
# Google APIs can compromise the security of your systems and data.
|
|
85
|
+
#
|
|
86
|
+
# @example
|
|
87
|
+
#
|
|
88
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
89
|
+
# # on the appropriate credentials class for your environment.
|
|
90
|
+
#
|
|
91
|
+
# require "googleauth"
|
|
92
|
+
#
|
|
93
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
94
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
95
|
+
# )
|
|
96
|
+
#
|
|
97
|
+
# pubsub = Google::Cloud::Pubsub.new project_id: "my-project", credentials: credentials
|
|
82
98
|
# @param [String, Array<String>] scope The OAuth 2.0 scopes controlling the
|
|
83
99
|
# set of resources and operations that the connection can access. See
|
|
84
100
|
# [Using OAuth 2.0 to Access Google
|
|
@@ -96,8 +112,8 @@ module Google
|
|
|
96
112
|
#
|
|
97
113
|
# pubsub = Google::Cloud.pubsub
|
|
98
114
|
#
|
|
99
|
-
#
|
|
100
|
-
#
|
|
115
|
+
# publisher = pubsub.publisher "my-topic"
|
|
116
|
+
# publisher.publish "task completed"
|
|
101
117
|
#
|
|
102
118
|
def self.pubsub project_id = nil,
|
|
103
119
|
credentials = nil,
|
|
@@ -110,7 +126,7 @@ module Google
|
|
|
110
126
|
end
|
|
111
127
|
|
|
112
128
|
# Set the default pubsub configuration
|
|
113
|
-
Google::Cloud.configure.add_config! :pubsub do |config|
|
|
129
|
+
Google::Cloud.configure.add_config! :pubsub do |config| # rubocop:disable Metrics/BlockLength
|
|
114
130
|
default_project = Google::Cloud::Config.deferred do
|
|
115
131
|
ENV["PUBSUB_PROJECT"]
|
|
116
132
|
end
|
|
@@ -127,6 +143,8 @@ Google::Cloud.configure.add_config! :pubsub do |config|
|
|
|
127
143
|
"https://www.googleapis.com/auth/pubsub"
|
|
128
144
|
]
|
|
129
145
|
|
|
146
|
+
default_logger = Logger.new $stdout
|
|
147
|
+
|
|
130
148
|
config.add_field! :project_id, default_project, match: String, allow_nil: true
|
|
131
149
|
config.add_alias! :project, :project_id
|
|
132
150
|
config.add_field! :credentials, default_creds, match: [String, Hash, Google::Auth::Credentials], allow_nil: true
|
|
@@ -136,5 +154,7 @@ Google::Cloud.configure.add_config! :pubsub do |config|
|
|
|
136
154
|
config.add_field! :timeout, nil, match: Numeric
|
|
137
155
|
config.add_field! :emulator_host, default_emulator, match: String, allow_nil: true
|
|
138
156
|
config.add_field! :on_error, nil, match: Proc
|
|
139
|
-
config.add_field! :endpoint,
|
|
157
|
+
config.add_field! :endpoint, nil, match: String
|
|
158
|
+
config.add_field! :universe_domain, nil, match: String
|
|
159
|
+
config.add_field! :logger, default_logger, match: Logger, allow_nil: true
|
|
140
160
|
end
|
metadata
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-pubsub
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mike Moore
|
|
8
8
|
- Chris Smith
|
|
9
|
-
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: concurrent-ruby
|
|
@@ -17,42 +16,42 @@ dependencies:
|
|
|
17
16
|
requirements:
|
|
18
17
|
- - "~>"
|
|
19
18
|
- !ruby/object:Gem::Version
|
|
20
|
-
version: '1.
|
|
19
|
+
version: '1.3'
|
|
21
20
|
type: :runtime
|
|
22
21
|
prerelease: false
|
|
23
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
23
|
requirements:
|
|
25
24
|
- - "~>"
|
|
26
25
|
- !ruby/object:Gem::Version
|
|
27
|
-
version: '1.
|
|
26
|
+
version: '1.3'
|
|
28
27
|
- !ruby/object:Gem::Dependency
|
|
29
28
|
name: google-cloud-core
|
|
30
29
|
requirement: !ruby/object:Gem::Requirement
|
|
31
30
|
requirements:
|
|
32
31
|
- - "~>"
|
|
33
32
|
- !ruby/object:Gem::Version
|
|
34
|
-
version: '1.
|
|
33
|
+
version: '1.8'
|
|
35
34
|
type: :runtime
|
|
36
35
|
prerelease: false
|
|
37
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
38
37
|
requirements:
|
|
39
38
|
- - "~>"
|
|
40
39
|
- !ruby/object:Gem::Version
|
|
41
|
-
version: '1.
|
|
40
|
+
version: '1.8'
|
|
42
41
|
- !ruby/object:Gem::Dependency
|
|
43
42
|
name: google-cloud-pubsub-v1
|
|
44
43
|
requirement: !ruby/object:Gem::Requirement
|
|
45
44
|
requirements:
|
|
46
45
|
- - "~>"
|
|
47
46
|
- !ruby/object:Gem::Version
|
|
48
|
-
version: '
|
|
47
|
+
version: '1.11'
|
|
49
48
|
type: :runtime
|
|
50
49
|
prerelease: false
|
|
51
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
52
51
|
requirements:
|
|
53
52
|
- - "~>"
|
|
54
53
|
- !ruby/object:Gem::Version
|
|
55
|
-
version: '
|
|
54
|
+
version: '1.11'
|
|
56
55
|
- !ruby/object:Gem::Dependency
|
|
57
56
|
name: retriable
|
|
58
57
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -67,160 +66,6 @@ dependencies:
|
|
|
67
66
|
- - "~>"
|
|
68
67
|
- !ruby/object:Gem::Version
|
|
69
68
|
version: '3.1'
|
|
70
|
-
- !ruby/object:Gem::Dependency
|
|
71
|
-
name: autotest-suffix
|
|
72
|
-
requirement: !ruby/object:Gem::Requirement
|
|
73
|
-
requirements:
|
|
74
|
-
- - "~>"
|
|
75
|
-
- !ruby/object:Gem::Version
|
|
76
|
-
version: '1.1'
|
|
77
|
-
type: :development
|
|
78
|
-
prerelease: false
|
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
80
|
-
requirements:
|
|
81
|
-
- - "~>"
|
|
82
|
-
- !ruby/object:Gem::Version
|
|
83
|
-
version: '1.1'
|
|
84
|
-
- !ruby/object:Gem::Dependency
|
|
85
|
-
name: avro
|
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
|
87
|
-
requirements:
|
|
88
|
-
- - "~>"
|
|
89
|
-
- !ruby/object:Gem::Version
|
|
90
|
-
version: '1.10'
|
|
91
|
-
type: :development
|
|
92
|
-
prerelease: false
|
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
94
|
-
requirements:
|
|
95
|
-
- - "~>"
|
|
96
|
-
- !ruby/object:Gem::Version
|
|
97
|
-
version: '1.10'
|
|
98
|
-
- !ruby/object:Gem::Dependency
|
|
99
|
-
name: google-style
|
|
100
|
-
requirement: !ruby/object:Gem::Requirement
|
|
101
|
-
requirements:
|
|
102
|
-
- - "~>"
|
|
103
|
-
- !ruby/object:Gem::Version
|
|
104
|
-
version: 1.25.1
|
|
105
|
-
type: :development
|
|
106
|
-
prerelease: false
|
|
107
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
108
|
-
requirements:
|
|
109
|
-
- - "~>"
|
|
110
|
-
- !ruby/object:Gem::Version
|
|
111
|
-
version: 1.25.1
|
|
112
|
-
- !ruby/object:Gem::Dependency
|
|
113
|
-
name: minitest
|
|
114
|
-
requirement: !ruby/object:Gem::Requirement
|
|
115
|
-
requirements:
|
|
116
|
-
- - "~>"
|
|
117
|
-
- !ruby/object:Gem::Version
|
|
118
|
-
version: '5.16'
|
|
119
|
-
type: :development
|
|
120
|
-
prerelease: false
|
|
121
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
122
|
-
requirements:
|
|
123
|
-
- - "~>"
|
|
124
|
-
- !ruby/object:Gem::Version
|
|
125
|
-
version: '5.16'
|
|
126
|
-
- !ruby/object:Gem::Dependency
|
|
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
|
|
142
|
-
requirement: !ruby/object:Gem::Requirement
|
|
143
|
-
requirements:
|
|
144
|
-
- - "~>"
|
|
145
|
-
- !ruby/object:Gem::Version
|
|
146
|
-
version: '1.1'
|
|
147
|
-
type: :development
|
|
148
|
-
prerelease: false
|
|
149
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
150
|
-
requirements:
|
|
151
|
-
- - "~>"
|
|
152
|
-
- !ruby/object:Gem::Version
|
|
153
|
-
version: '1.1'
|
|
154
|
-
- !ruby/object:Gem::Dependency
|
|
155
|
-
name: minitest-rg
|
|
156
|
-
requirement: !ruby/object:Gem::Requirement
|
|
157
|
-
requirements:
|
|
158
|
-
- - "~>"
|
|
159
|
-
- !ruby/object:Gem::Version
|
|
160
|
-
version: '5.2'
|
|
161
|
-
type: :development
|
|
162
|
-
prerelease: false
|
|
163
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
164
|
-
requirements:
|
|
165
|
-
- - "~>"
|
|
166
|
-
- !ruby/object:Gem::Version
|
|
167
|
-
version: '5.2'
|
|
168
|
-
- !ruby/object:Gem::Dependency
|
|
169
|
-
name: redcarpet
|
|
170
|
-
requirement: !ruby/object:Gem::Requirement
|
|
171
|
-
requirements:
|
|
172
|
-
- - "~>"
|
|
173
|
-
- !ruby/object:Gem::Version
|
|
174
|
-
version: '3.0'
|
|
175
|
-
type: :development
|
|
176
|
-
prerelease: false
|
|
177
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
178
|
-
requirements:
|
|
179
|
-
- - "~>"
|
|
180
|
-
- !ruby/object:Gem::Version
|
|
181
|
-
version: '3.0'
|
|
182
|
-
- !ruby/object:Gem::Dependency
|
|
183
|
-
name: simplecov
|
|
184
|
-
requirement: !ruby/object:Gem::Requirement
|
|
185
|
-
requirements:
|
|
186
|
-
- - "~>"
|
|
187
|
-
- !ruby/object:Gem::Version
|
|
188
|
-
version: '0.9'
|
|
189
|
-
type: :development
|
|
190
|
-
prerelease: false
|
|
191
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
192
|
-
requirements:
|
|
193
|
-
- - "~>"
|
|
194
|
-
- !ruby/object:Gem::Version
|
|
195
|
-
version: '0.9'
|
|
196
|
-
- !ruby/object:Gem::Dependency
|
|
197
|
-
name: yard
|
|
198
|
-
requirement: !ruby/object:Gem::Requirement
|
|
199
|
-
requirements:
|
|
200
|
-
- - "~>"
|
|
201
|
-
- !ruby/object:Gem::Version
|
|
202
|
-
version: '0.9'
|
|
203
|
-
type: :development
|
|
204
|
-
prerelease: false
|
|
205
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
206
|
-
requirements:
|
|
207
|
-
- - "~>"
|
|
208
|
-
- !ruby/object:Gem::Version
|
|
209
|
-
version: '0.9'
|
|
210
|
-
- !ruby/object:Gem::Dependency
|
|
211
|
-
name: yard-doctest
|
|
212
|
-
requirement: !ruby/object:Gem::Requirement
|
|
213
|
-
requirements:
|
|
214
|
-
- - "~>"
|
|
215
|
-
- !ruby/object:Gem::Version
|
|
216
|
-
version: 0.1.13
|
|
217
|
-
type: :development
|
|
218
|
-
prerelease: false
|
|
219
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
220
|
-
requirements:
|
|
221
|
-
- - "~>"
|
|
222
|
-
- !ruby/object:Gem::Version
|
|
223
|
-
version: 0.1.13
|
|
224
69
|
description: google-cloud-pubsub is the official library for Google Cloud Pub/Sub.
|
|
225
70
|
email:
|
|
226
71
|
- mike@blowmage.com
|
|
@@ -242,6 +87,7 @@ files:
|
|
|
242
87
|
- lib/google-cloud-pubsub.rb
|
|
243
88
|
- lib/google/cloud/pubsub.rb
|
|
244
89
|
- lib/google/cloud/pubsub/acknowledge_result.rb
|
|
90
|
+
- lib/google/cloud/pubsub/admin_clients.rb
|
|
245
91
|
- lib/google/cloud/pubsub/async_publisher.rb
|
|
246
92
|
- lib/google/cloud/pubsub/async_publisher/batch.rb
|
|
247
93
|
- lib/google/cloud/pubsub/batch_publisher.rb
|
|
@@ -249,34 +95,25 @@ files:
|
|
|
249
95
|
- lib/google/cloud/pubsub/credentials.rb
|
|
250
96
|
- lib/google/cloud/pubsub/errors.rb
|
|
251
97
|
- lib/google/cloud/pubsub/flow_controller.rb
|
|
98
|
+
- lib/google/cloud/pubsub/internal_logger.rb
|
|
252
99
|
- lib/google/cloud/pubsub/message.rb
|
|
253
|
-
- lib/google/cloud/pubsub/
|
|
100
|
+
- lib/google/cloud/pubsub/message_listener.rb
|
|
101
|
+
- lib/google/cloud/pubsub/message_listener/enumerator_queue.rb
|
|
102
|
+
- lib/google/cloud/pubsub/message_listener/inventory.rb
|
|
103
|
+
- lib/google/cloud/pubsub/message_listener/sequencer.rb
|
|
104
|
+
- lib/google/cloud/pubsub/message_listener/stream.rb
|
|
105
|
+
- lib/google/cloud/pubsub/message_listener/timed_unary_buffer.rb
|
|
254
106
|
- lib/google/cloud/pubsub/project.rb
|
|
255
107
|
- lib/google/cloud/pubsub/publish_result.rb
|
|
108
|
+
- lib/google/cloud/pubsub/publisher.rb
|
|
256
109
|
- 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
|
|
260
110
|
- lib/google/cloud/pubsub/service.rb
|
|
261
|
-
- lib/google/cloud/pubsub/snapshot.rb
|
|
262
|
-
- lib/google/cloud/pubsub/snapshot/list.rb
|
|
263
111
|
- lib/google/cloud/pubsub/subscriber.rb
|
|
264
|
-
- lib/google/cloud/pubsub/subscriber/enumerator_queue.rb
|
|
265
|
-
- lib/google/cloud/pubsub/subscriber/inventory.rb
|
|
266
|
-
- lib/google/cloud/pubsub/subscriber/sequencer.rb
|
|
267
|
-
- lib/google/cloud/pubsub/subscriber/stream.rb
|
|
268
|
-
- lib/google/cloud/pubsub/subscriber/timed_unary_buffer.rb
|
|
269
|
-
- lib/google/cloud/pubsub/subscription.rb
|
|
270
|
-
- lib/google/cloud/pubsub/subscription/list.rb
|
|
271
|
-
- lib/google/cloud/pubsub/subscription/push_config.rb
|
|
272
|
-
- lib/google/cloud/pubsub/topic.rb
|
|
273
|
-
- lib/google/cloud/pubsub/topic/list.rb
|
|
274
112
|
- lib/google/cloud/pubsub/version.rb
|
|
275
113
|
homepage: https://github.com/googleapis/google-cloud-ruby/tree/master/google-cloud-pubsub
|
|
276
114
|
licenses:
|
|
277
115
|
- Apache-2.0
|
|
278
116
|
metadata: {}
|
|
279
|
-
post_install_message:
|
|
280
117
|
rdoc_options: []
|
|
281
118
|
require_paths:
|
|
282
119
|
- lib
|
|
@@ -284,15 +121,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
284
121
|
requirements:
|
|
285
122
|
- - ">="
|
|
286
123
|
- !ruby/object:Gem::Version
|
|
287
|
-
version: '2
|
|
124
|
+
version: '3.2'
|
|
288
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
289
126
|
requirements:
|
|
290
127
|
- - ">="
|
|
291
128
|
- !ruby/object:Gem::Version
|
|
292
129
|
version: '0'
|
|
293
130
|
requirements: []
|
|
294
|
-
rubygems_version: 3.
|
|
295
|
-
signing_key:
|
|
131
|
+
rubygems_version: 3.6.9
|
|
296
132
|
specification_version: 4
|
|
297
133
|
summary: API Client library for Google Cloud Pub/Sub
|
|
298
134
|
test_files: []
|