messaging 3.8.0 → 3.8.1

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: add818b05ea9d15164c86f30c90dd111a6cdd3c7fb6ce19c12fbb8d96b70a72a
4
- data.tar.gz: b98a0e18f326a7d229b36d836786e0a0afb6429c867e2633a8223c758438612e
3
+ metadata.gz: 680242dd6765be32e542a78687fc9978fe2d77893b48e44d892cc35e10a398d7
4
+ data.tar.gz: ead7fd0a508eb1e68af6d4e0ea03e63a15bc79fc5a95f53b7cd2c5f52b7ce45d
5
5
  SHA512:
6
- metadata.gz: d3d05ec3c52a6362390a9a9a9a881ffe3fa377335a56d024b8b0e1193292c3f9bc46376cf707bc834fc9106d28999011ca1e9a6f086536801328aeab24c40be9
7
- data.tar.gz: c34fcb4881dcc9fe78291648ac88d9d36c23db917f566765d6dc51c026ec6341f359003d64ce1e3b6f376d6242f63c0cf817e96b84c31b6f8d6b411b781f885a
6
+ metadata.gz: 7199d01f436aba5924f98c4183412a43f82df8d68e613760d5fd2747be6e4392f81118fb09f77e1ce05140ad3f2538442c50483bbc34da0efe67ca4f105f8345
7
+ data.tar.gz: bc438025531a1a37fbc7503dfdc50c2854ae991a4fbaedb876b80781f09dd2df6248d54100fb3d9574bfcf25695079e6ef12d41b7ea8335f9a519b4958434e30
@@ -44,7 +44,7 @@ module Messaging
44
44
  end
45
45
 
46
46
  def create_producer
47
- kafka.client.async_producer(Config.kafka.producer.to_h)
47
+ kafka.client.async_producer(**Config.kafka.producer.to_h)
48
48
  end
49
49
  end
50
50
  end
@@ -27,7 +27,7 @@ module Messaging
27
27
 
28
28
  # Internal: Setup a Ruby-Kafka consumer
29
29
  def create_kafka_consumer(group_id)
30
- client.consumer({ group_id: group_id }.merge(Config.kafka.consumer.to_h))
30
+ client.consumer(**{ group_id: group_id }.merge(Config.kafka.consumer.to_h))
31
31
  end
32
32
 
33
33
  private
@@ -37,7 +37,7 @@ module Messaging
37
37
  # We have a specific logger for Ruby-Kafka as it
38
38
  # is a bit more noisy than we would like.
39
39
  kafka_logger = Messaging.logger.dup.tap { |logger| logger.level = Config.kafka.log_level }
40
- ::Kafka.new(Config.kafka.client.to_h.merge(client_id: Config.app_name, logger: kafka_logger))
40
+ ::Kafka.new(**Config.kafka.client.to_h.merge(client_id: Config.app_name, logger: kafka_logger))
41
41
  end
42
42
 
43
43
  def self.register!
@@ -18,7 +18,7 @@ module Messaging
18
18
  definitions << { pattern: pattern, options: options, block: block }
19
19
  end
20
20
 
21
- def new(*args, &block)
21
+ def new(*args, **options, &block)
22
22
  instance = allocate
23
23
 
24
24
  # Pre-initialize
@@ -26,7 +26,7 @@ module Messaging
26
26
  instance.on(definition[:pattern], definition[:options], &definition[:block])
27
27
  end
28
28
 
29
- instance.send(:initialize, *args, &block)
29
+ instance.send(:initialize, *args, **options, &block)
30
30
  instance
31
31
  end
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module Messaging
2
- VERSION = '3.8.0'.freeze
2
+ VERSION = '3.8.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: messaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.0
4
+ version: 3.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bukowskis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-16 00:00:00.000000000 Z
11
+ date: 2023-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord