evt-consumer-postgres 2.2.0.0 → 2.3.0.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
  SHA256:
3
- metadata.gz: d70c7356d131dd6d6cbe9242ddfa54ac600e40cea725de3232042cb3b0cac802
4
- data.tar.gz: 2aecd3ff64cd6258b48b1ebcb95f432606d998b386592f4cdc94775d86ea2faa
3
+ metadata.gz: 7e0b58c177efbf2710eaa9b33a6dfe06c370be2ebe1db9b777e2c3d99e3d1e43
4
+ data.tar.gz: 3b3c33e16e641a4c53992c722847268a1191cb7834d88eecd1df80fb4e256e23
5
5
  SHA512:
6
- metadata.gz: 02e7fa5d900dd3e9afa138aedb2f257fd7b2d16dae4fbf8373981ddab290c63d2854e555921c0b06894c679f5cf2bf15b68df2c3a69daba037624ee9868a9b00
7
- data.tar.gz: bc1c3e7c2cfc5db09cdb805463602c450785a0b9d283044ad77a3921ba40004c2c7a7c7b4f851e739a47f09faa3a4359c30143cf41dd02d5634d334c0db509d1
6
+ metadata.gz: a44ce3d957f49623d19eeec08aaa26aac7e0e911787eaa29b774caa80773ae843b1ca5ac45d32878e1240b638b4c89fd7db347785001bf420566fcbd920b9e60
7
+ data.tar.gz: 336e31162e42811c34a6a82b76eb4992051376b01e37014e22f7eafef2d99529846b3fcf7654713f7c4aef352e9f6a0262306d87422f99e380cf92e04201531a
@@ -1,6 +1,7 @@
1
1
  require 'consumer'
2
2
 
3
3
  require 'messaging/postgres'
4
+ require 'consumer/postgres/identifier'
4
5
 
5
6
  require 'consumer/postgres/position_store'
6
7
  require 'consumer/postgres/position_store/recorded'
@@ -1,7 +1,7 @@
1
1
  module Consumer
2
2
  module Postgres
3
3
  module Controls
4
- ID = Identifier::UUID::Controls::Incrementing
4
+ ID = ::Identifier::UUID::Controls::Incrementing
5
5
  end
6
6
  end
7
7
  end
@@ -0,0 +1,7 @@
1
+ module Consumer
2
+ module Postgres
3
+ module Identifier
4
+ Error = Class.new(RuntimeError)
5
+ end
6
+ end
7
+ end
@@ -21,6 +21,10 @@ module Consumer
21
21
  logger.info(tag: :*) { "Correlation: #{correlation}" }
22
22
  end
23
23
 
24
+ unless identifier.nil?
25
+ logger.info(tag: :*) { "Identifier: #{identifier}" }
26
+ end
27
+
24
28
  unless group_member.nil? && group_size.nil?
25
29
  logger.info(tag: :*) { "Group Member: #{group_member.inspect}, Group Size: #{group_size.inspect}" }
26
30
  end
@@ -28,6 +32,18 @@ module Consumer
28
32
  unless condition.nil?
29
33
  logger.info(tag: :*) { "Condition: #{condition}" }
30
34
  end
35
+
36
+ unless poll_interval_milliseconds.nil?
37
+ logger.info(tag: :*) { "Poll Interval Milliseconds: #{poll_interval_milliseconds}" }
38
+ end
39
+
40
+ unless position_update_interval.nil?
41
+ logger.info(tag: :*) { "Position Update Interval: #{position_update_interval}" }
42
+ end
43
+
44
+ if identifier.nil? && !group_member.nil? && !group_size.nil?
45
+ raise Identifier::Error, 'Identifier must not be omitted when the consumer is a member of a group'
46
+ end
31
47
  end
32
48
 
33
49
  def configure(batch_size: nil, settings: nil, correlation: nil, group_member: nil, group_size: nil, condition: nil)
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: 2.2.0.0
4
+ version: 2.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: 2019-12-10 00:00:00.000000000 Z
11
+ date: 2020-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-consumer
@@ -70,6 +70,7 @@ files:
70
70
  - lib/consumer/postgres/controls/position/store/recorded.rb
71
71
  - lib/consumer/postgres/controls/position/stream/write.rb
72
72
  - lib/consumer/postgres/controls/stream_name.rb
73
+ - lib/consumer/postgres/identifier.rb
73
74
  - lib/consumer/postgres/position_store.rb
74
75
  - lib/consumer/postgres/position_store/recorded.rb
75
76
  - lib/consumer/postgres/position_store/stream_name.rb
@@ -93,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
94
  - !ruby/object:Gem::Version
94
95
  version: '0'
95
96
  requirements: []
96
- rubygems_version: 3.0.1
97
+ rubygems_version: 3.1.2
97
98
  signing_key:
98
99
  specification_version: 4
99
100
  summary: Postgres implementation of continuous subscription to a category and message