evt-message_store-postgres 0.6.0.0 → 0.6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/message_store/postgres/get.rb +2 -2
- data/lib/message_store/postgres/get/last.rb +2 -20
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e16c1c8ef819fab77d25aa0eae8b12302d56a27346508b5e37098e065d72534d
|
4
|
+
data.tar.gz: ab1e16422a9d3316314687170b404b47b174ff7208d74d33e952f4ca7a52f5d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49d53b9cef198ecfa5caa536dcf32a8e28725fcfea9ae4ebc62a949e55699480745b1590ca362920e5efbb71c7550777dd74409aa1b14ad908377b346de34533
|
7
|
+
data.tar.gz: b3ab23293528c96107666726deb40053ebe8dacc20b9a35879eef0f5f9535ee5f46a94edd326eae9002051e750239560e796483222e194131565829013c82deb
|
@@ -74,12 +74,12 @@ module MessageStore
|
|
74
74
|
module Deserialize
|
75
75
|
def self.data(serialized_data)
|
76
76
|
return nil if serialized_data.nil?
|
77
|
-
Transform::Read.(serialized_data, MessageData::Hash
|
77
|
+
Transform::Read.(serialized_data, :json, MessageData::Hash)
|
78
78
|
end
|
79
79
|
|
80
80
|
def self.metadata(serialized_metadata)
|
81
81
|
return nil if serialized_metadata.nil?
|
82
|
-
Transform::Read.(serialized_metadata, MessageData::Hash
|
82
|
+
Transform::Read.(serialized_metadata, :json, MessageData::Hash)
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
@@ -53,33 +53,15 @@ module MessageStore
|
|
53
53
|
message_data
|
54
54
|
end
|
55
55
|
|
56
|
-
def __convert(records)
|
57
|
-
logger.trace { "Converting records to message data (Records Count: #{records.ntuples})" }
|
58
|
-
|
59
|
-
messages = records.map do |record|
|
60
|
-
record['data'] = Deserialize.data(record['data'])
|
61
|
-
record['metadata'] = Deserialize.metadata(record['metadata'])
|
62
|
-
record['time'] = Time.utc_coerced(record['time'])
|
63
|
-
|
64
|
-
MessageData::Read.build record
|
65
|
-
|
66
|
-
break
|
67
|
-
end
|
68
|
-
|
69
|
-
logger.debug { "Converted records to message data (Message Data Count: #{messages.length})" }
|
70
|
-
|
71
|
-
messages
|
72
|
-
end
|
73
|
-
|
74
56
|
module Deserialize
|
75
57
|
def self.data(serialized_data)
|
76
58
|
return nil if serialized_data.nil?
|
77
|
-
Transform::Read.(serialized_data, MessageData::Hash
|
59
|
+
Transform::Read.(serialized_data, :json, MessageData::Hash)
|
78
60
|
end
|
79
61
|
|
80
62
|
def self.metadata(serialized_metadata)
|
81
63
|
return nil if serialized_metadata.nil?
|
82
|
-
Transform::Read.(serialized_metadata, MessageData::Hash
|
64
|
+
Transform::Read.(serialized_metadata, :json, MessageData::Hash)
|
83
65
|
end
|
84
66
|
end
|
85
67
|
|
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: 0.6.0.
|
4
|
+
version: 0.6.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
8
|
autorequire:
|
9
9
|
bindir: scripts
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-message_store
|
@@ -83,10 +83,10 @@ dependencies:
|
|
83
83
|
description: " "
|
84
84
|
email: opensource@eventide-project.org
|
85
85
|
executables:
|
86
|
-
- evt-pg-create-db
|
87
86
|
- evt-pg-delete-db
|
88
|
-
- evt-pg-
|
87
|
+
- evt-pg-create-db
|
89
88
|
- evt-pg-recreate-db
|
89
|
+
- evt-pg-list-messages
|
90
90
|
extensions: []
|
91
91
|
extra_rdoc_files: []
|
92
92
|
files:
|
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
147
|
version: '0'
|
148
148
|
requirements: []
|
149
149
|
rubyforge_project:
|
150
|
-
rubygems_version: 2.
|
150
|
+
rubygems_version: 2.7.3
|
151
151
|
signing_key:
|
152
152
|
specification_version: 4
|
153
153
|
summary: Message store implementation for PostgreSQL
|