deimos-ruby 1.6.2 → 1.6.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: 53aab4ddcc19808cf7149ed226de9b7ddda07d12ed4237c157cce75780379c6c
4
- data.tar.gz: 74ebf879894b88fc4ce5082d4f8b82f8f79a0ef581bf368f25423a755d71d635
3
+ metadata.gz: 5867eea57702a40d8e07589dc1f260e772ae6491d306c8f9829ab3841915c280
4
+ data.tar.gz: 75610a9efa79b1a94d0ce31da751aea4fdc58a49b0fd8f4b86286b80c1dd7a90
5
5
  SHA512:
6
- metadata.gz: 4c0fa67f0b958ddc3083c278c5c195f896b134f822168df245e906e89f5f5414f063175e2ed1a444891a210d28e7a0d96836806b6ba2efd6f55bf46d929450c1
7
- data.tar.gz: 9fc31899551ec75dc0ca1e7ac02cc3f4ed429ec8eb25f42057024d2dc9cde5bef70eabafcf8276e7a8a4ae2b7a88b4efff5efe047715612bd5f5480ce1f52576
6
+ metadata.gz: 738b20ca02d57e34ac171994f15ebbb905f93e0846297e476cfe06af13857c074f6420bbe84cb6d7840d96d7dc82adc6ab15298cb6bf35a4c29ed9ee6f594bc6
7
+ data.tar.gz: 4c75fd4f60273b7c3e838e7325b11cf5891970adcebe0b28b23d6777261d4c33954240ecbb5b522840c5cde2549bb452505de19f9142c5efdf77170a6f8ced3b
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## UNRELEASED
9
9
 
10
+ ## 1.6.3 - 2020-05-04
11
+ ### Fixes :wrench:
12
+ - Fixed the payload logging fix.
13
+
10
14
  ## 1.6.2 - 2020-05-04
11
15
  ### Fixes :wrench:
12
16
  - When saving records via `ActiveRecordConsumer`, update `updated_at` to today's time
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- deimos-ruby (1.6.1)
4
+ deimos-ruby (1.6.2)
5
5
  avro_turf (~> 0.11)
6
6
  phobos (~> 1.9)
7
7
  ruby-kafka (~> 0.7)
@@ -15,16 +15,17 @@ module Deimos
15
15
 
16
16
  # :nodoc:
17
17
  def around_consume(payload, metadata)
18
+ decoded_payload = payload.dup
19
+ new_metadata = metadata.dup
18
20
  benchmark = Benchmark.measure do
19
21
  _with_error_span(payload, metadata) do
20
- new_metadata = metadata.dup
21
22
  new_metadata[:key] = decode_key(metadata[:key]) if self.class.config[:key_configured]
22
23
  decoded_payload = payload ? self.class.decoder.decode(payload) : nil
23
- _received_message(payload, metadata)
24
+ _received_message(decoded_payload, new_metadata)
24
25
  yield decoded_payload, new_metadata
25
26
  end
26
27
  end
27
- _handle_success(benchmark.real, payload, metadata)
28
+ _handle_success(benchmark.real, decoded_payload, new_metadata)
28
29
  end
29
30
 
30
31
  # Consume incoming messages.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deimos
4
- VERSION = '1.6.2'
4
+ VERSION = '1.6.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deimos-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner