evt-message_store-postgres 0.4.0.1 → 0.4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/message_store/postgres/get/last.rb +2 -19
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 804ec8bcdbcdabf8515f82dd7b428a4930476990
|
4
|
+
data.tar.gz: 0e68766b913388a04f9f6853304b8348997cb3be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9072be070eca9efc9d8a9e29611e98fd3b86354f960fa408162837ca05ad7087815453c861f893ae74d951d5d9f328862ab7a6de1cf7d5f5c946540ff89fda1c
|
7
|
+
data.tar.gz: 43928b49001998379c939684c836034e453b5c516c6e698ce37492699d5781cec2d01052a855a2911fc6f7ae1eaefc7289822027d2897167042cb93d521e50b0
|
@@ -2,29 +2,12 @@ module MessageStore
|
|
2
2
|
module Postgres
|
3
3
|
class Get
|
4
4
|
class Last
|
5
|
-
include
|
5
|
+
include MessageStore::Get::Last
|
6
6
|
|
7
7
|
dependency :session, Session
|
8
8
|
|
9
|
-
def self.build(session: nil)
|
10
|
-
new.tap do |instance|
|
11
|
-
instance.configure(session: session)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
def self.configure(receiver, attr_name: nil, session: nil)
|
16
|
-
attr_name ||= :get_last
|
17
|
-
instance = build(session: session)
|
18
|
-
receiver.public_send "#{attr_name}=", instance
|
19
|
-
end
|
20
|
-
|
21
9
|
def configure(session: nil)
|
22
|
-
Session.configure
|
23
|
-
end
|
24
|
-
|
25
|
-
def self.call(stream_name, session: nil)
|
26
|
-
instance = build(session: session)
|
27
|
-
instance.(stream_name)
|
10
|
+
Session.configure(self, session: session)
|
28
11
|
end
|
29
12
|
|
30
13
|
def call(stream_name)
|
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.4.0
|
4
|
+
version: 0.4.1.0
|
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: 2017-09-
|
11
|
+
date: 2017-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-message_store
|
@@ -83,9 +83,9 @@ 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
87
|
- evt-pg-list-messages
|
88
|
+
- evt-pg-create-db
|
89
89
|
- evt-pg-recreate-db
|
90
90
|
extensions: []
|
91
91
|
extra_rdoc_files: []
|