deimos-ruby 2.0.0.pre.alpha7 → 2.0.0.pre.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/deimos/ext/producer_middleware.rb +1 -1
- data/lib/deimos/ext/routing_defaults.rb +1 -1
- data/lib/deimos/logging.rb +6 -1
- data/lib/deimos/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: f5a771b9dee159bd0827bd8d3068cec505e8494e9b57a4e9c3038d0d48309dfc
|
4
|
+
data.tar.gz: 82cb497cc46f8cd3812399a36fd3520b7d7716c1f389d6474dac76326b5761be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a2ddfdae480ed35c08815d65d708e468e201c7421f9edca36c5df8c725c69821d4a2978c80544028539926fc24e52045a2eda67cafb19458798dadf91cb9c71
|
7
|
+
data.tar.gz: f8cbd6e123c31a69198fd4c20d2adbda9527258fa35048e15660604cf4aaecd607adfb639ad91d3d6e5b19784555e4096bbd388d2dad33b349b1f9ca4d79af2e
|
@@ -10,7 +10,7 @@ module Deimos
|
|
10
10
|
message: message
|
11
11
|
) do
|
12
12
|
config = Deimos.karafka_config_for(topic: message[:topic])
|
13
|
-
return message if config.nil?
|
13
|
+
return message if config.nil? || config.schema.nil?
|
14
14
|
return if message[:payload] && !message[:payload].is_a?(Hash) && !message[:payload].is_a?(SchemaClass::Record)
|
15
15
|
|
16
16
|
m = Deimos::Message.new(message[:payload].to_h,
|
data/lib/deimos/logging.rb
CHANGED
@@ -42,7 +42,12 @@ module Deimos
|
|
42
42
|
case payload_log
|
43
43
|
when :keys
|
44
44
|
keys = messages.map do |m|
|
45
|
-
m.respond_to?(:payload)
|
45
|
+
if m.respond_to?(:payload)
|
46
|
+
m.key || m.payload['message_id']
|
47
|
+
elsif m
|
48
|
+
payload = m[:payload]&.with_indifferent_access
|
49
|
+
m[:key] || m[:payload_key] || payload[:payload_key] || payload[:message_id]
|
50
|
+
end
|
46
51
|
end
|
47
52
|
log_message.merge!(
|
48
53
|
payload_keys: keys
|
data/lib/deimos/version.rb
CHANGED
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.
|
4
|
+
version: 2.0.0.pre.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Orner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avro_turf
|