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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/deimos/consumer.rb +4 -3
- data/lib/deimos/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5867eea57702a40d8e07589dc1f260e772ae6491d306c8f9829ab3841915c280
|
4
|
+
data.tar.gz: 75610a9efa79b1a94d0ce31da751aea4fdc58a49b0fd8f4b86286b80c1dd7a90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 738b20ca02d57e34ac171994f15ebbb905f93e0846297e476cfe06af13857c074f6420bbe84cb6d7840d96d7dc82adc6ab15298cb6bf35a4c29ed9ee6f594bc6
|
7
|
+
data.tar.gz: 4c75fd4f60273b7c3e838e7325b11cf5891970adcebe0b28b23d6777261d4c33954240ecbb5b522840c5cde2549bb452505de19f9142c5efdf77170a6f8ced3b
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/Gemfile.lock
CHANGED
data/lib/deimos/consumer.rb
CHANGED
@@ -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(
|
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,
|
28
|
+
_handle_success(benchmark.real, decoded_payload, new_metadata)
|
28
29
|
end
|
29
30
|
|
30
31
|
# Consume incoming messages.
|
data/lib/deimos/version.rb
CHANGED