karafka 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.ruby-version +1 -1
- data/.travis.yml +2 -2
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +30 -30
- data/README.md +2 -2
- data/karafka.gemspec +1 -1
- data/lib/karafka/cli/install.rb +2 -0
- data/lib/karafka/connection/listener.rb +2 -2
- data/lib/karafka/contracts/consumer_group.rb +2 -2
- data/lib/karafka/instrumentation/logger.rb +4 -3
- data/lib/karafka/version.rb +1 -1
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ac8399f2185d0bb8068800b27b4f354b6ff9daa02dff11436eead93c2f7bc87
|
4
|
+
data.tar.gz: f6c27fa56b658887f2cf9e2ceb6f735889f86b41291ea123cca354a37f42fa27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 489b6f20d26d55d67aef878ede57180f369107a1f77c8fe765acfc6d3005a31f21f9ce0677336efcc7df903b9525851c64303906778ca5192b415d83998b4273
|
7
|
+
data.tar.gz: 57e2c3dc857b942808e1969feb97c386f4b2c3ee44ad6e34568d1ee2bb58b3fe857ebb8ae1d6e5293c4d76f30cdcb3424fe6a31f6efda70651e90abff4cc54d3
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.6.
|
1
|
+
2.6.5
|
data/.travis.yml
CHANGED
@@ -19,13 +19,13 @@ test: &test
|
|
19
19
|
jobs:
|
20
20
|
include:
|
21
21
|
- <<: *test
|
22
|
-
rvm: 2.6.
|
22
|
+
rvm: 2.6.5
|
23
23
|
- <<: *test
|
24
24
|
rvm: 2.5.5
|
25
25
|
|
26
26
|
- stage: coditsu
|
27
27
|
language: ruby
|
28
|
-
rvm: 2.6.
|
28
|
+
rvm: 2.6.5
|
29
29
|
before_install:
|
30
30
|
- gem update --system
|
31
31
|
- gem install bundler
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Karafka framework changelog
|
2
2
|
|
3
|
+
## Unreleased (master)
|
4
|
+
|
5
|
+
## 1.3.1 (2019-11-11)
|
6
|
+
- #545 - Makes sure the log directory exists when is possible (robertomiranda)
|
7
|
+
- Ruby 2.6.5 support
|
8
|
+
- #551 - add support for DSA keys
|
9
|
+
- #549 - Missing directories after `karafka install` (nijikon)
|
10
|
+
|
3
11
|
## 1.3.0 (2019-09-09)
|
4
12
|
- Drop support for Ruby 2.4
|
5
13
|
- YARD docs tags cleanup
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
karafka (1.3.
|
4
|
+
karafka (1.3.1)
|
5
5
|
dry-configurable (~> 0.8)
|
6
6
|
dry-inflector (~> 0.1)
|
7
7
|
dry-monitor (~> 0.3)
|
@@ -18,12 +18,12 @@ PATH
|
|
18
18
|
GEM
|
19
19
|
remote: https://rubygems.org/
|
20
20
|
specs:
|
21
|
-
activesupport (6.0.
|
21
|
+
activesupport (6.0.1)
|
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
|
-
zeitwerk (~> 2.
|
26
|
+
zeitwerk (~> 2.2)
|
27
27
|
byebug (11.0.1)
|
28
28
|
concurrent-ruby (1.1.5)
|
29
29
|
delivery_boy (0.2.8)
|
@@ -32,7 +32,7 @@ GEM
|
|
32
32
|
diff-lcs (1.3)
|
33
33
|
digest-crc (0.4.1)
|
34
34
|
docile (1.3.2)
|
35
|
-
dry-configurable (0.
|
35
|
+
dry-configurable (0.9.0)
|
36
36
|
concurrent-ruby (~> 1.0)
|
37
37
|
dry-core (~> 0.4, >= 0.4.7)
|
38
38
|
dry-container (0.7.2)
|
@@ -40,14 +40,14 @@ GEM
|
|
40
40
|
dry-configurable (~> 0.1, >= 0.1.3)
|
41
41
|
dry-core (0.4.9)
|
42
42
|
concurrent-ruby (~> 1.0)
|
43
|
-
dry-equalizer (0.
|
43
|
+
dry-equalizer (0.3.0)
|
44
44
|
dry-events (0.2.0)
|
45
45
|
concurrent-ruby (~> 1.0)
|
46
46
|
dry-core (~> 0.4)
|
47
47
|
dry-equalizer (~> 0.2)
|
48
|
-
dry-inflector (0.
|
49
|
-
dry-initializer (3.0.
|
50
|
-
dry-logic (1.0.
|
48
|
+
dry-inflector (0.2.0)
|
49
|
+
dry-initializer (3.0.2)
|
50
|
+
dry-logic (1.0.5)
|
51
51
|
concurrent-ruby (~> 1.0)
|
52
52
|
dry-core (~> 0.2)
|
53
53
|
dry-equalizer (~> 0.2)
|
@@ -56,15 +56,15 @@ GEM
|
|
56
56
|
dry-core (~> 0.4)
|
57
57
|
dry-equalizer (~> 0.2)
|
58
58
|
dry-events (~> 0.1)
|
59
|
-
dry-schema (1.
|
59
|
+
dry-schema (1.4.1)
|
60
60
|
concurrent-ruby (~> 1.0)
|
61
61
|
dry-configurable (~> 0.8, >= 0.8.3)
|
62
62
|
dry-core (~> 0.4)
|
63
63
|
dry-equalizer (~> 0.2)
|
64
64
|
dry-initializer (~> 3.0)
|
65
65
|
dry-logic (~> 1.0)
|
66
|
-
dry-types (~> 1.
|
67
|
-
dry-types (1.
|
66
|
+
dry-types (~> 1.2)
|
67
|
+
dry-types (1.2.1)
|
68
68
|
concurrent-ruby (~> 1.0)
|
69
69
|
dry-container (~> 0.3)
|
70
70
|
dry-core (~> 0.4, >= 0.4.4)
|
@@ -80,32 +80,32 @@ GEM
|
|
80
80
|
dry-schema (~> 1.0, >= 1.3.1)
|
81
81
|
envlogic (1.1.0)
|
82
82
|
dry-inflector (~> 0.1)
|
83
|
-
factory_bot (5.
|
83
|
+
factory_bot (5.1.1)
|
84
84
|
activesupport (>= 4.2.0)
|
85
|
-
i18n (1.
|
85
|
+
i18n (1.7.0)
|
86
86
|
concurrent-ruby (~> 1.0)
|
87
87
|
irb (1.0.0)
|
88
88
|
json (2.2.0)
|
89
89
|
king_konf (0.3.7)
|
90
|
-
minitest (5.
|
91
|
-
multi_json (1.
|
92
|
-
rake (
|
93
|
-
rspec (3.
|
94
|
-
rspec-core (~> 3.
|
95
|
-
rspec-expectations (~> 3.
|
96
|
-
rspec-mocks (~> 3.
|
97
|
-
rspec-core (3.
|
98
|
-
rspec-support (~> 3.
|
99
|
-
rspec-expectations (3.
|
90
|
+
minitest (5.13.0)
|
91
|
+
multi_json (1.14.1)
|
92
|
+
rake (13.0.0)
|
93
|
+
rspec (3.9.0)
|
94
|
+
rspec-core (~> 3.9.0)
|
95
|
+
rspec-expectations (~> 3.9.0)
|
96
|
+
rspec-mocks (~> 3.9.0)
|
97
|
+
rspec-core (3.9.0)
|
98
|
+
rspec-support (~> 3.9.0)
|
99
|
+
rspec-expectations (3.9.0)
|
100
100
|
diff-lcs (>= 1.2.0, < 2.0)
|
101
|
-
rspec-support (~> 3.
|
102
|
-
rspec-mocks (3.
|
101
|
+
rspec-support (~> 3.9.0)
|
102
|
+
rspec-mocks (3.9.0)
|
103
103
|
diff-lcs (>= 1.2.0, < 2.0)
|
104
|
-
rspec-support (~> 3.
|
105
|
-
rspec-support (3.
|
104
|
+
rspec-support (~> 3.9.0)
|
105
|
+
rspec-support (3.9.0)
|
106
106
|
ruby-kafka (0.7.10)
|
107
107
|
digest-crc
|
108
|
-
simplecov (0.17.
|
108
|
+
simplecov (0.17.1)
|
109
109
|
docile (~> 1.1)
|
110
110
|
json (>= 1.8, < 3)
|
111
111
|
simplecov-html (~> 0.10.0)
|
@@ -114,14 +114,14 @@ GEM
|
|
114
114
|
thread_safe (0.3.6)
|
115
115
|
tzinfo (1.2.5)
|
116
116
|
thread_safe (~> 0.1)
|
117
|
-
waterdrop (1.3.
|
117
|
+
waterdrop (1.3.1)
|
118
118
|
delivery_boy (~> 0.2)
|
119
119
|
dry-configurable (~> 0.8)
|
120
120
|
dry-monitor (~> 0.3)
|
121
121
|
dry-validation (~> 1.2)
|
122
122
|
ruby-kafka (>= 0.7.8)
|
123
123
|
zeitwerk (~> 2.1)
|
124
|
-
zeitwerk (2.1
|
124
|
+
zeitwerk (2.2.1)
|
125
125
|
|
126
126
|
PLATFORMS
|
127
127
|
ruby
|
data/README.md
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/karafka/karafka.svg?branch=master)](https://travis-ci.org/karafka/karafka)
|
4
4
|
|
5
|
-
## New release in progress!
|
6
|
-
|
7
5
|
**Note**: Documentation presented here refers to Karafka `1.3.0`.
|
8
6
|
|
7
|
+
If you're upgrading from `1.2.0`, please refer to our [Upgrade Notes article](https://mensfeld.pl/2019/09/karafka-framework-1-3-0-release-notes-ruby-kafka/).
|
8
|
+
|
9
9
|
If you are looking for the documentation for Karafka `1.2.*`, it can be found [here](https://github.com/karafka/wiki/tree/1.2).
|
10
10
|
|
11
11
|
## About Karafka
|
data/karafka.gemspec
CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_dependency 'waterdrop', '~> 1.3.0'
|
31
31
|
spec.add_dependency 'zeitwerk', '~> 2.1'
|
32
32
|
|
33
|
-
spec.required_ruby_version = '>= 2.
|
33
|
+
spec.required_ruby_version = '>= 2.5.0'
|
34
34
|
|
35
35
|
if $PROGRAM_NAME.end_with?('gem')
|
36
36
|
spec.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
|
data/lib/karafka/cli/install.rb
CHANGED
@@ -47,10 +47,10 @@ module Karafka
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
# This is on purpose - see the notes for this method
|
50
|
-
# rubocop:disable RescueException
|
50
|
+
# rubocop:disable Lint/RescueException
|
51
51
|
rescue Exception => e
|
52
52
|
Karafka.monitor.instrument('connection.listener.fetch_loop.error', caller: self, error: e)
|
53
|
-
# rubocop:enable RescueException
|
53
|
+
# rubocop:enable Lint/RescueException
|
54
54
|
# We can stop client without a problem, as it will reinitialize itself when running the
|
55
55
|
# `fetch_loop` again
|
56
56
|
@client.stop
|
@@ -178,9 +178,9 @@ module Karafka
|
|
178
178
|
# @param value [String] potential RSA key value
|
179
179
|
# @return [Boolean] is the given string a valid RSA key
|
180
180
|
def valid_private_key?(value)
|
181
|
-
OpenSSL::PKey
|
181
|
+
OpenSSL::PKey.read(value)
|
182
182
|
true
|
183
|
-
rescue OpenSSL::PKey::
|
183
|
+
rescue OpenSSL::PKey::PKeyError
|
184
184
|
false
|
185
185
|
end
|
186
186
|
|
@@ -36,10 +36,11 @@ module Karafka
|
|
36
36
|
.to(STDOUT, file)
|
37
37
|
end
|
38
38
|
|
39
|
-
# Makes sure the log directory exists
|
39
|
+
# Makes sure the log directory exists as long as we can write to it
|
40
40
|
def ensure_dir_exists
|
41
|
-
|
42
|
-
|
41
|
+
FileUtils.mkdir_p(File.dirname(log_path))
|
42
|
+
rescue Errno::EACCES
|
43
|
+
nil
|
43
44
|
end
|
44
45
|
|
45
46
|
# @return [Pathname] Path to a file to which we should log
|
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.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maciej Mensfeld
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
KJG/fhg1JV5vVDdVy6x+tv5SQ5ctU0feCsVfESi3rE3zRd+nvzE9HcZ5aXeL1UtJ
|
37
37
|
nT5Xrioegu2w1jPyVEgyZgTZC5rvD0nNS5sFNQ==
|
38
38
|
-----END CERTIFICATE-----
|
39
|
-
date: 2019-
|
39
|
+
date: 2019-11-11 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: dry-configurable
|
@@ -322,7 +322,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
322
322
|
requirements:
|
323
323
|
- - ">="
|
324
324
|
- !ruby/object:Gem::Version
|
325
|
-
version: 2.
|
325
|
+
version: 2.5.0
|
326
326
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
327
327
|
requirements:
|
328
328
|
- - ">="
|
metadata.gz.sig
CHANGED
Binary file
|