deimos-ruby 1.8.1.pre.beta6 → 1.8.1.pre.beta7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/Gemfile.lock +1 -1
- data/lib/deimos/utils/db_producer.rb +2 -2
- data/lib/deimos/version.rb +1 -1
- data/spec/consumer_spec.rb +2 -2
- data/spec/utils/db_producer_spec.rb +4 -0
- 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: 6ed6bdbc70b4e29dfd893853d2df53ae6779fe3a95adc85a099b270674908135
|
4
|
+
data.tar.gz: ca1da1180acac7a76cb3abd4ce9c4ab16712b16e94f88b79ae5c952d98a74500
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd3b5728ce13e60b35ffc0b7dd025e402fa4bbd760edc000ca8cd587bca0c7f39d136eba951ebd631a711cf79171716021f04bda38c8262318ab344d8452be34
|
7
|
+
data.tar.gz: '0305200088b9d463c92562be1d9bf27d2727a06c10a147fdb6bace097adc795b2cfca6d5942eb4f06ee0da316e5a41db26b1fd04698d63987e2b45fdf7aea4c7'
|
data/CHANGELOG.md
CHANGED
@@ -7,7 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## UNRELEASED
|
9
9
|
|
10
|
+
## 1.8.1-beta7 - 2020-08-25
|
11
|
+
|
12
|
+
### Fixes :wrench:
|
13
|
+
- Fix for crash when sending pending metrics with DB producer.
|
14
|
+
- Fix for compacting messages if all the keys are already unique
|
15
|
+
(fixes [#75](https://github.com/flipp-oss/deimos/issues/75))
|
16
|
+
|
10
17
|
## 1.8.1-beta6 - 2020-08-13
|
18
|
+
|
19
|
+
### Fixes :wrench:
|
20
|
+
|
11
21
|
- Fix for consuming nil payloads with Ruby 2.3.
|
12
22
|
|
13
23
|
## 1.8.1-beta5 - 2020-08-13
|
data/Gemfile.lock
CHANGED
@@ -161,7 +161,7 @@ module Deimos
|
|
161
161
|
# the oldest message, or the last time we processed, whichever comes
|
162
162
|
# last.
|
163
163
|
if message_record
|
164
|
-
record_earliest =
|
164
|
+
record_earliest = message_record.earliest
|
165
165
|
# SQLite gives a string here
|
166
166
|
if record_earliest.is_a?(String)
|
167
167
|
record_earliest = Time.zone.parse(record_earliest)
|
@@ -231,7 +231,7 @@ module Deimos
|
|
231
231
|
return batch if config.compact_topics != :all &&
|
232
232
|
!config.compact_topics.include?(topic)
|
233
233
|
|
234
|
-
batch.reverse.uniq
|
234
|
+
batch.reverse.uniq(&:key).reverse!
|
235
235
|
end
|
236
236
|
end
|
237
237
|
end
|
data/lib/deimos/version.rb
CHANGED
data/spec/consumer_spec.rb
CHANGED
@@ -34,8 +34,8 @@ module ConsumerTest
|
|
34
34
|
|
35
35
|
it 'should consume a nil message' do
|
36
36
|
test_consume_message(MyConsumer, nil) do |payload, _metadata|
|
37
|
-
|
38
|
-
|
37
|
+
expect(payload).to be_nil
|
38
|
+
end
|
39
39
|
end
|
40
40
|
|
41
41
|
it 'should consume a message idempotently' do
|
@@ -155,6 +155,10 @@ each_db_config(Deimos::Utils::DbProducer) do
|
|
155
155
|
Deimos.configure { |c| c.db_producer.compact_topics = [] }
|
156
156
|
end
|
157
157
|
|
158
|
+
it 'should compact messages when all messages are unique' do
|
159
|
+
Deimos.configure { |c| c.db_producer.compact_topics = %w(my-topic my-topic2) }
|
160
|
+
expect(producer.compact_messages(deduped_batch)).to eq(deduped_batch)
|
161
|
+
end
|
158
162
|
end
|
159
163
|
end
|
160
164
|
|
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.8.1.pre.
|
4
|
+
version: 1.8.1.pre.beta7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Orner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avro_turf
|