event_store_client 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -1
- data/lib/event_store_client/connection.rb +1 -1
- data/lib/event_store_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b0d20bc65ef48dcf9e84a3af0e6d1108ceb749cef7e9a6cf877905c27b38581
|
4
|
+
data.tar.gz: 586d8f1ee447339bd9b849f54e822c9a925de798c5ffc940ba16b4d2a00a13e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9195f7b30a0732ce11980e7efd5022d1a28943b96288f8c435d518801ab5374098d644bff26c4b37d560aeea94b39dd929b9af326140a7afd63fdc1026b9d781
|
7
|
+
data.tar.gz: e44b725cefad865e38fb6ede7746f069b1248c47b5d26c212519cd94111909126294cb1476b783aca615e9ea6b6bef3f2f58b6c6361ecbbb713ebf4e82b17f8c
|
data/README.md
CHANGED
@@ -96,12 +96,18 @@ client.publish(stream: 'newstream', events: [event])
|
|
96
96
|
events = client.read('newstream')
|
97
97
|
```
|
98
98
|
|
99
|
-
**Changing reading direction
|
99
|
+
**Changing reading direction**
|
100
100
|
|
101
101
|
```ruby
|
102
102
|
events = client.read('newstream', direction: 'backward') #default 'forward'
|
103
103
|
```
|
104
104
|
|
105
|
+
**Reading all events from a stream**
|
106
|
+
|
107
|
+
```ruby
|
108
|
+
events = client.read('newstream', all: true) #default 'false'
|
109
|
+
```
|
110
|
+
|
105
111
|
### Subscribing to events
|
106
112
|
|
107
113
|
```ruby
|
@@ -92,7 +92,7 @@ module EventStoreClient
|
|
92
92
|
begin
|
93
93
|
response =
|
94
94
|
client.read(stream, start: start, direction: 'forward', resolve_links: resolve_links)
|
95
|
-
failed_requests_count += 1 && next unless response.success?
|
95
|
+
failed_requests_count += 1 && next unless response.success? || response.status == 404
|
96
96
|
rescue Faraday::ConnectionFailed
|
97
97
|
failed_requests_count += 1
|
98
98
|
next
|
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: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Wilgosz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-schema
|