deimos-ruby 2.0.5 → 2.0.7

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: 53cd09a846fed14b74b20cad18fc63374887c0a9deae4444f2d6548ea06b5b72
4
- data.tar.gz: 95f7b6402d43d2c2332f5abbc8c0374655b1ac713b484d3f4b516321b4e2207d
3
+ metadata.gz: c0447acd71ba66e241229af318d7879a6fa63ea129fc0a0440a227c1963c19d8
4
+ data.tar.gz: '094e57613d5fce079948ebbdd01b2e5971af0e1629166aaa79bb88834961db5a'
5
5
  SHA512:
6
- metadata.gz: 928b533075a3a98f5731f15e2e9436cd1ad0754006bcf18816bdc19933e0990478aa7cd06152e450f0041524cfcf04da839c1116a4895bf3c9e692e70aefa4f0
7
- data.tar.gz: b363497c5b9f1e9ea6dd71bf2d4e4bd59e7b96fe229cc58ee9caccb3ca86a7cd1ef4bf0636e7a354d496c790aa867fcad3405bdd4b353e72fce1d1e22ba32876
6
+ metadata.gz: 6a53e40b72117a70e459e18d58facb119bd7d68360f9c81f41a7d271fe9eed743c68c485213e889e22dac58dbf3103d3fe5cf8d6ee1e2dc972804bb4ea020275
7
+ data.tar.gz: 035bb92882d44f7bab054ed558af07d0877e6b0fa8b89960e514b0cb52aa5d179a98c33532e26eee54e033ea4f6edd2a3204e62be2485ef9c5304504c8707610
data/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## UNRELEASED
9
9
 
10
+ ## 2.0.7 - 2025-03-27
11
+
12
+ - Fix: Yet another crash for producers on non-producer configs.
13
+
14
+ ## 2.0.6 - 2025-03-26
15
+
16
+ - Fix: One more possible crash for producers on non-producer configs.
17
+
10
18
  ## 2.0.5 - 2025-03-19
11
19
 
12
20
  - Fix: Added support to handle producing union type of multiple records & data types.
@@ -122,7 +122,7 @@ module Deimos
122
122
  end
123
123
 
124
124
  def karafka_config
125
- Deimos.karafka_configs.find { |topic| topic.producer_classes.include?(self) }
125
+ Deimos.karafka_configs.find { |topic| topic.producer_classes&.include?(self) }
126
126
  end
127
127
 
128
128
  def topic
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deimos
4
- VERSION = '2.0.5'
4
+ VERSION = '2.0.7'
5
5
  end
data/lib/deimos.rb CHANGED
@@ -165,7 +165,7 @@ module Deimos
165
165
  if topic
166
166
  karafka_configs.find { |t| t.name == topic}
167
167
  elsif producer
168
- karafka_configs.find { |t| t.producer_classes.include?(producer)}
168
+ karafka_configs.find { |t| t.producer_classes&.include?(producer)}
169
169
  end
170
170
  end
171
171
 
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.5
4
+ version: 2.0.7
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-03-19 00:00:00.000000000 Z
11
+ date: 2025-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avro_turf