pubsub_client 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.txt +6 -1
- data/lib/pubsub_client.rb +1 -0
- data/lib/pubsub_client/publisher_factory.rb +1 -0
- data/lib/pubsub_client/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: 7da1c7755c4338934a7b0b9067b5dbc509cc11dbe9f22b046578048d23d3529b
|
4
|
+
data.tar.gz: cab1c8f5d426d36805931f0e75fd6976a65812f5c9ab86b607a61596c1a5d8a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68b17c969910bb8534ac1d904ea65d78997bac2d20f5992cecbc1c35ef4bc96f7c544662d63591efefddde3038912fda18e86401bca2669f07348baab4da4c1e
|
7
|
+
data.tar.gz: 8529bb3c895d07054a2fa957c33fdb344a7fc2927a5a72448c37554066374afbd0de3c7223a8bcb2b9168accdad5d72a9e573e4331378829a901db8ad9b640b5
|
data/CHANGELOG.txt
CHANGED
@@ -1,6 +1,11 @@
|
|
1
|
+
Version 1.1.0 2020-09-25
|
2
|
+
------------------------
|
3
|
+
d3f8ed1 Throw error if topic does not exist
|
4
|
+
a95430f Bump major version and update change log
|
5
|
+
|
1
6
|
Version 1.0.0 2020-09-24
|
2
7
|
------------------------
|
3
|
-
|
8
|
+
1d7dc1c Allow publishing to any topic
|
4
9
|
|
5
10
|
Version 0.1.0 2020-08-25
|
6
11
|
------------------------
|
data/lib/pubsub_client.rb
CHANGED
@@ -52,6 +52,7 @@ module PubsubClient
|
|
52
52
|
def build_publisher(topic_name)
|
53
53
|
pubsub = Google::Cloud::PubSub.new
|
54
54
|
topic = pubsub.topic(topic_name)
|
55
|
+
raise InvalidTopicError, "The topic #{topic_name} does not exist" unless topic
|
55
56
|
publisher = Publisher.new(topic)
|
56
57
|
|
57
58
|
at_exit { publisher.flush }
|