karafka 1.2.7 → 1.2.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f8c560eb30d1e8365d228786192ff6f1160e72cad7bb601a8a2fa88c4a1bdba
4
- data.tar.gz: d56768f5127ba10bbd39b318b9b8efe696f65a93e29c2706de279e9bd3f9278f
3
+ metadata.gz: 7a4b14c619edcab5a576a211ec9e7a791ebca8e200ee82dccf21d41a9546dcc7
4
+ data.tar.gz: 67916109c7f400f6be77eef19cbc7f059ed99c77d9e4e6554abe8925cba2b1e5
5
5
  SHA512:
6
- metadata.gz: fed993507c0c79e90a8b11797db8caefb2565503f9076b01781892b0d97e941525d52a0f1bf273eee3d99b44b563e227b31e61cb82d790a02c19fd21915bd3fa
7
- data.tar.gz: e64fdd7e015421048f93f693948d32e5cab85e7c0d8daab50e1810f3128e35544bc570468536800f0667ae1427b726582f2298c3b39b5c34c47d4a4b6ceb932a
6
+ metadata.gz: 46311d0b624a9c4b0859fd79fcbe05a3bef67aa33f1eed53ea9a70f114531775e176b5acce4aa2295960c2180e74060f4f77e2bd49f42e1474f00664996ab4fa
7
+ data.tar.gz: 02f3933639045e38b88d23bf811cc7c5e870cc5e76e8e315cb5fa860833f4a2474c99919d74e073588dca957bc2e6f8832c35db9d580d0edb31df1417a7a3712
data/CHANGELOG.md CHANGED
@@ -1,7 +1,9 @@
1
1
  # Karafka framework changelog
2
2
 
3
- ## 1.2.7
3
+ ## 1.2.8
4
+ - #408 - Responder Topic Lookup Bug on Heroku
4
5
 
6
+ ## 1.2.7
5
7
  - Unlock Ruby-kafka version with a warning
6
8
 
7
9
  ## 1.2.6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka (1.2.7)
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.1)
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
- producer(options).call(data, options)
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
- # We map this topic name, so it will match namespaced/etc topic in Kafka
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
 
@@ -3,5 +3,5 @@
3
3
  # Main module namespace
4
4
  module Karafka
5
5
  # Current Karafka version
6
- VERSION = '1.2.7'
6
+ VERSION = '1.2.8'
7
7
  end
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.7
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-09-20 00:00:00.000000000 Z
13
+ date: 2018-10-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport