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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c2e53b615dda9e231595e49d3ec0be42c18fa37c0143a1387e5e86b7e2250c6
4
- data.tar.gz: 27221b33684a4418b111eea86e088367de20a6d2e27157e7358685c3b4fc88eb
3
+ metadata.gz: e5935dd3f3ddfc3d592bcdff859e63b4cee55b5b12ed3cdd49fdcc399aa32c47
4
+ data.tar.gz: 1d4eee47f902cd65ebbe4025b52d799d58467f5102bc595f2f5d37fd0bbb4713
5
5
  SHA512:
6
- metadata.gz: 2c3279ad72202031be303b64e8505c578fac252364f0bd78351251d4468e465ffad0427fc3218adc00d36cfb4dce5b5d6df33a8db60f1bf05f33f64c9fbeba75
7
- data.tar.gz: 9009bf7b22eaac06faa714f1a349f05807a82f5fc2dbd75ddc73681027bd1ce6bf71e244b42a51349afa024c516ac3388bf2e81370cf12f5f12cccbbc9000418
6
+ metadata.gz: 8cdbbe2cf8bc790f6923f4cfc92902774a14d614f08f0f34e649bec6de1dae5444c4477957089de77e57328d48d85d2ac626a63ecf652aefbbf35977397ce2cc
7
+ data.tar.gz: 3c15a030cb9f5cf2ce5cfc5d36213c637546e279803b4c0ff80565b9c4587e3172f8517a8c8fbd50ffe3867f9df3d4f43a582c00a0271ef1f39b2b8d0aa9141f
@@ -1,5 +1,8 @@
1
1
  # Karafka framework changelog
2
2
 
3
+ ## 1.2.12
4
+ - #29 - Consumer class names must have the word "Consumer" in it in order to work (Sidekiq backend)
5
+
3
6
  ## 1.2.11
4
7
  - [#470](https://github.com/karafka/karafka/issues/470) Karafka not working with dry-configurable 0.8
5
8
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka (1.2.11)
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.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.4)
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.0)
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.1)
43
- dry-events (0.1.0)
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.5.0)
49
- dry-container (~> 0.2, >= 0.2.6)
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.0)
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.0)
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, >= 0.14)
70
+ dry-types (~> 0.14.0)
71
71
  envlogic (1.1.0)
72
72
  dry-inflector (~> 0.1)
73
- i18n (1.5.3)
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.5)
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 to finding (based on the consumer class name) a responder
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
  #
@@ -3,5 +3,5 @@
3
3
  # Main module namespace
4
4
  module Karafka
5
5
  # Current Karafka version
6
- VERSION = '1.2.11'
6
+ VERSION = '1.2.12'
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.11
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-02-05 00:00:00.000000000 Z
13
+ date: 2019-04-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport