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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6afde0e97c048d663713a6ce14f603d2d1814ca28850b38a8f40c9542e88e0a
4
- data.tar.gz: 01b0b79bcc76bd604338793f7370a174eadd4f8642c32573166be95d0ea544a6
3
+ metadata.gz: 6b0d20bc65ef48dcf9e84a3af0e6d1108ceb749cef7e9a6cf877905c27b38581
4
+ data.tar.gz: 586d8f1ee447339bd9b849f54e822c9a925de798c5ffc940ba16b4d2a00a13e2
5
5
  SHA512:
6
- metadata.gz: d78af12542b70c63b14876bd42fef3cf146b71ec38e4316b4039f27b560fd82c0b04b41c0780b33921fc4e0635218dc663cd50d81b37dcc945702ef60036d45e
7
- data.tar.gz: f986873a36732ef1b05cc3c92afa1edf15fe00d72591b08e25a0e6f1e337b1b9fc49a931e64fce4c0217c5e36fbd697f0ce56e113f18ef989593e73beeac89c6
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EventStoreClient
4
- VERSION = '0.1.10'
4
+ VERSION = '0.1.11'
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: 0.1.10
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-10 00:00:00.000000000 Z
11
+ date: 2020-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-schema