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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 124fba5b3a01b411d35423265f33d4de64cf5a5824cb57491e502454557de90c
4
- data.tar.gz: 9352b0c064d692bfc5f3623bf3c3a487a9c430a08f3526da2cb03ecaf36bd40c
3
+ metadata.gz: c4e4684f9e4b569bd20e0b09e70a043d44d1f650530e192d8a4eb9e60fcc35c7
4
+ data.tar.gz: 40ee62f907e02a421db4e83653c7c64953df65402c64613597fafa75ae2d8370
5
5
  SHA512:
6
- metadata.gz: 669a73959571590b6cc4ac32835c761d2aeb93a3b4c57e6043d79b94f5d271f523020f839845ae9f8aef0274757bb8de837d59a1822f6b51790fd582ff1e344a
7
- data.tar.gz: d0740368d330aa08bfbd8e65fb7253800b1c8f055c29d9d92202b08812a79d64b74a08c8d557ab563efad57a021830a9a70fc4986b4bfd6aa652cb5e526b56db
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,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eventsimple (1.4.0)
4
+ eventsimple (1.4.2)
5
5
  dry-struct (~> 1.6)
6
6
  dry-types (~> 1.7)
7
7
  pg (~> 1.4)
@@ -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, default: name.to_s
15
+ class_attribute :_identifier
16
16
  end
17
17
  end
18
18
 
19
- def identifier(name = nil)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Eventsimple
4
- VERSION = '1.4.0'
4
+ VERSION = '1.4.2'
5
5
  end
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.0
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-24 00:00:00.000000000 Z
11
+ date: 2024-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct