google-cloud-pubsub 3.1.0 → 3.1.1
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/CHANGELOG.md +6 -0
- data/lib/google/cloud/pubsub/publisher.rb +2 -9
- data/lib/google/cloud/pubsub/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f0880df55e564ea3c1957ffc6635ff732a24ea68e16d9ecc71ef85d2269c67d4
|
|
4
|
+
data.tar.gz: 020d4c4b520cf66a25ad9b7cb29f8ed3b8f9f79209a1a9109a191266110d5d93
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c7ac944e1409ad5c6869c2939dcba39ada5b34a44e44841d2fd2fb5ae6951420522c6779184453a5b96c795f27093f1e78f7d7ca45de452fdbe42c712d39d1e9
|
|
7
|
+
data.tar.gz: 46e5ce7c266598d1895291aebb16c1e12ac531bd151b696bc6047aa25b6f7d5adc52bb78fa0811fb6e2229cf4b49e1cdf98fb5fc8b6e066b09056c5fd9985950
|
data/CHANGELOG.md
CHANGED
|
@@ -213,7 +213,7 @@ module Google
|
|
|
213
213
|
#
|
|
214
214
|
def publish data = nil, attributes = nil, ordering_key: nil, compress: nil, compression_bytes_threshold: nil,
|
|
215
215
|
**extra_attrs, &block
|
|
216
|
-
|
|
216
|
+
ensure_service!
|
|
217
217
|
batch = BatchPublisher.new data,
|
|
218
218
|
attributes,
|
|
219
219
|
ordering_key,
|
|
@@ -337,7 +337,7 @@ module Google
|
|
|
337
337
|
# publisher.async_publisher.stop!
|
|
338
338
|
#
|
|
339
339
|
def publish_async data = nil, attributes = nil, ordering_key: nil, **extra_attrs, &callback
|
|
340
|
-
|
|
340
|
+
ensure_service!
|
|
341
341
|
@async_publisher ||= AsyncPublisher.new name, service, **@async_opts
|
|
342
342
|
@async_publisher.publish data, attributes, ordering_key: ordering_key, **extra_attrs, &callback
|
|
343
343
|
end
|
|
@@ -415,13 +415,6 @@ module Google
|
|
|
415
415
|
def ensure_service!
|
|
416
416
|
raise "Must have active connection to service" unless service
|
|
417
417
|
end
|
|
418
|
-
|
|
419
|
-
##
|
|
420
|
-
# Ensures a Google::Cloud::PubSub::V1::Topic object exists.
|
|
421
|
-
def ensure_grpc!
|
|
422
|
-
ensure_service!
|
|
423
|
-
reload! if reference?
|
|
424
|
-
end
|
|
425
418
|
end
|
|
426
419
|
end
|
|
427
420
|
|