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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13c10d53daf5538c3aca168f2cee4ba8926bc6796bf77653fb9b9a87d2b26f72
4
- data.tar.gz: eb7a89953c274694319285cb9350803d7b13f31a99e2bd1d365e074460ab06ce
3
+ metadata.gz: 7da1c7755c4338934a7b0b9067b5dbc509cc11dbe9f22b046578048d23d3529b
4
+ data.tar.gz: cab1c8f5d426d36805931f0e75fd6976a65812f5c9ab86b607a61596c1a5d8a9
5
5
  SHA512:
6
- metadata.gz: 81e5cbdad71787603ab5d5a6d2ac7802a7cc8e9bb40fe4414d5c87a4935ca266ad0afa0efb0fa48b03b2f8ccdaefe3963054614e6b25db359381758849e82e60
7
- data.tar.gz: 289d015b198b809a9683b5d7594ffcbd98a70ce964a2ab4471ab42bba3f83e0de1dbe0a3bd29cbd19ea5498e6f4e85a171658a7a60f326393d019361125dd7f6
6
+ metadata.gz: 68b17c969910bb8534ac1d904ea65d78997bac2d20f5992cecbc1c35ef4bc96f7c544662d63591efefddde3038912fda18e86401bca2669f07348baab4da4c1e
7
+ data.tar.gz: 8529bb3c895d07054a2fa957c33fdb344a7fc2927a5a72448c37554066374afbd0de3c7223a8bcb2b9168accdad5d72a9e573e4331378829a901db8ad9b640b5
@@ -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
- 396f5f8 Allow publishing to any topic
8
+ 1d7dc1c Allow publishing to any topic
4
9
 
5
10
  Version 0.1.0 2020-08-25
6
11
  ------------------------
@@ -5,6 +5,7 @@ require 'pubsub_client/publisher_factory'
5
5
  module PubsubClient
6
6
  Error = Class.new(StandardError)
7
7
  ConfigurationError = Class.new(Error)
8
+ InvalidTopicError = Class.new(Error)
8
9
 
9
10
  class << self
10
11
  def stub!
@@ -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 }
@@ -1,3 +1,3 @@
1
1
  module PubsubClient
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubsub_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Apartment List Platforms