deimos-ruby 2.0.0.pre.beta3 → 2.0.0.pre.beta5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab3cdef123f93f1d1413cd4028f25787d5024709a021bc49f40932466a001696
4
- data.tar.gz: 0d0b0a62f592d517a610d08cbc10372edc541c18d95071f6238c365d5dfc5d98
3
+ metadata.gz: ec1175b32af9a438344b507df915824244ac3c2f0756465bf9c032795aad65a6
4
+ data.tar.gz: de5ded4703fd546c3257a8e5bdd52f502df9e755272588bd8636d5057e6f5279
5
5
  SHA512:
6
- metadata.gz: 6fd99053fb0cd110dc3518bb798c68920d341d45e1f5d63c2830e06ae467598249812aaf25734137994070c2b09c646291916477e0a07196f84af42f6aca5bcb
7
- data.tar.gz: 80a510ca35476e303f9189635f12951eb63f0fd4d9145452f22eaaf6f41ddf669cfd5b5ba59008a2e62e7a8facae5e7a5435c0f0af1c8f94528b375765fb1f5f
6
+ metadata.gz: 7e9db7f92753f6b3d4433ab8545f91f43e7179c9438849766567b88247216f159413c7ec6048ea58681bad5478d9a569da5ce1ab58cc72147ccecdd800130ce0
7
+ data.tar.gz: a12e93d3db8bc7f9fb9f35afe43c9ec23ed3203a6fc4e80a1d1832403b1b77b664d6abdfa95da4d220bb1b4e348c215fa9e35c247de0e4a2d933b680e3cea544
data/CHANGELOG.md CHANGED
@@ -6,7 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ## UNRELEASED
9
- - Feature: Added `max_batch_size` config to producer to allow custom batch size for publishing.
9
+
10
+ ## 2.0.0 - TBA
11
+ - Full rewrite of Deimos to work with Karafka. Please see [Upgrading](./docs/UPGRADING.md) for full information.
10
12
 
11
13
  # 1.24.3 - 2024-05-13
12
14
  - Feature: Enable `producers.persistent_connections` phobos setting
@@ -36,6 +36,8 @@ module Deimos
36
36
  # @param force_send [Boolean]
37
37
  # @return [void]
38
38
  def send_events(records, force_send: false)
39
+ return if Deimos.producers_disabled?(self)
40
+
39
41
  primary_key = @record_class&.primary_key
40
42
  messages = records.map do |record|
41
43
  if record.respond_to?(:attributes)
@@ -9,9 +9,9 @@ module Deimos
9
9
  # @param messages [Array<Hash>]
10
10
  # @return [void]
11
11
  def publish(producer_class:, messages:)
12
+ execute(producer_class: producer_class, messages: messages)
12
13
  message = ::Deimos::Logging.messages_log_text(producer_class.karafka_config.payload_log, messages)
13
14
  Deimos::Logging.log_info({message: 'Publishing Messages:'}.merge(message))
14
- execute(producer_class: producer_class, messages: messages)
15
15
  end
16
16
 
17
17
  # @param producer_class [Class<Deimos::Producer>]
@@ -126,7 +126,7 @@ module Deimos
126
126
  end
127
127
 
128
128
  def topic
129
- karafka_config.name
129
+ karafka_config&.name
130
130
  end
131
131
 
132
132
  # @param sync [Boolean]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deimos
4
- VERSION = '2.0.0-beta3'
4
+ VERSION = '2.0.0-beta5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deimos-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.beta3
4
+ version: 2.0.0.pre.beta5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-14 00:00:00.000000000 Z
11
+ date: 2025-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avro_turf