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 +4 -4
- data/lib/messaging/adapters/kafka/producer.rb +1 -1
- data/lib/messaging/adapters/kafka.rb +2 -2
- data/lib/messaging/routing.rb +2 -2
- data/lib/messaging/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: 680242dd6765be32e542a78687fc9978fe2d77893b48e44d892cc35e10a398d7
|
4
|
+
data.tar.gz: ead7fd0a508eb1e68af6d4e0ea03e63a15bc79fc5a95f53b7cd2c5f52b7ce45d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7199d01f436aba5924f98c4183412a43f82df8d68e613760d5fd2747be6e4392f81118fb09f77e1ce05140ad3f2538442c50483bbc34da0efe67ca4f105f8345
|
7
|
+
data.tar.gz: bc438025531a1a37fbc7503dfdc50c2854ae991a4fbaedb876b80781f09dd2df6248d54100fb3d9574bfcf25695079e6ef12d41b7ea8335f9a519b4958434e30
|
@@ -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
|
-
|
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!
|
data/lib/messaging/routing.rb
CHANGED
@@ -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
|
data/lib/messaging/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2023-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|