phobos 1.8.2 → 1.8.3.pre.beta1
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 +5 -1
- data/config/phobos.yml.example +2 -5
- data/lib/phobos/actions/process_batch.rb +1 -0
- data/lib/phobos/listener.rb +1 -1
- data/lib/phobos/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94cb69f1956951dadecde1cfee5acf2eba368fcba756658242f9d3578a38bd5b
|
4
|
+
data.tar.gz: 9ad68c2dde68e2360d0cd4ab9882795c5d900c99e56a94c527880ec826c26ff3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0eb8e4ff3dcc452312d45c5fd674c296efe89bbe3b74bf6e31c8e57795e21277e922daab460db01207ea9ba6b6517c2ea5328bd249b5221e4ccaa236bb7a0868
|
7
|
+
data.tar.gz: 2373edf0b9da8f3136dab604f0fe8a1705bb9fd1a2c649a32f19e1f278e593b1c97ead5d1f5468e8e99e8c29c90432826cd013c9e20599deba430c14fc0c9601
|
data/CHANGELOG.md
CHANGED
@@ -6,7 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
7
7
|
## UNRELEASED
|
8
8
|
|
9
|
-
## [1.8.
|
9
|
+
## [1.8.3-beta1] - 2019-11-11
|
10
|
+
- Automatically heartbeat after every message if necessary in batch
|
11
|
+
mode.
|
12
|
+
|
13
|
+
## [1.8.2] - 2019-11-11
|
10
14
|
- Version bump for official release.
|
11
15
|
|
12
16
|
## [1.8.2-beta2] - 2019-06-21
|
data/config/phobos.yml.example
CHANGED
@@ -109,11 +109,8 @@ listeners:
|
|
109
109
|
# Possible values: [`message`, `batch` (default)]
|
110
110
|
# - `message` will yield individual messages from Ruby Kafka using `each_message` and will commit/heartbeat at every consumed message.
|
111
111
|
# This is overall a bit slower than using batch, but easier to configure.
|
112
|
-
# - `batch` will yield batches from Ruby Kafka using `each_batch`, and commit
|
113
|
-
#
|
114
|
-
# your consumers might get kicked from the Kafka cluster for not sending a heartbeat within the expected interval.
|
115
|
-
# Take this into consideration when determining your configuration. You can send heartbeats manually while
|
116
|
-
# processing your messages if necessary.
|
112
|
+
# - `batch` will yield batches from Ruby Kafka using `each_batch`, and commit at every consumed batch. It will
|
113
|
+
# still heartbeat after every message if necessary (using the heartbeat_interval, below).
|
117
114
|
# - `inline_batch` also uses `each_batch`, but will pass the entire batch to your handler instead
|
118
115
|
# of one message at a time. To use this method, you should include Phobos::BatchHandler
|
119
116
|
# instead of Phobos::Handler so that you can make use of the `consume_batch` etc. methods.
|
data/lib/phobos/listener.rb
CHANGED
@@ -10,7 +10,7 @@ module Phobos
|
|
10
10
|
DELIVERY_OPTS = %w[batch message inline_batch].freeze
|
11
11
|
|
12
12
|
attr_reader :group_id, :topic, :id
|
13
|
-
attr_reader :handler_class, :encoding
|
13
|
+
attr_reader :handler_class, :encoding, :consumer
|
14
14
|
|
15
15
|
# rubocop:disable Metrics/MethodLength
|
16
16
|
def initialize(handler:, group_id:, topic:, min_bytes: nil, max_wait_time: nil,
|
data/lib/phobos/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phobos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.3.pre.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Túlio Ornelas
|
@@ -15,7 +15,7 @@ authors:
|
|
15
15
|
autorequire:
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
|
-
date: 2019-11-
|
18
|
+
date: 2019-11-12 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: bundler
|
@@ -310,9 +310,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
310
310
|
version: '2.3'
|
311
311
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
312
312
|
requirements:
|
313
|
-
- - "
|
313
|
+
- - ">"
|
314
314
|
- !ruby/object:Gem::Version
|
315
|
-
version:
|
315
|
+
version: 1.3.1
|
316
316
|
requirements: []
|
317
317
|
rubygems_version: 3.0.2
|
318
318
|
signing_key:
|