evt-consumer-postgres 0.2.2.0 → 0.3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/consumer/postgres/controls/position/store/{updated.rb → recorded.rb} +2 -2
- data/lib/consumer/postgres/controls/position/stream/write.rb +1 -1
- data/lib/consumer/postgres/controls.rb +1 -1
- data/lib/consumer/postgres/position_store/{updated.rb → recorded.rb} +1 -1
- data/lib/consumer/postgres/position_store.rb +2 -2
- data/lib/consumer/postgres.rb +1 -1
- 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: f3ad012350bdf4d1a4ec5da57f9906c961ba02761f643366ac026e2db1a1db8a
|
4
|
+
data.tar.gz: fcc66d6e3cd60e02bed941a025d8b181811f6c0f82e100ff886afad11d79780c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f4d93a30cc30ba7d3a266c86f9ebc5d0726d5add1193b7e88aeb5bcf77a02120f2f86edb2ef3cf31da88da8410c2d025ea27cebe1469cdc15eaa62d6b5e5cc8
|
7
|
+
data.tar.gz: baf6fdf9bbffda2d02ce0a47d507b2aeddd325f3731203603103952345376804b740a725d73c5ed7d0d21d37988a3a97754e9b73ec8e1203efa360dcb7e9552b
|
@@ -3,11 +3,11 @@ module Consumer
|
|
3
3
|
module Controls
|
4
4
|
module Position
|
5
5
|
module Store
|
6
|
-
module
|
6
|
+
module Recorded
|
7
7
|
def self.example(position: nil)
|
8
8
|
position ||= Position.example
|
9
9
|
|
10
|
-
message = PositionStore::
|
10
|
+
message = PositionStore::Recorded.new
|
11
11
|
message.position = position
|
12
12
|
message
|
13
13
|
end
|
@@ -7,7 +7,7 @@ module Consumer
|
|
7
7
|
def self.call(stream_name=nil, position: nil)
|
8
8
|
stream_name ||= StreamName::Position.example
|
9
9
|
|
10
|
-
message = Store::
|
10
|
+
message = Store::Recorded.example position: position
|
11
11
|
|
12
12
|
Messaging::Postgres::Write.(message, stream_name)
|
13
13
|
|
@@ -7,7 +7,7 @@ require 'consumer/postgres/controls/id'
|
|
7
7
|
require 'consumer/postgres/controls/identifier'
|
8
8
|
require 'consumer/postgres/controls/message_data'
|
9
9
|
require 'consumer/postgres/controls/position'
|
10
|
-
require 'consumer/postgres/controls/position/store/
|
10
|
+
require 'consumer/postgres/controls/position/store/recorded'
|
11
11
|
require 'consumer/postgres/controls/position/stream/write'
|
12
12
|
require 'consumer/postgres/controls/stream_name'
|
13
13
|
|
@@ -33,13 +33,13 @@ module Consumer
|
|
33
33
|
|
34
34
|
return nil if message_data.nil?
|
35
35
|
|
36
|
-
message = Messaging::Message::Import.(message_data,
|
36
|
+
message = Messaging::Message::Import.(message_data, Recorded)
|
37
37
|
|
38
38
|
message.position
|
39
39
|
end
|
40
40
|
|
41
41
|
def put(position)
|
42
|
-
message =
|
42
|
+
message = Recorded.new
|
43
43
|
message.position = position
|
44
44
|
|
45
45
|
write.(message, stream_name)
|
data/lib/consumer/postgres.rb
CHANGED
@@ -3,7 +3,7 @@ require 'consumer'
|
|
3
3
|
require 'messaging/postgres'
|
4
4
|
|
5
5
|
require 'consumer/postgres/position_store'
|
6
|
-
require 'consumer/postgres/position_store/
|
6
|
+
require 'consumer/postgres/position_store/recorded'
|
7
7
|
require 'consumer/postgres/position_store/stream_name'
|
8
8
|
|
9
9
|
require 'consumer/postgres/postgres'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-consumer-postgres
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-consumer
|
@@ -66,12 +66,12 @@ files:
|
|
66
66
|
- lib/consumer/postgres/controls/identifier.rb
|
67
67
|
- lib/consumer/postgres/controls/message_data.rb
|
68
68
|
- lib/consumer/postgres/controls/position.rb
|
69
|
-
- lib/consumer/postgres/controls/position/store/
|
69
|
+
- lib/consumer/postgres/controls/position/store/recorded.rb
|
70
70
|
- lib/consumer/postgres/controls/position/stream/write.rb
|
71
71
|
- lib/consumer/postgres/controls/stream_name.rb
|
72
72
|
- lib/consumer/postgres/position_store.rb
|
73
|
+
- lib/consumer/postgres/position_store/recorded.rb
|
73
74
|
- lib/consumer/postgres/position_store/stream_name.rb
|
74
|
-
- lib/consumer/postgres/position_store/updated.rb
|
75
75
|
- lib/consumer/postgres/postgres.rb
|
76
76
|
homepage: https://github.com/eventide-project/consumer-postgres
|
77
77
|
licenses:
|
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
93
|
version: '0'
|
94
94
|
requirements: []
|
95
95
|
rubyforge_project:
|
96
|
-
rubygems_version: 2.
|
96
|
+
rubygems_version: 2.7.3
|
97
97
|
signing_key:
|
98
98
|
specification_version: 4
|
99
99
|
summary: Category and stream consumer for postgres
|