karafka 1.3.3 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b234491eed376f4bb8a4471888c04d8ef231c71c06cbfbbfa0b73a887153fa0e
4
- data.tar.gz: ee9921fc8a13766749882b7ef9e1a86ebb6e70dacf1e7a9872b8b304b7b3ac04
3
+ metadata.gz: ddf68ae4e3a502480b2cdede179dca9a62a89e61cd0f7878fdf46629b4204437
4
+ data.tar.gz: 3e0ba01212a750838e946d73216b7dd5b02a19d3a9ac55d094bafbe800af511b
5
5
  SHA512:
6
- metadata.gz: 6b7310e7e15d41e2be3a1cc64452118b00fd666b9bac8fc86bd143721d09f48a08198365c1993e6ca58e13ff82e44a4c5daa115f9a3385ba9f050cab48f89c61
7
- data.tar.gz: f2b50c59c770321f9f28944c2444db8bf0c48d2f2b00675fae5086e4cd5057a43fd95bda06906078d2bf6d55cb48f8b35c33f835bc6b20cc121aa342b2b63253
6
+ metadata.gz: 056b083736bf303d2de7f9aefa83151229b6a8c6f8e6b279c2e06eee41047b1dd31d3361a7b101b9a34572dd22934ac136f1fbb41771e8070cb2ffb24e5f4b1a
7
+ data.tar.gz: 53da753b3835e0c8621a80adcdc0992a7737a3bce1cf0563a27ce76391d4fecc7c55c9d927cd675bf7096074081b2e91073c3a30bbeabcc6c919067812a5a595
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,5 +1,9 @@
1
1
  # Karafka framework changelog
2
2
 
3
+ ## 1.3.4 (2020-02-17)
4
+ - `dry-configurable` upgrade (solnic)
5
+ - Remove temporary `thor` patches that are no longer needed
6
+
3
7
  ## 1.3.3 (2019-12-23)
4
8
  - Require `delegate` to fix missing dependency in `ruby-kafka`
5
9
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka (1.3.3)
4
+ karafka (1.3.4)
5
5
  dry-configurable (~> 0.8)
6
6
  dry-inflector (~> 0.1)
7
7
  dry-monitor (~> 0.3)
@@ -24,17 +24,18 @@ GEM
24
24
  minitest (~> 5.1)
25
25
  tzinfo (~> 1.1)
26
26
  zeitwerk (~> 2.2)
27
- byebug (11.0.1)
28
- concurrent-ruby (1.1.5)
29
- delivery_boy (0.2.8)
27
+ byebug (11.1.1)
28
+ concurrent-ruby (1.1.6)
29
+ delivery_boy (1.0.0)
30
30
  king_konf (~> 0.3)
31
31
  ruby-kafka (~> 0.7.8)
32
32
  diff-lcs (1.3)
33
33
  digest-crc (0.4.1)
34
34
  docile (1.3.2)
35
- dry-configurable (0.9.0)
35
+ dry-configurable (0.11.0)
36
36
  concurrent-ruby (~> 1.0)
37
37
  dry-core (~> 0.4, >= 0.4.7)
38
+ dry-equalizer (~> 0.2)
38
39
  dry-container (0.7.2)
39
40
  concurrent-ruby (~> 1.0)
40
41
  dry-configurable (~> 0.1, >= 0.1.3)
@@ -46,8 +47,8 @@ GEM
46
47
  dry-core (~> 0.4)
47
48
  dry-equalizer (~> 0.2)
48
49
  dry-inflector (0.2.0)
49
- dry-initializer (3.0.2)
50
- dry-logic (1.0.5)
50
+ dry-initializer (3.0.3)
51
+ dry-logic (1.0.6)
51
52
  concurrent-ruby (~> 1.0)
52
53
  dry-core (~> 0.2)
53
54
  dry-equalizer (~> 0.2)
@@ -56,7 +57,7 @@ GEM
56
57
  dry-core (~> 0.4)
57
58
  dry-equalizer (~> 0.2)
58
59
  dry-events (~> 0.1)
59
- dry-schema (1.4.2)
60
+ dry-schema (1.4.3)
60
61
  concurrent-ruby (~> 1.0)
61
62
  dry-configurable (~> 0.8, >= 0.8.3)
62
63
  dry-core (~> 0.4)
@@ -64,62 +65,60 @@ GEM
64
65
  dry-initializer (~> 3.0)
65
66
  dry-logic (~> 1.0)
66
67
  dry-types (~> 1.2)
67
- dry-types (1.2.2)
68
+ dry-types (1.3.1)
68
69
  concurrent-ruby (~> 1.0)
69
70
  dry-container (~> 0.3)
70
71
  dry-core (~> 0.4, >= 0.4.4)
71
72
  dry-equalizer (~> 0.3)
72
73
  dry-inflector (~> 0.1, >= 0.1.2)
73
74
  dry-logic (~> 1.0, >= 1.0.2)
74
- dry-validation (1.4.0)
75
+ dry-validation (1.4.2)
75
76
  concurrent-ruby (~> 1.0)
76
77
  dry-container (~> 0.7, >= 0.7.1)
77
78
  dry-core (~> 0.4)
