waterdrop 2.0.3 → 2.0.4
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/CHANGELOG.md +4 -0
- data/Gemfile.lock +20 -23
- data/README.md +4 -6
- data/lib/water_drop/config.rb +20 -8
- data/lib/water_drop/version.rb +1 -1
- data/waterdrop.gemspec +5 -5
- data.tar.gz.sig +0 -0
- metadata +13 -14
- metadata.gz.sig +0 -0
- data/.github/FUNDING.yml +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85bb80807690f36f2dff0e6da8e4382b1b03e00e34464cd9ba17fc3ca476e69a
|
4
|
+
data.tar.gz: 636af3b96412184c7ae744805a941d13008ede5e4e86323c0f6117d0bdf6747b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f67e059760f6019a455f0ffad0dcef24080e638ff5c34bafbc3cb56cec614457c2aa991e8c964685cc55bb93e8bce7c5e0e25745cd743e0ed060ea5b275d118b
|
7
|
+
data.tar.gz: 5451c3dcba29bf66c4a30630733d8b8dfbf9d05935cba1414c61dd0834907f116a6ebadd8fe5df571423abe09ae687cee8aaad5acbcdf2b3eecfe595a95d4ff2
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# WaterDrop changelog
|
2
2
|
|
3
|
+
## 2.0.4 (Unreleased)
|
4
|
+
- Update `dry-*` to the recent versions and update settings syntax to match it
|
5
|
+
- Update Zeitwerk requirement
|
6
|
+
|
3
7
|
## 2.0.3 (2021-09-05)
|
4
8
|
- Remove rdkafka patch in favour of spec topic pre-creation
|
5
9
|
- Do not close client that was never used upon closing producer
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
waterdrop (2.0.
|
4
|
+
waterdrop (2.0.4)
|
5
5
|
concurrent-ruby (>= 1.1)
|
6
|
-
dry-configurable (~> 0.
|
7
|
-
dry-monitor (~> 0.
|
8
|
-
dry-validation (~> 1.
|
9
|
-
rdkafka (>= 0.
|
10
|
-
zeitwerk (~> 2.
|
6
|
+
dry-configurable (~> 0.13)
|
7
|
+
dry-monitor (~> 0.5)
|
8
|
+
dry-validation (~> 1.7)
|
9
|
+
rdkafka (>= 0.10)
|
10
|
+
zeitwerk (~> 2.3)
|
11
11
|
|
12
12
|
GEM
|
13
13
|
remote: https://rubygems.org/
|
@@ -22,15 +22,14 @@ GEM
|
|
22
22
|
concurrent-ruby (1.1.9)
|
23
23
|
diff-lcs (1.4.4)
|
24
24
|
docile (1.4.0)
|
25
|
-
dry-configurable (0.
|
25
|
+
dry-configurable (0.13.0)
|
26
26
|
concurrent-ruby (~> 1.0)
|
27
|
-
dry-core (~> 0.
|
28
|
-
dry-container (0.
|
27
|
+
dry-core (~> 0.6)
|
28
|
+
dry-container (0.9.0)
|
29
29
|
concurrent-ruby (~> 1.0)
|
30
|
-
dry-configurable (~> 0.
|
30
|
+
dry-configurable (~> 0.13, >= 0.13.0)
|
31
31
|
dry-core (0.7.1)
|
32
32
|
concurrent-ruby (~> 1.0)
|
33
|
-
dry-equalizer (0.3.0)
|
34
33
|
dry-events (0.3.0)
|
35
34
|
concurrent-ruby (~> 1.0)
|
36
35
|
dry-core (~> 0.5, >= 0.5)
|
@@ -39,13 +38,13 @@ GEM
|
|
39
38
|
dry-logic (1.2.0)
|
40
39
|
concurrent-ruby (~> 1.0)
|
41
40
|
dry-core (~> 0.5, >= 0.5)
|
42
|
-
dry-monitor (0.
|
43
|
-
dry-configurable (~> 0.
|
41
|
+
dry-monitor (0.5.0)
|
42
|
+
dry-configurable (~> 0.13, >= 0.13.0)
|
44
43
|
dry-core (~> 0.5, >= 0.5)
|
45
44
|
dry-events (~> 0.2)
|
46
|
-
dry-schema (1.
|
45
|
+
dry-schema (1.8.0)
|
47
46
|
concurrent-ruby (~> 1.0)
|
48
|
-
dry-configurable (~> 0.
|
47
|
+
dry-configurable (~> 0.13, >= 0.13.0)
|
49
48
|
dry-core (~> 0.5, >= 0.5)
|
50
49
|
dry-initializer (~> 3.0)
|
51
50
|
dry-logic (~> 1.0)
|
@@ -56,22 +55,21 @@ GEM
|
|
56
55
|
dry-core (~> 0.5, >= 0.5)
|
57
56
|
dry-inflector (~> 0.1, >= 0.1.2)
|
58
57
|
dry-logic (~> 1.0, >= 1.0.2)
|
59
|
-
dry-validation (1.
|
58
|
+
dry-validation (1.7.0)
|
60
59
|
concurrent-ruby (~> 1.0)
|
61
60
|
dry-container (~> 0.7, >= 0.7.1)
|
62
|
-
dry-core (~> 0.
|
63
|
-
dry-equalizer (~> 0.2)
|
61
|
+
dry-core (~> 0.5, >= 0.5)
|
64
62
|
dry-initializer (~> 3.0)
|
65
|
-
dry-schema (~> 1.
|
63
|
+
dry-schema (~> 1.8, >= 1.8.0)
|
66
64
|
factory_bot (6.2.0)
|
67
65
|
activesupport (>= 5.0.0)
|
68
|
-
ffi (1.15.
|
66
|
+
ffi (1.15.4)
|
69
67
|
i18n (1.8.10)
|
70
68
|
concurrent-ruby (~> 1.0)
|
71
69
|
mini_portile2 (2.7.0)
|
72
70
|
minitest (5.14.4)
|
73
71
|
rake (13.0.6)
|
74
|
-
rdkafka (0.
|
72
|
+
rdkafka (0.10.0)
|
75
73
|
ffi (~> 1.9)
|
76
74
|
mini_portile2 (~> 2.1)
|
77
75
|
rake (>= 12.3)
|
@@ -99,7 +97,6 @@ GEM
|
|
99
97
|
zeitwerk (2.4.2)
|
100
98
|
|
101
99
|
PLATFORMS
|
102
|
-
x86_64-darwin
|
103
100
|
x86_64-linux
|
104
101
|
|
105
102
|
DEPENDENCIES
|
@@ -111,4 +108,4 @@ DEPENDENCIES
|
|
111
108
|
waterdrop!
|
112
109
|
|
113
110
|
BUNDLED WITH
|
114
|
-
2.2.
|
111
|
+
2.2.27
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Please refer to [this](https://github.com/karafka/waterdrop/tree/1.4) branch and
|
|
8
8
|
|
9
9
|
[![Build Status](https://github.com/karafka/waterdrop/workflows/ci/badge.svg)](https://github.com/karafka/waterdrop/actions?query=workflow%3Aci)
|
10
10
|
[![Gem Version](https://badge.fury.io/rb/waterdrop.svg)](http://badge.fury.io/rb/waterdrop)
|
11
|
-
[![Join the chat at https://
|
11
|
+
[![Join the chat at https://slack.karafka.io](https://raw.githubusercontent.com/karafka/misc/master/slack.svg)](https://slack.karafka.io)
|
12
12
|
|
13
13
|
Gem used to send messages to Kafka in an easy way with an extra validation layer. It is a part of the [Karafka](https://github.com/karafka/karafka) ecosystem.
|
14
14
|
|
@@ -305,10 +305,8 @@ To tackle this [obstacle](https://github.com/appsignal/rdkafka-ruby/issues/15) r
|
|
305
305
|
|
306
306
|
## Note on contributions
|
307
307
|
|
308
|
-
First, thank you for considering contributing to
|
308
|
+
First, thank you for considering contributing to the Karafka ecosystem! It's people like you that make the open source community such a great community!
|
309
309
|
|
310
|
-
Each pull request must pass all the RSpec specs and meet our quality requirements.
|
310
|
+
Each pull request must pass all the RSpec specs, integration tests and meet our quality requirements.
|
311
311
|
|
312
|
-
|
313
|
-
|
314
|
-
Coditsu will automatically check your work against our quality standards. You can find your commit check results on the [builds page](https://app.coditsu.io/karafka/repositories/waterdrop/builds/commit_builds) of WaterDrop repository.
|
312
|
+
Fork it, update and wait for the Github Actions results.
|
data/lib/water_drop/config.rb
CHANGED
@@ -11,29 +11,41 @@ module WaterDrop
|
|
11
11
|
#
|
12
12
|
# option [String] id of the producer. This can be helpful when building producer specific
|
13
13
|
# instrumentation or loggers. It is not the kafka producer id
|
14
|
-
setting(
|
14
|
+
setting(
|
15
|
+
:id,
|
16
|
+
default: false,
|
17
|
+
constructor: ->(id) { id || SecureRandom.uuid }
|
18
|
+
)
|
15
19
|
# option [Instance] logger that we want to use
|
16
20
|
# @note Due to how rdkafka works, this setting is global for all the producers
|
17
|
-
setting(
|
21
|
+
setting(
|
22
|
+
:logger,
|
23
|
+
default: false,
|
24
|
+
constructor: ->(logger) { logger || Logger.new($stdout, level: Logger::WARN) }
|
25
|
+
)
|
18
26
|
# option [Instance] monitor that we want to use. See instrumentation part of the README for
|
19
27
|
# more details
|
20
|
-
setting(
|
28
|
+
setting(
|
29
|
+
:monitor,
|
30
|
+
default: false,
|
31
|
+
constructor: ->(monitor) { monitor || WaterDrop::Instrumentation::Monitor.new }
|
32
|
+
)
|
21
33
|
# option [Integer] max payload size allowed for delivery to Kafka
|
22
|
-
setting :max_payload_size, 1_000_012
|
34
|
+
setting :max_payload_size, default: 1_000_012
|
23
35
|
# option [Integer] Wait that long for the delivery report or raise an error if this takes
|
24
36
|
# longer than the timeout.
|
25
|
-
setting :max_wait_timeout, 5
|
37
|
+
setting :max_wait_timeout, default: 5
|
26
38
|
# option [Numeric] how long should we wait between re-checks on the availability of the
|
27
39
|
# delivery report. In a really robust systems, this describes the min-delivery time
|
28
40
|
# for a single sync message when produced in isolation
|
29
|
-
setting :wait_timeout, 0.005 # 5 milliseconds
|
41
|
+
setting :wait_timeout, default: 0.005 # 5 milliseconds
|
30
42
|
# option [Boolean] should we send messages. Setting this to false can be really useful when
|
31
43
|
# testing and or developing because when set to false, won't actually ping Kafka but will
|
32
44
|
# run all the validations, etc
|
33
|
-
setting :deliver, true
|
45
|
+
setting :deliver, default: true
|
34
46
|
# rdkafka options
|
35
47
|
# @see https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md
|
36
|
-
setting :kafka, {}
|
48
|
+
setting :kafka, default: {}
|
37
49
|
|
38
50
|
# Configuration method
|
39
51
|
# @yield Runs a block of code providing a config singleton instance to it
|
data/lib/water_drop/version.rb
CHANGED
data/waterdrop.gemspec
CHANGED
@@ -17,11 +17,11 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.license = 'MIT'
|
18
18
|
|
19
19
|
spec.add_dependency 'concurrent-ruby', '>= 1.1'
|
20
|
-
spec.add_dependency 'dry-configurable', '~> 0.
|
21
|
-
spec.add_dependency 'dry-monitor', '~> 0.
|
22
|
-
spec.add_dependency 'dry-validation', '~> 1.
|
23
|
-
spec.add_dependency 'rdkafka', '>= 0.
|
24
|
-
spec.add_dependency 'zeitwerk', '~> 2.
|
20
|
+
spec.add_dependency 'dry-configurable', '~> 0.13'
|
21
|
+
spec.add_dependency 'dry-monitor', '~> 0.5'
|
22
|
+
spec.add_dependency 'dry-validation', '~> 1.7'
|
23
|
+
spec.add_dependency 'rdkafka', '>= 0.10'
|
24
|
+
spec.add_dependency 'zeitwerk', '~> 2.3'
|
25
25
|
|
26
26
|
spec.required_ruby_version = '>= 2.6.0'
|
27
27
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: waterdrop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maciej Mensfeld
|
@@ -34,7 +34,7 @@ cert_chain:
|
|
34
34
|
R2P11bWoCtr70BsccVrN8jEhzwXngMyI2gVt750Y+dbTu1KgRqZKp/ECe7ZzPzXj
|
35
35
|
pIy9vHxTANKYVyI4qj8OrFdEM5BQNu8oQpL0iQ==
|
36
36
|
-----END CERTIFICATE-----
|
37
|
-
date: 2021-09-
|
37
|
+
date: 2021-09-19 00:00:00.000000000 Z
|
38
38
|
dependencies:
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: concurrent-ruby
|
@@ -56,70 +56,70 @@ dependencies:
|
|
56
56
|
requirements:
|
57
57
|
- - "~>"
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: '0.
|
59
|
+
version: '0.13'
|
60
60
|
type: :runtime
|
61
61
|
prerelease: false
|
62
62
|
version_requirements: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
64
|
- - "~>"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: '0.
|
66
|
+
version: '0.13'
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: dry-monitor
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
71
|
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: '0.
|
73
|
+
version: '0.5'
|
74
74
|
type: :runtime
|
75
75
|
prerelease: false
|
76
76
|
version_requirements: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
78
|
- - "~>"
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: '0.
|
80
|
+
version: '0.5'
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: dry-validation
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
85
|
- - "~>"
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version: '1.
|
87
|
+
version: '1.7'
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
90
|
version_requirements: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
92
|
- - "~>"
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version: '1.
|
94
|
+
version: '1.7'
|
95
95
|
- !ruby/object:Gem::Dependency
|
96
96
|
name: rdkafka
|
97
97
|
requirement: !ruby/object:Gem::Requirement
|
98
98
|
requirements:
|
99
99
|
- - ">="
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 0.
|
101
|
+
version: '0.10'
|
102
102
|
type: :runtime
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
106
|
- - ">="
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version: 0.
|
108
|
+
version: '0.10'
|
109
109
|
- !ruby/object:Gem::Dependency
|
110
110
|
name: zeitwerk
|
111
111
|
requirement: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
113
|
- - "~>"
|
114
114
|
- !ruby/object:Gem::Version
|
115
|
-
version: '2.
|
115
|
+
version: '2.3'
|
116
116
|
type: :runtime
|
117
117
|
prerelease: false
|
118
118
|
version_requirements: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
120
|
- - "~>"
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version: '2.
|
122
|
+
version: '2.3'
|
123
123
|
description: Kafka messaging made easy!
|
124
124
|
email:
|
125
125
|
- maciej@mensfeld.pl
|
@@ -129,7 +129,6 @@ extra_rdoc_files: []
|
|
129
129
|
files:
|
130
130
|
- ".coditsu/ci.yml"
|
131
131
|
- ".diffend.yml"
|
132
|
-
- ".github/FUNDING.yml"
|
133
132
|
- ".github/workflows/ci.yml"
|
134
133
|
- ".gitignore"
|
135
134
|
- ".rspec"
|
@@ -183,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
182
|
- !ruby/object:Gem::Version
|
184
183
|
version: '0'
|
185
184
|
requirements: []
|
186
|
-
rubygems_version: 3.2.
|
185
|
+
rubygems_version: 3.2.27
|
187
186
|
signing_key:
|
188
187
|
specification_version: 4
|
189
188
|
summary: Kafka messaging made easy!
|
metadata.gz.sig
CHANGED
Binary file
|
data/.github/FUNDING.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
open_collective: karafka
|