eventsimple 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/eventsimple/outbox/consumer.rb +8 -2
- data/lib/eventsimple/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c4e4684f9e4b569bd20e0b09e70a043d44d1f650530e192d8a4eb9e60fcc35c7
|
|
4
|
+
data.tar.gz: 40ee62f907e02a421db4e83653c7c64953df65402c64613597fafa75ae2d8370
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4ba23518b78c46ca08a7b5669a2870a2e993054d95995c4bf7a564db63b0bcf5b8a141d380a3006fc2259f41689d6570a1ed9d39b8483badb84d1fb5f7d02105
|
|
7
|
+
data.tar.gz: 9f27f387e7a7cff1631b6b4f427c167a692b1e2664783bd1a4ded614a3abb7266921c2f3195a521fe4e348064f3cce808e2eb9a481b58bdba4154f45af64179a
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -12,11 +12,11 @@ module Eventsimple
|
|
|
12
12
|
class_attribute :_processor_klass
|
|
13
13
|
class_attribute :_processor
|
|
14
14
|
class_attribute :stop_consumer, default: false
|
|
15
|
-
class_attribute :_identifier
|
|
15
|
+
class_attribute :_identifier
|
|
16
16
|
end
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
-
def identifier(name
|
|
19
|
+
def identifier(name)
|
|
20
20
|
self._identifier = name
|
|
21
21
|
end
|
|
22
22
|
|
|
@@ -46,6 +46,12 @@ module Eventsimple
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
def run_consumer(group_number:)
|
|
49
|
+
raise 'Eventsimple: No event class defined' unless _event_klass
|
|
50
|
+
raise 'Eventsimple: No processor defined' unless _processor
|
|
51
|
+
raise 'Eventsimple: No identifier defined' unless _identifier
|
|
52
|
+
|
|
53
|
+
Rails.logger.info("Starting consumer for #{_identifier}, processing #{_event_klass} events with group number #{group_number}")
|
|
54
|
+
|
|
49
55
|
cursor = Outbox::Cursor.fetch(_identifier, group_number: group_number)
|
|
50
56
|
|
|
51
57
|
until stop_consumer
|
data/lib/eventsimple/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eventsimple
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Zulfiqar Ali
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-04-
|
|
11
|
+
date: 2024-04-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dry-struct
|