karafka 1.2.7 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -1
- data/Gemfile.lock +2 -4
- data/README.md +9 -0
- data/lib/karafka/base_responder.rb +6 -4
- data/lib/karafka/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: 7a4b14c619edcab5a576a211ec9e7a791ebca8e200ee82dccf21d41a9546dcc7
|
4
|
+
data.tar.gz: 67916109c7f400f6be77eef19cbc7f059ed99c77d9e4e6554abe8925cba2b1e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46311d0b624a9c4b0859fd79fcbe05a3bef67aa33f1eed53ea9a70f114531775e176b5acce4aa2295960c2180e74060f4f77e2bd49f42e1474f00664996ab4fa
|
7
|
+
data.tar.gz: 02f3933639045e38b88d23bf811cc7c5e870cc5e76e8e315cb5fa860833f4a2474c99919d74e073588dca957bc2e6f8832c35db9d580d0edb31df1417a7a3712
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
karafka (1.2.
|
4
|
+
karafka (1.2.8)
|
5
5
|
activesupport (>= 4.0)
|
6
6
|
dry-configurable (~> 0.7)
|
7
7
|
dry-inflector (~> 0.1.1)
|
@@ -25,7 +25,6 @@ GEM
|
|
25
25
|
tzinfo (~> 1.1)
|
26
26
|
benchmark-ips (2.7.2)
|
27
27
|
concurrent-ruby (1.0.5)
|
28
|
-
concurrent-ruby (1.0.5-java)
|
29
28
|
delivery_boy (0.2.7)
|
30
29
|
king_konf (~> 0.2)
|
31
30
|
ruby-kafka (~> 0.5)
|
@@ -94,7 +93,7 @@ GEM
|
|
94
93
|
diff-lcs (>= 1.2.0, < 2.0)
|
95
94
|
rspec-support (~> 3.8.0)
|
96
95
|
rspec-support (3.8.0)
|
97
|
-
ruby-kafka (0.7.
|
96
|
+
ruby-kafka (0.7.2)
|
98
97
|
digest-crc
|
99
98
|
simplecov (0.16.1)
|
100
99
|
docile (~> 1.1)
|
@@ -103,7 +102,6 @@ GEM
|
|
103
102
|
simplecov-html (0.10.2)
|
104
103
|
thor (0.20.0)
|
105
104
|
thread_safe (0.3.6)
|
106
|
-
thread_safe (0.3.6-java)
|
107
105
|
timecop (0.9.1)
|
108
106
|
tzinfo (1.2.5)
|
109
107
|
thread_safe (~> 0.1)
|
data/README.md
CHANGED
@@ -27,6 +27,15 @@ Karafka based applications can be easily deployed to any type of infrastructure,
|
|
27
27
|
* Docker
|
28
28
|
* Terraform
|
29
29
|
|
30
|
+
## Kafka 0.10 or prior
|
31
|
+
|
32
|
+
If you're using Kafka 0.10, please lock `ruby-kafka` gem in your Gemfile to version `0.6.8`:
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
gem 'karafka'
|
36
|
+
gem 'ruby-kafka', '~> 0.6.8'
|
37
|
+
```
|
38
|
+
|
30
39
|
## Support
|
31
40
|
|
32
41
|
Karafka has a [Wiki pages](https://github.com/karafka/karafka/wiki) for almost everything and a pretty decent [FAQ](https://github.com/karafka/karafka/wiki/FAQ). It covers the whole installation, setup, and deployment along with other useful details on how to run Karafka.
|
@@ -163,7 +163,11 @@ module Karafka
|
|
163
163
|
def deliver!
|
164
164
|
messages_buffer.each_value do |data_elements|
|
165
165
|
data_elements.each do |data, options|
|
166
|
-
|
166
|
+
# We map this topic name, so it will match namespaced/etc topic in Kafka
|
167
|
+
# @note By default will not change topic (if default mapper used)
|
168
|
+
mapped_topic = Karafka::App.config.topic_mapper.outgoing(options[:topic])
|
169
|
+
external_options = options.merge(topic: mapped_topic)
|
170
|
+
producer(options).call(data, external_options)
|
167
171
|
end
|
168
172
|
end
|
169
173
|
end
|
@@ -189,9 +193,7 @@ module Karafka
|
|
189
193
|
messages_buffer[topic] ||= []
|
190
194
|
messages_buffer[topic] << [
|
191
195
|
@parser_class.generate(data),
|
192
|
-
|
193
|
-
# @note By default will not change topic (if default mapper used)
|
194
|
-
options.merge(topic: Karafka::App.config.topic_mapper.outgoing(topic))
|
196
|
+
options.merge(topic: topic)
|
195
197
|
]
|
196
198
|
end
|
197
199
|
|
data/lib/karafka/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: karafka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maciej Mensfeld
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-10-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|