eventsimple 1.3.2 → 1.3.3

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: 1bb43585cd44c10a9e289fc7a0813557a73d4bcd9e56c10705c96ea9c1d4a231
4
- data.tar.gz: 49ee3f1aec8aafece94811a917e7c364c8bc04988da1b653ddde542c7174ed2c
3
+ metadata.gz: 872c921ebca70dcc352f005afe39e0cf48ae4bb2d009f7f55acc95f0b1250f04
4
+ data.tar.gz: 0445db43a4641baceb36926e29e9b9eaa9c41aff5c69029d05bc2af9c457afa3
5
5
  SHA512:
6
- metadata.gz: f53934af5ad08065bd5c00b216769a72a6a4e20efb37889823edfcb23e09a13974fd2faf5dbbb137554dd864634e8c4fcf8505cb08f2cf306d8f232adc4371f4
7
- data.tar.gz: cbe204f81f6e8ef36ebe34245c67fca329cc6d016332f656e3f762bf5c92ea2b122e326d193cb7855c8dc3cfa0b1e6978894c5539448889b0b85a699af1c3347
6
+ metadata.gz: fa5257d5083fa3a2f1f6a6e6d57e249e0a78dd8a8c4d1a257a1726a1b6939a857dde9832e1a7e25e113c8697a869de435737d836449bd5a4ccb0358da8d6d7d7
7
+ data.tar.gz: b89aa88f3b19f9286148631207176c828be018c78cf68291235e267be2194f01f08bf85d56be04d9fd6045f02e98f008ade400ac0e7eb2c3858059fd96b552e7
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 1.3.3 - 2024-04-02
10
+ ### Changed
11
+ - add `parent_record` configuration so it can be easily overwritten
12
+
9
13
  ## 1.3.2 - 2024-03-01
10
14
  ### Changed
11
15
  - Updated dependencies to fix a security vulnerability
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eventsimple (1.3.2)
4
+ eventsimple (1.3.3)
5
5
  dry-struct (~> 1.6)
6
6
  dry-types (~> 1.7)
7
7
  pg (~> 1.4)
@@ -358,6 +358,7 @@ GEM
358
358
 
359
359
  PLATFORMS
360
360
  arm64-darwin-22
361
+ arm64-darwin-23
361
362
  x86_64-linux
362
363
 
363
364
  DEPENDENCIES
@@ -4,6 +4,7 @@ module Eventsimple
4
4
  class Configuration
5
5
  attr_reader :max_concurrency_retries
6
6
  attr_writer :metadata_klass
7
+ attr_writer :parent_record_klass
7
8
  attr_accessor :retry_reactor_on_record_not_found
8
9
 
9
10
  attr_accessor :ui_visible_models
@@ -12,6 +13,7 @@ module Eventsimple
12
13
  @dispatchers = []
13
14
  @max_concurrency_retries = 2
14
15
  @metadata_klass = 'Eventsimple::Metadata'
16
+ @parent_record_klass = 'ApplicationRecord'
15
17
  @retry_reactor_on_record_not_found = false
16
18
 
17
19
  @ui_visible_models = [] # internal use only
@@ -39,6 +41,10 @@ module Eventsimple
39
41
  def metadata_klass
40
42
  @metadata_klass_const ||= @metadata_klass.constantize
41
43
  end
44
+
45
+ def parent_record_klass
46
+ @parent_record_const ||= @parent_record_klass.constantize
47
+ end
42
48
  # rubocop:enable Naming/MemoizedInstanceVariableName
43
49
  end
44
50
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Eventsimple
4
4
  module Outbox
5
- class Cursor < ApplicationRecord
5
+ class Cursor < Eventsimple.configuration.parent_record_klass
6
6
  self.table_name = 'eventsimple_outbox_cursors'
7
7
 
8
8
  def self.fetch(event_klass, group_number)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Eventsimple
4
- VERSION = '1.3.2'
4
+ VERSION = '1.3.3'
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.3.2
4
+ version: 1.3.3
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-02-29 00:00:00.000000000 Z
11
+ date: 2024-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct