karafka 1.2.11 → 1.2.13

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: d14a343dffbcc91c326964cc833bb82e9daedfdc4913eb6478c69e6caa5a995c
4
+ data.tar.gz: 14c3b5a9275dae6a5fb70790b4caf579cd2e1d9a6ac5d56307d950090012ec3d
5
5
  SHA512:
6
- metadata.gz: 2c3279ad72202031be303b64e8505c578fac252364f0bd78351251d4468e465ffad0427fc3218adc00d36cfb4dce5b5d6df33a8db60f1bf05f33f64c9fbeba75
7
- data.tar.gz: 9009bf7b22eaac06faa714f1a349f05807a82f5fc2dbd75ddc73681027bd1ce6bf71e244b42a51349afa024c516ac3388bf2e81370cf12f5f12cccbbc9000418
6
+ metadata.gz: 890c1b249d3457984c2c392dc1bed2413f36704d1268247bd67b2fa70cd3489370786a71e6be6804aa9dc1e02136bc92e97a338c917577929f2a8e0aabaf07bc
7
+ data.tar.gz: cf9a0043a4b82797bf0f6d36a8ba18c97702e22dd9fea25d5c1df13ca3b30b4255244d828e6cd3fba68807d2717209ae626d2a99a25f497a7e15b04d80168d6f
@@ -1,5 +1,11 @@
1
1
  # Karafka framework changelog
2
2
 
3
+ ## 1.2.13
4
+ - Add support for parameter sasl_over_ssl in ruby-kafka
5
+
6
+ ## 1.2.12
7
+ - #29 - Consumer class names must have the word "Consumer" in it in order to work (Sidekiq backend)
8
+
3
9
  ## 1.2.11
4
10
  - [#470](https://github.com/karafka/karafka/issues/470) Karafka not working with dry-configurable 0.8
5
11
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka (1.2.11)
4
+ karafka (1.2.13)
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.2)
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.7)
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
  #
@@ -69,6 +69,7 @@ module Karafka
69
69
  end
70
70
 
71
71
  optional(:ssl_ca_certs_from_system).maybe(:bool?)
72
+ optional(:sasl_over_ssl).maybe(:bool?)
72
73
 
73
74
  # It's not with other encryptions as it has some more rules
74
75
  optional(:sasl_scram_mechanism)
@@ -156,6 +156,8 @@ module Karafka
156
156
  setting :sasl_scram_password, nil
157
157
  # option sasl_scram_mechanism [String, nil] Scram mechanism, either 'sha256' or 'sha512'
158
158
  setting :sasl_scram_mechanism, nil
159
+ # option sasl_over_ssl [Boolean] whether to enforce SSL with SASL
160
+ setting :sasl_over_ssl, true
159
161
  end
160
162
 
161
163
  class << self
@@ -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.13'
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.13
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-05-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport