event_store_client 2.0.3 → 2.0.4

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: 1e15535ef466d6cd12c499c9bc20877f9496689cc872e4fa668ba18dd3797093
4
- data.tar.gz: 820a5b5e437f2c4b5493f80ba1382388fea97864f1f135ba403c80a8da69666d
3
+ metadata.gz: 857f587d240bbcb824b885cb5fa2c0b077351fcb12dead2d074ba23036252460
4
+ data.tar.gz: fa56d9d29c29faf05ddc1b20d9de6f1aec46d9d80a330184131b5902238f3310
5
5
  SHA512:
6
- metadata.gz: c0618d7e6c28b8457c98aaaf3016c1e4e6fd9d46ad6bfe54d0191f8a25dfc0d096a9d9e917dee8dcfda60aa8ca522fb00d714a4c7921e45b8385185c07d2b412
7
- data.tar.gz: 2a0e15686834a505580994c2b382ef52ca19cf3b087828cfd84ee1682083305ec7765d93ce714ccb279b1569da202431212641fe2ff2c94a3501947ca82a363f
6
+ metadata.gz: c584fa5f7817f4631a6f73e91f7a2ee99b153e49b9b56980317f4a61f4d87ae197037b56e204f6f71729006f5c493404510136f131fa8efcca3c1b150cc18c5a
7
+ data.tar.gz: 3f995f97559e9b305eac4d0cf7ba0bbef9c6e85a399a2109385f9cab03669791e3a2915c5a3b7564b3956f2d216370dcd8150814a38001a5219994873a8d0c3a
@@ -32,6 +32,9 @@ module EventStoreClient
32
32
  # which key should be used as an identifier.
33
33
  # *Returns*: General +Event+ instance with encrypted data
34
34
  def serialize(event)
35
+ # Links does not need to be encrypted
36
+ return Default.new(serializer: serializer).serialize(event) if event.type == '$>'
37
+
35
38
  encryption_schema = (
36
39
  event.class.respond_to?(:encryption_schema) &&
37
40
  event.class.encryption_schema
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EventStoreClient
4
- VERSION = '2.0.3'
4
+ VERSION = '2.0.4'
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.3
4
+ version: 2.0.4
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-10-26 00:00:00.000000000 Z
11
+ date: 2022-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable