deimos-ruby 1.14.2 → 1.14.3
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/deimos/active_record_consume/batch_consumption.rb +4 -6
- 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: '0876f9454cd35ecb35310f57f9539dbb6d952aa2c5ab5b0503725de4620d7a1e'
|
|
4
|
+
data.tar.gz: 24fa6921f189d44aa36655338683992c1522ada69644c8570032df99e5d4ffc4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b5f8824b1ba370408d1cc58c6a33ee72ad15118453274a0e65bce6f421a4228b92e654cd54eac8771063ced121e93633e95b9244d046e35869c65609e34f077f
|
|
7
|
+
data.tar.gz: 0cfe69f0af3dfc463895fc1bbe16658efdb54a9afb45270cc4836235785e7137d7be36bab3a4b99503348cdfe118f63a39a18bc1dc718ec8411c4c80e57a2b98
|
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.14.3 - 2022-06-17
|
|
11
|
+
|
|
12
|
+
- Fix issue with ActiveRecordConsumer double-decoding keys in batch mode.
|
|
13
|
+
|
|
10
14
|
# 1.14.2 - 2022-05-26
|
|
11
15
|
|
|
12
16
|
- Fix crash with `test_consume_message` when passing in an instance of a schema class instead of a hash.
|
|
@@ -44,14 +44,12 @@ module Deimos
|
|
|
44
44
|
# @param key [String] The encoded key.
|
|
45
45
|
# @return [Hash] The key attributes.
|
|
46
46
|
def record_key(key)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
if decoded_key.nil?
|
|
47
|
+
if key.nil?
|
|
50
48
|
{}
|
|
51
|
-
elsif
|
|
52
|
-
@key_converter.convert(
|
|
49
|
+
elsif key.is_a?(Hash)
|
|
50
|
+
@key_converter.convert(key)
|
|
53
51
|
else
|
|
54
|
-
{ @klass.primary_key =>
|
|
52
|
+
{ @klass.primary_key => key }
|
|
55
53
|
end
|
|
56
54
|
end
|
|
57
55
|
|
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: 1.14.
|
|
4
|
+
version: 1.14.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Orner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-06-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: avro_turf
|