pub_sub_model_sync 1.9.1 → 1.9.2

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: 9bfddc26627083c781973fb3926bda30c11be1b6e2eaeb30b9f683f82edb09dc
4
- data.tar.gz: 74144bd175d893d05316157e14324037cfadf9c86ec6f3ca8cb225cd700be5b9
3
+ metadata.gz: 4f82d049509b25f0539fd6c4db0e90ef4137a47d422a86288f9c813eb82aa26d
4
+ data.tar.gz: 115ec796cceff5073b3152f69336dcb31249882a250c94f4aae75399230192fa
5
5
  SHA512:
6
- metadata.gz: 98df4aabe535e9ae9976815d9b0f440b64cc415f615996053617ae90a312a5c836dfc86534f82f598111ba0048eca3f27bbf3fd6a56b59b4bbf85443cbd4e89f
7
- data.tar.gz: 9dc0d9abe9b5fb41094d4eb2de28c6eea733ece065bfefe513c7d45b998bde42963edd5d9e9445ef5412ccc8415cdf5b09c6db62851b8d708270e4eb5852972e
6
+ metadata.gz: fe262d11f6995687f4b369067dd99168c16861709ca564d2c2489112f1c5ad2728c2363ec988d93fa67704db618370988ff6616ee4c3024c51fb5ee83d169ab4
7
+ data.tar.gz: 155e326d5b489a80c686e535baf427ac7a1f85c3bc9487f85df61d4367b553d33832214d9240cc01925aaf3047ee4881bc8e5e630a145b909c477e4bf2ab2839
@@ -13,6 +13,10 @@ module PubSubModelSync
13
13
  true
14
14
  end
15
15
 
16
+ def on_error(&_block)
17
+ true
18
+ end
19
+
16
20
  def stop
17
21
  @stop ||= MockStop.new
18
22
  end
@@ -101,6 +101,7 @@ module PubSubModelSync
101
101
  subs_name = "#{config.subscription_key}_#{key}"
102
102
  subscription = topic.subscription(subs_name) || topic.subscribe(subs_name, **SUBSCRIPTION_SETTINGS)
103
103
  subscriber = subscription.listen(**LISTEN_SETTINGS, &method(:process_message))
104
+ subscriber.on_error { |error| log("Subscriber error: #{error.class} #{error.message}", :error) }
104
105
  subscriber.start
105
106
  log("Subscribed to topic: #{topic.name} as: #{subs_name}")
106
107
  subscriber
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PubSubModelSync
4
- VERSION = '1.9.1'
4
+ VERSION = '1.9.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pub_sub_model_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Owen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-16 00:00:00.000000000 Z
11
+ date: 2023-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails