deimos-ruby 1.4.0.pre.beta3 → 1.4.0.pre.beta4
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 -1
- data/Gemfile.lock +1 -1
- data/lib/deimos/test_helpers.rb +7 -0
- 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: e1c8914cee169cacae4478e2d26291fc057f1c2e94feddc9bdf60bad136c27e3
|
4
|
+
data.tar.gz: f15f3d989d30f9b1460bcbadf06902b5366161e2910b9932e81efbb4f676fa8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70c7cb65c00abdb128230f733409fe4e4e5589d04fff4dbb4594eb655750c1346c4a506e8a1669f87eafbe028a6312f09d7f49bb0f974b4e281186d1fd54402d
|
7
|
+
data.tar.gz: 0c3a59c9f89b8f4ba62a7e49a41f86276c0b30b7c797e7d0f8b46e5fb75b6db8d8a5148239699c0b79691d68f6bc4432411dcdf7791c2616480c660592177d3f
|
data/CHANGELOG.md
CHANGED
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## UNRELEASED
|
9
9
|
|
10
|
-
# [1.4.0-
|
10
|
+
# [1.4.0-beta4] - 2019-11-26
|
11
11
|
- Added `define_settings` to define settings without invoking callbacks.
|
12
12
|
|
13
13
|
# [1.4.0-beta2] - 2019-11-22
|
@@ -17,6 +17,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
17
17
|
# [1.4.0-beta1] - 2019-11-22
|
18
18
|
- Complete revamp of configuration method.
|
19
19
|
|
20
|
+
# [1.3.0-beta3] - 2019-11-26
|
21
|
+
- Fixed bug in TestHelpers where key_decoder was not stubbed out.
|
22
|
+
|
20
23
|
# [1.3.0-beta2] - 2019-11-22
|
21
24
|
- Fixed bug where consumers would require a key config in all cases
|
22
25
|
even though it's optional if they don't use keys.
|
data/Gemfile.lock
CHANGED
data/lib/deimos/test_helpers.rb
CHANGED
@@ -61,6 +61,7 @@ module Deimos
|
|
61
61
|
encoder = Deimos::AvroDataEncoder.new(schema: schema,
|
62
62
|
namespace: decoder.namespace)
|
63
63
|
encoder.schema_store = decoder.schema_store
|
64
|
+
payload = payload.respond_to?(:stringify_keys) ? payload.stringify_keys : payload
|
64
65
|
encoder.encode_local(payload)
|
65
66
|
end
|
66
67
|
payload
|
@@ -467,6 +468,12 @@ module Deimos
|
|
467
468
|
allow(klass).to receive(:decoder) do
|
468
469
|
create_decoder(klass.config[:schema], klass.config[:namespace])
|
469
470
|
end
|
471
|
+
|
472
|
+
if klass.config[:key_schema] # rubocop:disable Style/GuardClause
|
473
|
+
allow(klass).to receive(:key_decoder) do
|
474
|
+
create_decoder(klass.config[:key_schema], klass.config[:namespace])
|
475
|
+
end
|
476
|
+
end
|
470
477
|
end
|
471
478
|
end
|
472
479
|
end
|
data/lib/deimos/version.rb
CHANGED