event_store_client 2.1.2 → 2.1.3

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: 1b9b08383eb1a6c117cbb4a3c691395351a13fa471e6b86b7513297431cb2d03
4
- data.tar.gz: f56227663d39cb4a753bd7f01e6b56b41febda176ba82d4d9d7afdc848ee9429
3
+ metadata.gz: cf7ad41170584cd3dbe64ba7afff6e8e3af7a51277cf60e5732b6187e18e8170
4
+ data.tar.gz: 2cb382ee414a9d00373954e05f6a931e9bec042a84491dd58d2d96f4fd47559c
5
5
  SHA512:
6
- metadata.gz: 402580786e13490581dc24e91a41bf2ac9c7d2846cd79cacd46b75c41fbce020808a6ed6cba615d191bc036f2afafeb49908ca2ee8d5b65cb7f6e63d9b8b69d3
7
- data.tar.gz: 98caa3a759cb2594087805e3eafa83141d4f9db797c0eff8266aeb188c24b04e1a74d8cb0df3c3cc967a144e61501f9307a93a06fa1ae14227c457987399d770
6
+ metadata.gz: adec2fceef915b4383e694f299e91963bd27bebcf6b3bcf5a25d8549bc6b6038a2d58ab1937444a8ffa3fd8785ed6f8351ec9b9960537a4d4000d3f7ce80d6c0
7
+ data.tar.gz: ad2b082b49f5c6d40f6f74bf5e31543878b1d09787650381687eb1b9367aecbc80121d277f929a242e26e7f82d15dede426dc0da983ced71712b87497a3ede36
@@ -34,8 +34,8 @@ module EventStoreClient
34
34
  def to_grpc
35
35
  {
36
36
  id: { string: id },
37
- data: serializer.serialize(data),
38
- custom_metadata: serializer.serialize(custom_metadata),
37
+ data: serializer.serialize(data).force_encoding('ASCII-8BIT'),
38
+ custom_metadata: serializer.serialize(custom_metadata).force_encoding('ASCII-8BIT'),
39
39
  metadata: metadata
40
40
  }
41
41
  end
@@ -19,7 +19,7 @@ module EventStoreClient
19
19
  # @param data [String, Object]
20
20
  # @return [String]
21
21
  def self.serialize(data)
22
- return data if data.is_a?(String)
22
+ return data.dup if data.is_a?(String)
23
23
 
24
24
  JSON.generate(data)
25
25
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EventStoreClient
4
- VERSION = '2.1.2'
4
+ VERSION = '2.1.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.1.2
4
+ version: 2.1.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-11-21 00:00:00.000000000 Z
11
+ date: 2022-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-monads