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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffe10d1ca48b0b218191231ec6969f3a767f5a1a4010dca0ef00fa44c2eaab67
4
- data.tar.gz: 27d1b52ba3782b562176b7a6de73563bdd48c250bc0576a1821c55bfcec07bff
3
+ metadata.gz: 5ac8399f2185d0bb8068800b27b4f354b6ff9daa02dff11436eead93c2f7bc87
4
+ data.tar.gz: f6c27fa56b658887f2cf9e2ceb6f735889f86b41291ea123cca354a37f42fa27
5
5
  SHA512:
6
- metadata.gz: 85bdedfe0791c7d17abbc54ed49df83e2c9cbfb048124107d403559e72b2884909bcc5974c98a738744f80184315b2ee31cc8bd1048cc5a10230e6b6f0184e3d
7
- data.tar.gz: 382074bee041ed27776571816a982fbd7f0af6b6f9cfa8fa393113acf1c2d4cbfb0a7573d2bcd16f2662667d1b8175546e281deb5a7b66ce30b5d9c4c19d005d
6
+ metadata.gz: 489b6f20d26d55d67aef878ede57180f369107a1f77c8fe765acfc6d3005a31f21f9ce0677336efcc7df903b9525851c64303906778ca5192b415d83998b4273
7
+ data.tar.gz: 57e2c3dc857b942808e1969feb97c386f4b2c3ee44ad6e34568d1ee2bb58b3fe857ebb8ae1d6e5293c4d76f30cdcb3424fe6a31f6efda70651e90abff4cc54d3
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1 +1 @@
1
- 2.6.3
1
+ 2.6.5
@@ -19,13 +19,13 @@ test: &test
19
19
  jobs:
20
20
  include:
21
21
  - <<: *test
22
- rvm: 2.6.3
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.3
28
+ rvm: 2.6.5
29
29
  before_install:
30
30
  - gem update --system
31
31
  - gem install bundler
@@ -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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka (1.3.0)
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.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.1, >= 2.1.8)
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.8.3)
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.2.2)
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.1.2)
49
- dry-initializer (3.0.1)
50
- dry-logic (1.0.3)
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.3.3)
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.0)
67
- dry-types (1.1.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.0.2)
83
+ factory_bot (5.1.1)
84
84
  activesupport (>= 4.2.0)
85
- i18n (1.6.0)
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.11.3)
91
- multi_json (1.13.1)
92
- rake (12.3.3)
93
- rspec (3.8.0)
94
- rspec-core (~> 3.8.0)
95
- rspec-expectations (~> 3.8.0)
96
- rspec-mocks (~> 3.8.0)
97
- rspec-core (3.8.2)
98
- rspec-support (~> 3.8.0)
99
- rspec-expectations (3.8.4)
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.8.0)
102
- rspec-mocks (3.8.1)
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.8.0)
105
- rspec-support (3.8.2)
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.0)
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.0)
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.10)
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
@@ -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.4.0'
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')
@@ -13,7 +13,9 @@ module Karafka
13
13
  INSTALL_DIRS = %w[
14
14
  app/consumers
15
15
  app/responders
16
+ app/workers
16
17
  config
18
+ lib
17
19
  log
18
20
  tmp/pids
19
21
  ].freeze
@@ -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::RSA.new(value)
181
+ OpenSSL::PKey.read(value)
182
182
  true
183
- rescue OpenSSL::PKey::RSAError
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
- dir = File.dirname(log_path)
42
- FileUtils.mkdir_p(dir) unless Dir.exist?(dir)
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
@@ -3,5 +3,5 @@
3
3
  # Main module namespace
4
4
  module Karafka
5
5
  # Current Karafka version
6
- VERSION = '1.3.0'
6
+ VERSION = '1.3.1'
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.3.0
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-09-09 00:00:00.000000000 Z
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.4.0
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