evt-message_store-postgres 2.4.0.1 → 2.4.1.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 590a2dfbc57bd13753e594c481b12300c0417dbbbd190aab45a60106dba18eab
|
4
|
+
data.tar.gz: 0b1cc5cf3113929859c5ade51cb9a985e1b661e1b9ee4a25c2e525199fe1d03d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 839d81728b63b4a53cdd4e4c24422380fc6bb0cea709c2d69f223582f5a21bd531d8b92a4b493830b8d63d792085db59022bbcd89547493d645b6dc2fc3dcf67
|
7
|
+
data.tar.gz: 321409270965ba450d292b75eed03878c11e68b779bc949766b4d415a0fd65d3bb3d0c34d113576bc05d87bf2748415e3a186b4eb83b9a470765d277bd5396a0
|
@@ -6,19 +6,19 @@ module MessageStore
|
|
6
6
|
module MessageData
|
7
7
|
module Write
|
8
8
|
module List
|
9
|
-
Entry = Struct.new(:stream_name, :message_data)
|
9
|
+
Entry = Struct.new(:stream_name, :category, :message_data)
|
10
10
|
|
11
|
-
def self.get(instances: nil)
|
11
|
+
def self.get(instances: nil, stream_name: nil, category: nil)
|
12
12
|
instances ||= 1
|
13
13
|
|
14
|
-
stream_name = StreamName.example
|
15
|
-
|
16
14
|
list = []
|
17
15
|
instances.times do
|
18
|
-
|
16
|
+
instance_stream_name = stream_name || StreamName.example(category: category)
|
17
|
+
instance_category = MessageStore::StreamName.get_category(instance_stream_name)
|
18
|
+
|
19
19
|
write_message = Controls::MessageData::Write.example
|
20
20
|
|
21
|
-
list << Entry.new(
|
21
|
+
list << Entry.new(instance_stream_name, instance_category, write_message)
|
22
22
|
end
|
23
23
|
|
24
24
|
list
|
@@ -128,6 +128,14 @@ module MessageStore
|
|
128
128
|
connection.transaction(&blk)
|
129
129
|
end
|
130
130
|
|
131
|
+
def escape(data)
|
132
|
+
connection = connect
|
133
|
+
|
134
|
+
escaped_data = connection.escape(data)
|
135
|
+
|
136
|
+
escaped_data
|
137
|
+
end
|
138
|
+
|
131
139
|
def self.logger
|
132
140
|
@logger ||= Log.get self
|
133
141
|
end
|
@@ -6,7 +6,7 @@ module MessageStore
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def self.data_source
|
9
|
-
Defaults.data_source
|
9
|
+
Defaults.data_source
|
10
10
|
end
|
11
11
|
|
12
12
|
def self.names
|
@@ -28,7 +28,7 @@ module MessageStore
|
|
28
28
|
|
29
29
|
class Defaults
|
30
30
|
def self.data_source
|
31
|
-
ENV['MESSAGE_STORE_SETTINGS_PATH']
|
31
|
+
ENV['MESSAGE_STORE_SETTINGS_PATH'] || 'settings/message_store_postgres.json'
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-message_store-postgres
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.0
|
4
|
+
version: 2.4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: scripts
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-message_store
|
@@ -152,7 +152,7 @@ homepage: https://github.com/eventide-project/message-store-postgres
|
|
152
152
|
licenses:
|
153
153
|
- MIT
|
154
154
|
metadata: {}
|
155
|
-
post_install_message:
|
155
|
+
post_install_message:
|
156
156
|
rdoc_options: []
|
157
157
|
require_paths:
|
158
158
|
- lib
|
@@ -167,8 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
167
|
- !ruby/object:Gem::Version
|
168
168
|
version: '0'
|
169
169
|
requirements: []
|
170
|
-
rubygems_version: 3.
|
171
|
-
signing_key:
|
170
|
+
rubygems_version: 3.1.2
|
171
|
+
signing_key:
|
172
172
|
specification_version: 4
|
173
173
|
summary: Message store implementation for PostgreSQL
|
174
174
|
test_files: []
|