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

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: 42ac705b5012248d24a0355f4fbb8ad3e66ed57b3ee08329aea148b57fe65a27
4
- data.tar.gz: d5e22a7400ed5471815ea8b14a86fe3253ea870c024c4c7ecfcacc5f80042085
3
+ metadata.gz: ab3cdef123f93f1d1413cd4028f25787d5024709a021bc49f40932466a001696
4
+ data.tar.gz: 0d0b0a62f592d517a610d08cbc10372edc541c18d95071f6238c365d5dfc5d98
5
5
  SHA512:
6
- metadata.gz: 0c6f493835cff025892932d7b8d6f0f2ad61f2d26eda7523fe2df217916187512cec3c3e5e21c08eaeaedfc2ede260acee03e0341ee844e13f28974a79de9913
7
- data.tar.gz: d74bad2d818f09bc81577c06eef13071bbe52d0f3bddec7b8067fa5e360200db96af50d4d1e7f477390d2dca4ba66ae9101ce281f312d6c6acdfedbd5b8efa0d
6
+ metadata.gz: 6fd99053fb0cd110dc3518bb798c68920d341d45e1f5d63c2830e06ae467598249812aaf25734137994070c2b09c646291916477e0a07196f84af42f6aca5bcb
7
+ data.tar.gz: 80a510ca35476e303f9189635f12951eb63f0fd4d9145452f22eaaf6f41ddf669cfd5b5ba59008a2e62e7a8facae5e7a5435c0f0af1c8f94528b375765fb1f5f
@@ -45,8 +45,12 @@ module Deimos
45
45
  if m.respond_to?(:payload)
46
46
  m.key || m.payload['message_id']
47
47
  elsif m
48
- payload = m[:payload]&.with_indifferent_access
49
- m[:key] || m[:payload_key] || payload[:payload_key] || payload[:message_id]
48
+ if m[:payload].is_a?(String)
49
+ m[:key] || m[:payload_key]
50
+ else
51
+ payload = m[:payload]&.with_indifferent_access
52
+ m[:key] || m[:payload_key] || payload[:payload_key] || payload[:message_id]
53
+ end
50
54
  end
51
55
  end
52
56
  log_message.merge!(
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deimos
4
- VERSION = '2.0.0-beta2'
4
+ VERSION = '2.0.0-beta3'
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.beta2
4
+ version: 2.0.0.pre.beta3
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-13 00:00:00.000000000 Z
11
+ date: 2025-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avro_turf