event_store_client 1.0.14 → 1.0.15

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: 7da2b7bfb5455d011c17277a246f91231b07f15e3f9f26e8eaf2ef9463766923
4
- data.tar.gz: 6b51fe26c54af786c356498d92e32d8cfcd285e88bc07834a3d5435ad8085e34
3
+ metadata.gz: 76dd0d7f4b109542128bf7c4ca8c27a1fdc45e248adda2426150f4b0c46eff9f
4
+ data.tar.gz: 05c9705d93bbd1b0cf9f1ebb238d1ea575aeda0f664645610b54af4135400514
5
5
  SHA512:
6
- metadata.gz: fe14bb406356e188524047376771c3a65bcea7d2d52015688fe331d891bc4e14e1bdecc5b0640189d317688f52ee77b47e601df89a9c06954231bbde9d4e376e
7
- data.tar.gz: 2722c3ee42665207dc28811e0bdd8351a17e8f51c1b025f9b3620d8edeb5a14a0675fe7a77c37f778d41c2ee04de5c8ed1d0450c8003e17f2501998e74652680
6
+ metadata.gz: b73a7e950dfb52143d75b557621ec9cc56e6b940136d9574a008ff36f082960da829f3948876eaf47ff100aa6eadf2da84f88743a80dd4ed61de5f51e2b6dca0
7
+ data.tar.gz: 59916961db398165362682c052c6bc83376943534520f9a1de8fe8f4162094e4d3719ad79f5f44dc4372e68dd97c90ba3c1beb83c34741439774396fbf2be5cd
@@ -22,9 +22,9 @@ module EventStoreClient
22
22
  end
23
23
  end
24
24
 
25
- def subscribe(subscriber, to: [])
25
+ def subscribe(subscriber, to: [], options: {})
26
26
  raise NoCallMethodOnSubscriber unless subscriber.respond_to?(:call)
27
- @subscriptions.create(subscriber, to)
27
+ @subscriptions.create(subscriber, to, options: options)
28
28
  end
29
29
 
30
30
  def listen(wait: false)
@@ -2,11 +2,11 @@
2
2
 
3
3
  module EventStoreClient
4
4
  class Subscriptions
5
- def create(subscriber, event_types)
5
+ def create(subscriber, event_types, options: {})
6
6
  subscription = Subscription.new(subscriber, event_types: event_types, service: service)
7
7
 
8
8
  unless @subscriptions.detect { |sub| sub.name == subscription.name }
9
- connection.subscribe_to_stream(subscription)
9
+ connection.subscribe_to_stream(subscription, options)
10
10
  subscriptions << subscription
11
11
  end
12
12
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EventStoreClient
4
- VERSION = '1.0.14'
4
+ VERSION = '1.0.15'
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.0.14
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Wilgosz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-28 00:00:00.000000000 Z
11
+ date: 2021-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  - !ruby/object:Gem::Version
245
245
  version: '0'
246
246
  requirements: []
247
- rubygems_version: 3.0.4
247
+ rubygems_version: 3.0.6
248
248
  signing_key:
249
249
  specification_version: 4
250
250
  summary: Ruby integration for https://eventstore.org