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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 755a361a8e3344715436d6a90e45f4d27ceab2eba219291b59055ca2e7afcc39
4
- data.tar.gz: 8678c4ebad89bf1f58f82190af970f346360dc0a768b2adc075d80bad92dde0a
3
+ metadata.gz: e1c8914cee169cacae4478e2d26291fc057f1c2e94feddc9bdf60bad136c27e3
4
+ data.tar.gz: f15f3d989d30f9b1460bcbadf06902b5366161e2910b9932e81efbb4f676fa8e
5
5
  SHA512:
6
- metadata.gz: 22b5010a4d5b3f4cb6423237f13eb8081f232520749252ffa8c37df38516f7155e2a7f9b5d4d68ac3c9b948b7aee144201bffcc3488c6341c14fb97f6fee67a5
7
- data.tar.gz: dad1196a141be2b076f4c0043f5ce9250b89bb115ae07cc07861c5b9085f1f58878e786a9235c107244fad0b933c2899fa93f23568a9d9ada9d95c7bdae12c86
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-beta3] - 2019-11-26
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- deimos-ruby (1.4.0.pre.beta3)
4
+ deimos-ruby (1.4.0.pre.beta4)
5
5
  avro-patches (~> 0.3)
6
6
  avro_turf (~> 0.8)
7
7
  phobos (~> 1.8.2.pre.beta2)
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deimos
4
- VERSION = '1.4.0-beta3'
4
+ VERSION = '1.4.0-beta4'
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.4.0.pre.beta3
4
+ version: 1.4.0.pre.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner