deimos-ruby 2.0.0.pre.alpha5 → 2.0.0.pre.alpha7

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: f174004429b26dba2e066181607728000a686fcf0abf7c9ddf332db5d190e4d5
4
- data.tar.gz: be62dcd3b9f8ceef6f1a7b4e1d5f719c9949566240e208e0fd7d2c364b6b754f
3
+ metadata.gz: '0940b779309de8eadfc2fe3b5a495690a83f90598045ce790d9bb50d82954909'
4
+ data.tar.gz: ae6d40e15e06cb17070ce92421d1546f9d97bd4c4cddb909925d282db49be32c
5
5
  SHA512:
6
- metadata.gz: 02c069c331892334501eb2c9d67a80d58cd124ab80aa4c2485c497dccc4ee8a8974964370b53b9f5c66d205eaafc21d712f4fd73c2a203dacc45b9b0a35de6fc
7
- data.tar.gz: 2c3703d6e147bd803d69971042a2c3fb805bd75955ff5473daed2eb90e69dcc5f830deaf25e3bef0ef3d811e8d9eeb2eb3951b8706b8eb81e877f60626720601
6
+ metadata.gz: 60a19bd65c424f05e8061f8a0fb2e7a1648f6d7f8202cbbd4e40397e5d75cae5d4935d313133ebee6b0641f3505d4161681d7f4534bb0f665e06eca9f28f6d34
7
+ data.tar.gz: 13974c3ee935306e72220149a943a5fef0554b332c5c7b81f348df584b7cba0756f9c9d4569856edc72e054981eebdb95789e605fbeddcca72a0b79b207bcae1
@@ -8,9 +8,8 @@ module Deimos
8
8
  logger.send(method, msg.to_json)
9
9
  end
10
10
  else
11
- logger.send(method, msg.to_json)
11
+ Karafka.logger.send(method, msg.to_json)
12
12
  end
13
-
14
13
  end
15
14
 
16
15
  def log_info(*args)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deimos
4
- VERSION = '2.0.0-alpha5'
4
+ VERSION = '2.0.0-alpha7'
5
5
  end
data/lib/deimos.rb CHANGED
@@ -139,6 +139,9 @@ module Deimos
139
139
 
140
140
  def setup_karafka
141
141
  Karafka.producer.middleware.append(Deimos::ProducerMiddleware)
142
+ # for multiple setup calls
143
+ Karafka.producer.config.kafka =
144
+ Karafka::Setup::AttributesMap.producer(Karafka::Setup::Config.config.kafka.dup)
142
145
  EVENT_TYPES.each { |type| Karafka.monitor.notifications_bus.register_event(type) }
143
146
 
144
147
  Karafka.producer.monitor.subscribe('error.occurred') do |event|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deimos-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.alpha5
4
+ version: 2.0.0.pre.alpha7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner