evt-message_store-postgres 0.3.0.2 → 0.3.0.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
  SHA1:
3
- metadata.gz: 63c437102d0a3530a7817391a84f9cdd4fb4ddaa
4
- data.tar.gz: a7564eb5c5dffc0cca0fa9aab11188c481de90f8
3
+ metadata.gz: 4e85a48e13c5a1778f6415a12a752159d3bac4eb
4
+ data.tar.gz: a36146ecdac5d62cb44fd710ae6f3c2f8d9070e1
5
5
  SHA512:
6
- metadata.gz: 394693fd2fe9acfb91693b5d2ae58fedc3cfa0444f1b09ea083632c3fa5358cdf54ef48ace989c36d77f57bff2b4d4fb56a6798bf4dfbc76cd7ab6116a329d35
7
- data.tar.gz: 605e984b76b46946609aed38ddfaed45455d5e3521610c48a2de0a647a368b77b225160298567dedbcb08ae8d551e9a738d32e5d3922a951c1135591cd6214cf
6
+ metadata.gz: 43e7dcad5a097f20d500763e32ec6786c23fc9b6f15521dd0db18c8f8b2e3f72b04c67f4c3615ad8fe9f530dc589c7bfafce49ef18ea632a78e16e2cf530843f
7
+ data.tar.gz: 9c518465879a31e3c25c3a66c372ed54363515d35178c5edf065ff6d4c3a05473ac3ea63433edf2332ac326f1f948adfbe4ad4965169e97fe64790d0222e987f
@@ -2,34 +2,15 @@ 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)
31
- logger.trace { "Getting last message data (Stream Name: #{stream_name})" }
32
-
33
14
  record = get_record(stream_name)
34
15
 
35
16
  return nil if record.nil?
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.3.0.2
4
+ version: 0.3.0.3
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-06-01 00:00:00.000000000 Z
11
+ date: 2017-08-03 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: []