78
79
  dry-equalizer (~> 0.2)
79
80
  dry-initializer (~> 3.0)
80
- dry-schema (~> 1.0, >= 1.3.1)
81
+ dry-schema (~> 1.4, >= 1.4.3)
81
82
  envlogic (1.1.0)
82
83
  dry-inflector (~> 0.1)
83
84
  factory_bot (5.1.1)
84
85
  activesupport (>= 4.2.0)
85
- i18n (1.7.0)
86
+ i18n (1.8.2)
86
87
  concurrent-ruby (~> 1.0)
87
- io-console (0.5.3)
88
- irb (1.2.1)
88
+ io-console (0.5.5)
89
+ irb (1.2.3)
89
90
  reline (>= 0.0.1)
90
- json (2.3.0)
91
91
  king_konf (0.3.7)
92
- minitest (5.13.0)
92
+ minitest (5.14.0)
93
93
  multi_json (1.14.1)
94
94
  rake (13.0.1)
95
- reline (0.1.2)
95
+ reline (0.1.3)
96
96
  io-console (~> 0.5)
97
97
  rspec (3.9.0)
98
98
  rspec-core (~> 3.9.0)
99
99
  rspec-expectations (~> 3.9.0)
100
100
  rspec-mocks (~> 3.9.0)
101
- rspec-core (3.9.0)
102
- rspec-support (~> 3.9.0)
101
+ rspec-core (3.9.1)
102
+ rspec-support (~> 3.9.1)
103
103
  rspec-expectations (3.9.0)
104
104
  diff-lcs (>= 1.2.0, < 2.0)
105
105
  rspec-support (~> 3.9.0)
106
- rspec-mocks (3.9.0)
106
+ rspec-mocks (3.9.1)
107
107
  diff-lcs (>= 1.2.0, < 2.0)
108
108
  rspec-support (~> 3.9.0)
109
- rspec-support (3.9.0)
109
+ rspec-support (3.9.2)
110
110
  ruby-kafka (0.7.10)
111
111
  digest-crc
112
- simplecov (0.17.1)
112
+ simplecov (0.18.2)
113
113
  docile (~> 1.1)
114
- json (>= 1.8, < 3)
115
- simplecov-html (~> 0.10.0)
116
- simplecov-html (0.10.2)
114
+ simplecov-html (~> 0.11)
115
+ simplecov-html (0.12.0)
117
116
  thor (1.0.1)
118
117
  thread_safe (0.3.6)
119
- tzinfo (1.2.5)
118
+ tzinfo (1.2.6)
120
119
  thread_safe (~> 0.1)
121
- waterdrop (1.3.1)
122
- delivery_boy (~> 0.2)
120
+ waterdrop (1.3.3)
121
+ delivery_boy (>= 0.2, < 2.x)
123
122
  dry-configurable (~> 0.8)
124
123
  dry-monitor (~> 0.3)
125
124
  dry-validation (~> 1.2)
@@ -138,4 +137,4 @@ DEPENDENCIES
138
137
  simplecov
139
138
 
140
139
  BUNDLED WITH
141
- 2.1.2
140
+ 2.1.4
@@ -52,14 +52,8 @@ module Karafka
52
52
  ignored_settings = api_adapter[:subscribe]
53
53
  defined_settings = api_adapter.values.flatten
54
54
  karafka_settings = %i[batch_fetching]
55
- # This is a dirty and bad hack of dry-configurable to get keys before setting values
56
- dynamically_proxied = Karafka::Setup::Config
57
- ._settings
58
- .settings
59
- .find { |s| s.name == :kafka }
60
- .value
61
- .names
62
- .to_a
55
+
56
+ dynamically_proxied = Karafka::Setup::Config.config.kafka.to_h.keys
63
57
 
64
58
  (defined_settings + dynamically_proxied).uniq + karafka_settings - ignored_settings
65
59
  end
@@ -38,7 +38,11 @@ module Karafka
38
38
  # @param label [String] label describing value
39
39
  # @param value [String] value that should be printed
40
40
  def print(label, value)
41
- printf "%-25s %s\n", " - #{label}:", value
41
+ printf(
42
+ "%<label>-25s %<value>s\n",
43
+ label: " - #{label}:",
44
+ value: value
45
+ )
42
46
  end
43
47
  end
44
48
  end
@@ -6,6 +6,8 @@ module Karafka
6
6
  # We validate some basics + the list of consumer_groups on which we want to use, to make
7
7
  # sure that all of them are defined, plus that a pidfile does not exist
8
8
  class ServerCliOptions < Dry::Validation::Contract
9
+ config.messages.load_paths << File.join(Karafka.gem_root, 'config', 'errors.yml')
10
+
9
11
  params do
10
12
  optional(:pid).filled(:str?)
11
13
  optional(:daemon).filled(:bool?)
@@ -3,5 +3,5 @@
3
3
  # Main module namespace
4
4
  module Karafka
5
5
  # Current Karafka version
6
- VERSION = '1.3.3'
6
+ VERSION = '1.3.4'
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.3
4
+ version: 1.3.4
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-12-26 00:00:00.000000000 Z
39
+ date: 2020-02-17 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: dry-configurable
metadata.gz.sig CHANGED
Binary file