eventsimple 1.4.0 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- data/app/views/eventsimple/shared/_sidebar.html.erb +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
@@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## Unreleased
|
8
8
|
|
9
|
+
## 1.4.2 - 2024-04-30
|
10
|
+
### Changed
|
11
|
+
- Raise error on missing consumer config
|
12
|
+
|
13
|
+
## 1.4.1 - 2024-04-28
|
14
|
+
### Fixed
|
15
|
+
- Fix Sidebar scroll
|
16
|
+
|
9
17
|
## 1.4.0 - 2024-04-02
|
10
18
|
### Changed
|
11
19
|
- Production ready release of the outbox consumer
|
data/Gemfile.lock
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<!-- Sidebar Nav Start -->
|
2
|
-
<nav class="d-flex flex-column flex-shrink-0 p-3 text-white bg-dark">
|
2
|
+
<nav class="d-flex flex-column flex-shrink-0 p-3 text-white bg-dark" style="overflow-y: auto;">
|
3
3
|
<%= link_to root_path, class: 'd-flex align-items-center mb-3 mb-md-0 me-md-auto text-white text-decoration-none' do %>
|
4
4
|
<span class="fs-4">Eventsimple</span>
|
5
5
|
<% end %>
|
@@ -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
|