event_store_client 2.0.1 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92e37b212f6c1cbdbc11e86031b157f5705c3800b706aff60c055ee74708801e
4
- data.tar.gz: 0f817ce23a6881b45a4522641273657da4cff42e65837993e2846a3e6b80da7d
3
+ metadata.gz: 1e15535ef466d6cd12c499c9bc20877f9496689cc872e4fa668ba18dd3797093
4
+ data.tar.gz: 820a5b5e437f2c4b5493f80ba1382388fea97864f1f135ba403c80a8da69666d
5
5
  SHA512:
6
- metadata.gz: 43d3d0810e18543debe3d05b0a5bdbb25fb42cb40673b52ec22d4b027ada18b9182aa60f749d0036547655d3fb628bb3b70ad6d642b4453cff37e617692efb1f
7
- data.tar.gz: 9aa84cc98d57358e8d4501c4e0b9a9e95b1b6b694bdf4f50b7d2df89b49a2df78c3117d5a206a299e3337afa9f62c03e00f76fefad60bf61796098b8d99fbefe
6
+ metadata.gz: c0618d7e6c28b8457c98aaaf3016c1e4e6fd9d46ad6bfe54d0191f8a25dfc0d096a9d9e917dee8dcfda60aa8ca522fb00d714a4c7921e45b8385185c07d2b412
7
+ data.tar.gz: 2a0e15686834a505580994c2b382ef52ca19cf3b087828cfd84ee1682083305ec7765d93ce714ccb279b1569da202431212641fe2ff2c94a3501947ca82a363f
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Yousty AG
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -1,3 +1,5 @@
1
+ # @title Appending events
2
+
1
3
  # Append your first event
2
4
 
3
5
  ## Append your first event
@@ -1,3 +1,5 @@
1
+ # @title Catch-up subscriptions
2
+
1
3
  # Catch-up subscriptions
2
4
 
3
5
  Subscriptions allow you to subscribe to a stream and receive notifications about new events added to the stream.
@@ -1,3 +1,5 @@
1
+ # @title Configuration
2
+
1
3
  # Configuration
2
4
 
3
5
  Currently only one setup is supported. For example, you can't configure a connection to multiple clusters.
@@ -6,7 +8,7 @@ Configuration options:
6
8
 
7
9
  | name | value | default value | description |
8
10
  |----------------------|--------------------------------------------------------------------------------------|-----------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
9
- | event_store_url | String | `'esdb://localhost:2113'` | Connection string. See description of possible values below. |
11
+ | eventstore_url | String | `'esdb://localhost:2113'` | Connection string. See description of possible values below. |
10
12
  | per_page | Integer | `20` | Number of events to return in one response. |
11
13
  | mapper | `EventStoreClient::Mapper::Default.new` or `EventStoreClient::Mapper::Encrypted.new` | `EventStoreClient::Mapper::Default.new` | An object that is responsible for serialization / deserialization and encryption / decryption of events. |
12
14
  | default_event_class | `DeserializedEvent` or any class, inherited from it | `DeserializedEvent` | This class will be used during the deserialization process when deserializer fails to resolve an event's class from response. |
@@ -1,3 +1,5 @@
1
+ # @title Deleting streams
2
+
1
3
  # Deleting streams
2
4
 
3
5
  ## Soft deleting streams
@@ -1,3 +1,5 @@
1
+ # @title Encrypting events
2
+
1
3
  # Encrypting events
2
4
 
3
5
  To encrypt/decrypt events payload, you can use an encrypted mapper.
@@ -1,3 +1,5 @@
1
+ # @title Linking events
2
+
1
3
  # Linking events
2
4
 
3
5
  ## Linking single event
@@ -1,3 +1,5 @@
1
+ # @title Reading events
2
+
1
3
  # Reading events
2
4
 
3
5
  ## Reading from a stream
@@ -39,6 +39,8 @@ module EventStoreClient
39
39
  end
40
40
 
41
41
  def deep_dup(hash)
42
+ return hash unless hash.instance_of?(Hash)
43
+
42
44
  dupl = hash.dup
43
45
  dupl.each { |k, v| dupl[k] = v.instance_of?(Hash) ? deep_dup(v) : v }
44
46
  dupl
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EventStoreClient
4
- VERSION = '2.0.1'
4
+ VERSION = '2.0.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: 2.0.1
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Wilgosz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-22 00:00:00.000000000 Z
11
+ date: 2022-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable
@@ -185,7 +185,7 @@ executables: []
185
185
  extensions: []
186
186
  extra_rdoc_files: []
187
187
  files:
188
- - MIT-LICENSE
188
+ - LICENSE.txt
189
189
  - README.md
190
190
  - Rakefile
191
191
  - docs/appending_events.md
data/MIT-LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright 2019 Sebastian Wilgosz
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.