deimos-ruby 1.10.0 → 1.10.1

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: a614febc556860a51e870e89beb90fde63201fffae3ba7ca78c53d423a65a7b6
4
- data.tar.gz: e4676b33fbaf9c105ffd12b89a0090a86b8befd7cf0e09b39078a70e213f72dc
3
+ metadata.gz: 810ce13be8ab8ba5dc64d586ed863a8603fdcc96961ed1779d1af791589161e8
4
+ data.tar.gz: c6be10e665fee7e50583c927253877d5e70d1ad3905560601e2cde844debf1cb
5
5
  SHA512:
6
- metadata.gz: 0d418e1d0b27008392da829980c6bdf754111a1f103965dce6882f97d3a02f0220d58756f6f1f0682df12944eac1a012516b0a3612c257342509b6e0b4c3da57
7
- data.tar.gz: 1be3de2310297dc6b75a8f98b6c3f84483c6c401d6395dc6752cc57c342f8935911ba1ad11e8eb69e6bfcb19720e8540985c42976033401c39e137a3ab8fbc40
6
+ metadata.gz: 42517bc99f57cef76b0f03957f59550aae1d3234b3f2680958b1d8fd6cb8bd431a43459a5b8542c30658146adfd12fe5eecbc608dd9b878e18166edb84f9ee80
7
+ data.tar.gz: d5c68af5593e66ac67125108a2f583af7f8003a40515816b6797a17c200a5cffd8aef77d56b400f5c44780c42b78ed0a430037dd2b7033776374aa6a1a5cfb97
data/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## UNRELEASED
9
9
 
10
+ ## 1.10.1 - 2021-06-21
11
+
12
+ - ### Fixes :wrench:
13
+
14
+ - Fixed crash when trying to decode a nil payload (e.g. during instrumentation of `send_produce_error`.)
15
+
10
16
  ## 1.10.0 - 2021-03-22
11
17
 
12
18
  - ### Roadmap :car:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- deimos-ruby (1.9.2)
4
+ deimos-ruby (1.10.1)
5
5
  avro_turf (~> 0.11)
6
6
  fig_tree (~> 0.0.2)
7
7
  phobos (>= 1.9, < 3.0)
@@ -92,7 +92,7 @@ GEM
92
92
  rake (>= 12.0.0, < 14.0.0)
93
93
  dogstatsd-ruby (4.8.3)
94
94
  erubi (1.10.0)
95
- excon (0.79.0)
95
+ excon (0.81.0)
96
96
  exponential-backoff (0.0.4)
97
97
  ffi (1.15.0)
98
98
  fig_tree (0.0.2)
@@ -135,16 +135,18 @@ GEM
135
135
  marcel (0.3.3)
136
136
  mimemagic (~> 0.3.2)
137
137
  method_source (1.0.0)
138
- mimemagic (0.3.5)
138
+ mimemagic (0.3.10)
139
+ nokogiri (~> 1)
140
+ rake
139
141
  mini_mime (1.0.2)
140
- mini_portile2 (2.5.0)
142
+ mini_portile2 (2.5.1)
141
143
  minitest (5.14.4)
142
144
  msgpack (1.4.2)
143
145
  multi_json (1.15.0)
144
146
  mysql2 (0.5.3)
145
147
  nenv (0.3.0)
146
148
  nio4r (2.5.7)
147
- nokogiri (1.11.1)
149
+ nokogiri (1.11.5)
148
150
  mini_portile2 (~> 2.5.0)
149
151
  racc (~> 1.4)
150
152
  notiffany (0.1.3)
@@ -201,7 +203,7 @@ GEM
201
203
  rb-inotify (0.10.1)
202
204
  ffi (~> 1.0)
203
205
  regexp_parser (2.1.1)
204
- rexml (3.2.4)
206
+ rexml (3.2.5)
205
207
  rspec (3.10.0)
206
208
  rspec-core (~> 3.10.0)
207
209
  rspec-expectations (~> 3.10.0)
@@ -287,4 +289,4 @@ DEPENDENCIES
287
289
  sqlite3 (~> 1.3)
288
290
 
289
291
  BUNDLED WITH
290
- 2.2.5
292
+ 2.2.17
@@ -40,8 +40,9 @@ module Deimos
40
40
  # Decode a payload with a schema. Public method.
41
41
  # @param payload [String]
42
42
  # @param schema [Symbol|String]
43
- # @return [Hash]
43
+ # @return [Hash,nil]
44
44
  def decode(payload, schema: nil)
45
+ return nil if payload.nil?
45
46
  decode_payload(payload, schema: schema || @schema)
46
47
  end
47
48
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deimos
4
- VERSION = '1.10.0'
4
+ VERSION = '1.10.1'
5
5
  end
@@ -26,4 +26,8 @@ describe Deimos::SchemaBackends::Base do
26
26
  backend.decode(payload, schema: 'schema2')
27
27
  end
28
28
 
29
+ it 'should return nil if passed nil' do
30
+ expect(backend.decode(nil, schema: 'schema2')).to be_nil
31
+ end
32
+
29
33
  end
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.10.0
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-22 00:00:00.000000000 Z
11
+ date: 2021-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avro_turf