event_store_subscriptions 1.1.1 → 1.1.3

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: b5cf6eee2212958bfee77867dc8774a22232d66906ca80727a1b0f524283e87d
4
- data.tar.gz: a5d51d370a8348010cd3b336214452736e7b69bc5db6193d5792612a5c4d4c6d
3
+ metadata.gz: 72fea595162630da6814e74fb7f9a29781b8cfd687c754677f039ca9dbaab503
4
+ data.tar.gz: 86ad98f935a424cfe4d2394aa00bdb25fce6f7293c9dc599ccbc13a070fd923d
5
5
  SHA512:
6
- metadata.gz: f5f9ccefe43884282449d6198018e61315969e69c35f1acbe484510fac9cf4a57e36d5ef259cfb4bb2da0ebbaa0976f93a33051af7ef0ff8a8088cf43e3096ed
7
- data.tar.gz: 31fc30bc01ab4b11d1e035ac6d21c4d561036e5ba71f42252a38122404a0d5d07b2df3e5e5e4e71d73ce7ee4bfc3e23cfcf470d4a540bfd67163186d676b1c3b
6
+ metadata.gz: ccd28a48b01f264af8bbb1002f6f30bdf36f6ffc5d3922d81575c5464635e628b9b516434e5f54d4c5b489d87b6db9d245d761e62b0d3518aa907e3369224cc6
7
+ data.tar.gz: 4c9abcbb314c92a6bfada95c6d044fa40afce7b669b7ce30e999b932e5760c9618a73a97ecfa19885e8d0f0cfc471f4c30653ccbc34c3ecef778a99e2cd47f70
@@ -99,8 +99,10 @@ module EventStoreSubscriptions
99
99
  original_result,
100
100
  *process_response_args
101
101
  )
102
- original_handler.call(result) if result
103
- statistic.events_processed += 1
102
+ if result
103
+ original_handler.call(result)
104
+ statistic.events_processed += 1
105
+ end
104
106
  position.update(original_result)
105
107
  end
106
108
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EventStoreSubscriptions
4
- VERSION = "1.1.1"
4
+ VERSION = "1.1.3"
5
5
  end
@@ -13,7 +13,7 @@ module EventStoreSubscriptions
13
13
  # @param restart_terminator [Proc, nil]
14
14
  # @return [EventStoreSubscriptions::WatchDog]
15
15
  def watch(collection, restart_terminator: nil)
16
- new(collection).watch
16
+ new(collection, restart_terminator: restart_terminator).watch
17
17
  end
18
18
  end
19
19
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: event_store_subscriptions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Dzyzenko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-28 00:00:00.000000000 Z
11
+ date: 2022-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: event_store_client