event_store_client 1.1.2 → 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: 0bce23a0e16ce5f374964b63c3479adb7e55236465285c6dc73c9545e6507807
4
- data.tar.gz: caac13b0506eb0323597db08303e604527475b11476b4af877f8ff6381f076eb
3
+ metadata.gz: fcf224b19a1f6a460e17b74b27d9899af9a50aefe870b3aa872cb1277ad82806
4
+ data.tar.gz: 869558c16fad1a4c92a3319af5e875a7286bf6242400472625365eadba4b5b29
5
5
  SHA512:
6
- metadata.gz: 6d0c69349edd547872c656264c97f397edea084420ed492cd30ce7223961a6649894ba84eb9a2cc97828dc06805c30256f6f3f7346965bbdbf483447106e8a2d
7
- data.tar.gz: 454e278dc1c5f1fd95f81d65dab0970fff87317ea8468e0da440ffc8903b85c2640c84d7b37429e133aab23d71f1d19688f8f4c332b21282a4e0163f2b79769a
6
+ metadata.gz: 956aa884c6e205fd2ef1b821736c790e201e0511d1eb21da3af223cc5052edc51c1a69ea6d00c79b7474d421a0b6bf853d186142f32284f6c4ef6557650e22fe
7
+ data.tar.gz: 62217cef5cbd546bd8e850e5b05852035f66e025916a2ee6ad290666d5e5d833c2a85e729277caf7d44dfd0dca985b61ceef9a74d6707504592051d0ded603a6
@@ -45,6 +45,10 @@ module EventStoreClient
45
45
  subscription_store.clean_unused(subscriptions.map(&:name))
46
46
  end
47
47
 
48
+ def reset
49
+ subscription_store.reset(subscriptions)
50
+ end
51
+
48
52
  private
49
53
 
50
54
  attr_reader :connection, :subscriptions, :subscription_store
@@ -33,6 +33,12 @@ module EventStoreClient
33
33
  @subscriptions.create_or_load(subscriber, filter: filter)
34
34
  end
35
35
 
36
+ def reset_subscriptions
37
+ return unless @subscriptions.respond_to?(:reset)
38
+
39
+ @subscriptions.reset
40
+ end
41
+
36
42
  def listen(wait: false)
37
43
  broker.call(@subscriptions, wait: wait)
38
44
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EventStoreClient
4
- VERSION = '1.1.2'
4
+ VERSION = '1.1.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: event_store_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Wilgosz
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-07 00:00:00.000000000 Z
11
+ date: 2021-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable
@@ -247,7 +247,7 @@ licenses:
247
247
  - MIT
248
248
  metadata:
249
249
  allowed_push_host: https://rubygems.org
250
- post_install_message:
250
+ post_install_message:
251
251
  rdoc_options: []
252
252
  require_paths:
253
253
  - lib
@@ -262,8 +262,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
262
262
  - !ruby/object:Gem::Version
263
263
  version: '0'
264
264
  requirements: []
265
- rubygems_version: 3.1.4
266
- signing_key:
265
+ rubygems_version: 3.0.4
266
+ signing_key:
267
267
  specification_version: 4
268
268
  summary: Ruby integration for https://eventstore.org
269
269
  test_files: []