karafka 1.2.11 → 1.2.12
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 -0
- data/Gemfile.lock +13 -13
- data/lib/karafka/helpers/class_matcher.rb +6 -0
- data/lib/karafka/responders/builder.rb +1 -1
- 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: e5935dd3f3ddfc3d592bcdff859e63b4cee55b5b12ed3cdd49fdcc399aa32c47
|
4
|
+
data.tar.gz: 1d4eee47f902cd65ebbe4025b52d799d58467f5102bc595f2f5d37fd0bbb4713
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cdbbe2cf8bc790f6923f4cfc92902774a14d614f08f0f34e649bec6de1dae5444c4477957089de77e57328d48d85d2ac626a63ecf652aefbbf35977397ce2cc
|
7
|
+
data.tar.gz: 3c15a030cb9f5cf2ce5cfc5d36213c637546e279803b4c0ff80565b9c4587e3172f8517a8c8fbd50ffe3867f9df3d4f43a582c00a0271ef1f39b2b8d0aa9141f
|
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.12)
|
5
5
|
activesupport (>= 4.0)
|
6
6
|
dry-configurable (~> 0.8)
|
7
7
|
dry-inflector (~> 0.1)
|
@@ -18,20 +18,20 @@ PATH
|
|
18
18
|
GEM
|
19
19
|
remote: https://rubygems.org/
|
20
20
|
specs:
|
21
|
-
activesupport (5.2.
|
21
|
+
activesupport (5.2.3)
|
22
22
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
23
23
|
i18n (>= 0.7, < 2)
|
24
24
|
minitest (~> 5.1)
|
25
25
|
tzinfo (~> 1.1)
|
26
26
|
benchmark-ips (2.7.2)
|
27
|
-
concurrent-ruby (1.1.
|
27
|
+
concurrent-ruby (1.1.5)
|
28
28
|
delivery_boy (0.2.7)
|
29
29
|
king_konf (~> 0.2)
|
30
30
|
ruby-kafka (~> 0.5)
|
31
31
|
diff-lcs (1.3)
|
32
32
|
digest-crc (0.4.1)
|
33
33
|
docile (1.3.1)
|
34
|
-
dry-configurable (0.8.
|
34
|
+
dry-configurable (0.8.2)
|
35
35
|
concurrent-ruby (~> 1.0)
|
36
36
|
dry-core (~> 0.4, >= 0.4.7)
|
37
37
|
dry-container (0.7.0)
|
@@ -39,14 +39,14 @@ GEM
|
|
39
39
|
dry-configurable (~> 0.1, >= 0.1.3)
|
40
40
|
dry-core (0.4.7)
|
41
41
|
concurrent-ruby (~> 1.0)
|
42
|
-
dry-equalizer (0.2.
|
43
|
-
dry-events (0.1.
|
42
|
+
dry-equalizer (0.2.2)
|
43
|
+
dry-events (0.1.1)
|
44
44
|
concurrent-ruby (~> 1.0)
|
45
45
|
dry-core (~> 0.4)
|
46
46
|
dry-equalizer (~> 0.2)
|
47
47
|
dry-inflector (0.1.2)
|
48
|
-
dry-logic (0.
|
49
|
-
|
48
|
+
dry-logic (0.6.1)
|
49
|
+
concurrent-ruby (~> 1.0)
|
50
50
|
dry-core (~> 0.2)
|
51
51
|
dry-equalizer (~> 0.2)
|
52
52
|
dry-monitor (0.3.0)
|
@@ -54,23 +54,23 @@ GEM
|
|
54
54
|
dry-core (~> 0.4)
|
55
55
|
dry-equalizer (~> 0.2)
|
56
56
|
dry-events (~> 0.1)
|
57
|
-
dry-types (0.14.
|
57
|
+
dry-types (0.14.1)
|
58
58
|
concurrent-ruby (~> 1.0)
|
59
59
|
dry-container (~> 0.3)
|
60
60
|
dry-core (~> 0.4, >= 0.4.4)
|
61
61
|
dry-equalizer (~> 0.2)
|
62
62
|
dry-inflector (~> 0.1, >= 0.1.2)
|
63
63
|
dry-logic (~> 0.5, >= 0.5)
|
64
|
-
dry-validation (0.13.
|
64
|
+
dry-validation (0.13.1)
|
65
65
|
concurrent-ruby (~> 1.0)
|
66
66
|
dry-configurable (~> 0.1, >= 0.1.3)
|
67
67
|
dry-core (~> 0.2, >= 0.2.1)
|
68
68
|
dry-equalizer (~> 0.2)
|
69
69
|
dry-logic (~> 0.5, >= 0.5.0)
|
70
|
-
dry-types (~> 0.14
|
70
|
+
dry-types (~> 0.14.0)
|
71
71
|
envlogic (1.1.0)
|
72
72
|
dry-inflector (~> 0.1)
|
73
|
-
i18n (1.
|
73
|
+
i18n (1.6.0)
|
74
74
|
concurrent-ruby (~> 1.0)
|
75
75
|
json (2.1.0)
|
76
76
|
king_konf (0.3.7)
|
@@ -92,7 +92,7 @@ GEM
|
|
92
92
|
diff-lcs (>= 1.2.0, < 2.0)
|
93
93
|
rspec-support (~> 3.8.0)
|
94
94
|
rspec-support (3.8.0)
|
95
|
-
ruby-kafka (0.7.
|
95
|
+
ruby-kafka (0.7.6)
|
96
96
|
digest-crc
|
97
97
|
simplecov (0.16.1)
|
98
98
|
docile (~> 1.1)
|
@@ -42,6 +42,12 @@ module Karafka
|
|
42
42
|
# matcher.name #=> Super2Responder
|
43
43
|
def name
|
44
44
|
inflected = @klass.to_s.split('::').last.to_s
|
45
|
+
# We inject the from into the name just in case it is missing as in a situation like
|
46
|
+
# that it would just sanitize the name without adding the "to" postfix.
|
47
|
+
# It could create cases when we want to build for example a responder to a consumer
|
48
|
+
# that does not have the "Consumer" postfix and would do nothing returning the same name.
|
49
|
+
# That would be bad as the matching classes shouldn't be matched to themselves.
|
50
|
+
inflected << @from unless inflected.include?(@from)
|
45
51
|
inflected.gsub!(@from, @to)
|
46
52
|
inflected.gsub!(CONSTANT_REGEXP, '')
|
47
53
|
inflected
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Karafka
|
4
4
|
# Responders namespace encapsulates all the internal responder implementation parts
|
5
5
|
module Responders
|
6
|
-
# Responders builder is used
|
6
|
+
# Responders builder is used for finding (based on the consumer class name) a responder
|
7
7
|
# that match the consumer. We use it when user does not provide a responder inside routing,
|
8
8
|
# but he still names responder with the same convention (and namespaces) as consumer
|
9
9
|
#
|
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.12
|
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: 2019-
|
13
|
+
date: 2019-04-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|