deimos-ruby 1.3.0.pre.beta2 → 1.3.0.pre.beta3
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 +3 -0
- data/Gemfile.lock +2 -2
- data/lib/deimos/test_helpers.rb +7 -0
- 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: '09de5e070d50daa161759c3f13ab6dc1db4b7126ba8d2d919344d8a39015c0a2'
|
|
4
|
+
data.tar.gz: 4eaf6b08f6fccb21fa001679b1065f9872ea1aa8b3b298d027e9a8d878fe0a49
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a62fca81b94862d79f1d0f57bb148307f9482a0e1a2c5fc03393387dc5bb5f10c1886f8fae001a89c49078080b47f07a22e1b487edd9724b01b1a980134e98fa
|
|
7
|
+
data.tar.gz: 0c75c2a915a4d15b4bfdde73c022b232d33536f93d27b701c731083017117bc8ff13d5e163f8c71de65a261b7167ef9226a1769906a3dc2aca608c826589012e
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## UNRELEASED
|
|
9
9
|
|
|
10
|
+
# [1.3.0-beta3] - 2019-11-26
|
|
11
|
+
- Fixed bug in TestHelpers where key_decoder was not stubbed out.
|
|
12
|
+
|
|
10
13
|
# [1.3.0-beta2] - 2019-11-22
|
|
11
14
|
- Fixed bug where consumers would require a key config in all cases
|
|
12
15
|
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.3.0.pre.
|
|
4
|
+
deimos-ruby (1.3.0.pre.beta3)
|
|
5
5
|
avro-patches (~> 0.3)
|
|
6
6
|
avro_turf (~> 0.8)
|
|
7
7
|
phobos (~> 1.8.2.pre.beta2)
|
|
@@ -41,7 +41,7 @@ GEM
|
|
|
41
41
|
diff-lcs (1.3)
|
|
42
42
|
digest-crc (0.4.1)
|
|
43
43
|
dogstatsd-ruby (4.2.0)
|
|
44
|
-
excon (0.
|
|
44
|
+
excon (0.69.1)
|
|
45
45
|
exponential-backoff (0.0.4)
|
|
46
46
|
ffi (1.11.1)
|
|
47
47
|
formatador (0.2.5)
|
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
|
|
@@ -468,6 +469,12 @@ module Deimos
|
|
|
468
469
|
allow(klass).to receive(:decoder) do
|
|
469
470
|
create_decoder(klass.config[:schema], klass.config[:namespace])
|
|
470
471
|
end
|
|
472
|
+
|
|
473
|
+
if klass.config[:key_schema] # rubocop:disable Style/GuardClause
|
|
474
|
+
allow(klass).to receive(:key_decoder) do
|
|
475
|
+
create_decoder(klass.config[:key_schema], klass.config[:namespace])
|
|
476
|
+
end
|
|
477
|
+
end
|
|
471
478
|
end
|
|
472
479
|
end
|
|
473
480
|
end
|
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.3.0.pre.
|
|
4
|
+
version: 1.3.0.pre.beta3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Orner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-11-
|
|
11
|
+
date: 2019-11-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: avro-patches
|