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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 196db0d6724704f5e127c8c322a8b98f90295df7
4
- data.tar.gz: cbede7bc57c562a1b8446c54ba6d3397d6971d45
3
+ metadata.gz: 804ec8bcdbcdabf8515f82dd7b428a4930476990
4
+ data.tar.gz: 0e68766b913388a04f9f6853304b8348997cb3be
5
5
  SHA512:
6
- metadata.gz: e56de0cc4b60d5d9fab764c49ea7b960066d327e40c659b209da511c9bb76593d958c3e049d5669d5e4d4761d4cc9f5d13b2104aa4717c4d7f6a1c9c5e3d2533
7
- data.tar.gz: 81787eb8833e5bbbfea56d5a5a3135356a7e85ff610633932a995c14cc1cbb2e3517c4f9e9ebe8a46ae0ce33a5e58de235a887913112c3a9dc08948bafad89aa
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 Log::Dependency
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 self, session: session
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.1
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-04 00:00:00.000000000 Z
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: []