waterdrop 2.4.9 → 2.4.11

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: e2e707af4409ace682680ca2131b89221ee04552b856a0855e663a209e09e0fb
4
- data.tar.gz: fed47f90aa9397754ec6819fcc720d18ad3cace184a053ca6dbbec1b86480172
3
+ metadata.gz: c5190e7c6d460afe6d9a55cb177220e23cd5e89262430f361c3e29ab7df685e6
4
+ data.tar.gz: 8cf622a618610bc1bdd283ba2046e0d233d660c0e71dfc70c78ecea2f41db22e
5
5
  SHA512:
6
- metadata.gz: 8e2fa6d1abbaa0cae44a8a8fd5e17ef64a851e48c0433d74ca259a52747b92aa94beeabf2ccbc8c3df3efec67050f04b22cafb346f8f69d279effe86590a7079
7
- data.tar.gz: 5eefb7ba3ae2c3f1ce6253fd5206762c4fd94698719968f42a3e7ddd5cc18a90459ed2eddc29c01452fd9c211cd1e57cb71f66338b428eaf71e0b3ddb0eb45c2
6
+ metadata.gz: 48b3d383c175c392acbdd4a3a41a543192c0ca0e404d755f7fc8eae862350e8d62c9855fb8fea8dc354e358162574f4ff052c850c2ae0fc13a763f951330b97d
7
+ data.tar.gz: 7da204b9493122e752933dac8856057c80c4ca640ccd31c8c5787cb9f20fbd8add2ef1851a447ef04010a72e70722d54689978697c4ef1def6ee5c3f2dc23fbe
checksums.yaml.gz.sig CHANGED
Binary file
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.2.0
1
+ 3.2.1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # WaterDrop changelog
2
2
 
3
+ ## 2.4.11 (2023-02-24)
4
+ - Replace the local rspec locator with generalized core one.
5
+ - Make `::WaterDrop::Instrumentation::Notifications::EVENTS` list public for anyone wanting to re-bind those into a different notification bus.
6
+
7
+ ## 2.4.10 (2023-01-30)
8
+ - Include `caller` in the error instrumentation to align with Karafka.
9
+
3
10
  ## 2.4.9 (2023-01-11)
4
11
  - Remove empty debug logging out of `LoggerListener`.
5
12
  - Do not lock Ruby version in Karafka in favour of `karafka-core`.
data/Gemfile.lock CHANGED
@@ -1,20 +1,20 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- waterdrop (2.4.9)
5
- karafka-core (>= 2.0.9, < 3.0.0)
4
+ waterdrop (2.4.11)
5
+ karafka-core (>= 2.0.12, < 3.0.0)
6
6
  zeitwerk (~> 2.3)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.0.4)
11
+ activesupport (7.0.4.2)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 1.6, < 2)
14
14
  minitest (>= 5.1)
15
15
  tzinfo (~> 2.0)
16
16
  byebug (11.1.3)
17
- concurrent-ruby (1.1.10)
17
+ concurrent-ruby (1.2.0)
18
18
  diff-lcs (1.5.0)
19
19
  docile (1.4.0)
20
20
  factory_bot (6.2.1)
@@ -22,10 +22,10 @@ GEM
22
22
  ffi (1.15.5)
23
23
  i18n (1.12.0)
24
24
  concurrent-ruby (~> 1.0)
25
- karafka-core (2.0.9)
25
+ karafka-core (2.0.12)
26
26
  concurrent-ruby (>= 1.1)
27
- karafka-rdkafka (>= 0.12)
28
- karafka-rdkafka (0.12.0)
27
+ karafka-rdkafka (>= 0.12.1)
28
+ karafka-rdkafka (0.12.1)
29
29
  ffi (~> 1.15)
30
30
  mini_portile2 (~> 2.6)
31
31
  rake (> 12)
@@ -36,12 +36,12 @@ GEM
36
36
  rspec-core (~> 3.12.0)
37
37
  rspec-expectations (~> 3.12.0)
38
38
  rspec-mocks (~> 3.12.0)
39
- rspec-core (3.12.0)
39
+ rspec-core (3.12.1)
40
40
  rspec-support (~> 3.12.0)
41
41
  rspec-expectations (3.12.2)
42
42
  diff-lcs (>= 1.2.0, < 2.0)
43
43
  rspec-support (~> 3.12.0)
44
- rspec-mocks (3.12.2)
44
+ rspec-mocks (3.12.3)
45
45
  diff-lcs (>= 1.2.0, < 2.0)
46
46
  rspec-support (~> 3.12.0)
47
47
  rspec-support (3.12.0)
@@ -51,11 +51,12 @@ GEM
51
51
  simplecov_json_formatter (~> 0.1)
52
52
  simplecov-html (0.12.3)
53
53
  simplecov_json_formatter (0.1.4)
54
- tzinfo (2.0.5)
54
+ tzinfo (2.0.6)
55
55
  concurrent-ruby (~> 1.0)
56
- zeitwerk (2.6.6)
56
+ zeitwerk (2.6.7)
57
57
 
58
58
  PLATFORMS
59
+ arm64-darwin-21
59
60
  x86_64-linux
60
61
 
61
62
  DEPENDENCIES
@@ -66,4 +67,4 @@ DEPENDENCIES
66
67
  waterdrop!
67
68
 
68
69
  BUNDLED WITH
69
- 2.4.2
70
+ 2.4.6
data/README.md CHANGED
@@ -90,6 +90,8 @@ end
90
90
 
91
91
  ### WaterDrop configuration options
92
92
 
93
+ Some of the options are:
94
+
93
95
  | Option | Description |
94
96
  |--------------------|-----------------------------------------------------------------|
95
97
  | `id` | id of the producer for instrumentation and logging |
@@ -98,6 +100,8 @@ end
98
100
  | `max_wait_timeout` | Waits that long for the delivery report or raises an error |
99
101
  | `wait_timeout` | Waits that long before re-check of delivery report availability |
100
102
 
103
+ Full list of the root configuration options is available [here](https://github.com/karafka/waterdrop/blob/master/lib/waterdrop/config.rb#L25).
104
+
101
105
  ### Kafka configuration options
102
106
 
103
107
  You can create producers with different `kafka` settings. Documentation of the available configuration options is available on https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md.
@@ -299,7 +303,7 @@ producer.produce_async(topic: 'events', payload: 'data')
299
303
  producer.close
300
304
  ```
301
305
 
302
- See the `WaterDrop::Instrumentation::Monitor::EVENTS` for the list of all the supported events.
306
+ See the `WaterDrop::Instrumentation::Notifications::EVENTS` for the list of all the supported events.
303
307
 
304
308
  ### Usage statistics
305
309
 
@@ -25,6 +25,7 @@ module WaterDrop
25
25
 
26
26
  @monitor.instrument(
27
27
  'error.occurred',
28
+ caller: self,
28
29
  error: error,
29
30
  producer_id: @producer_id,
30
31
  type: 'librdkafka.error'
@@ -26,8 +26,6 @@ module WaterDrop
26
26
  error.occurred
27
27
  ].freeze
28
28
 
29
- private_constant :EVENTS
30
-
31
29
  # @return [WaterDrop::Instrumentation::Monitor] monitor instance for system instrumentation
32
30
  def initialize
33
31
  super
@@ -110,6 +110,7 @@ module WaterDrop
110
110
  rescue *RESCUED_ERRORS => e
111
111
  @monitor.instrument(
112
112
  'error.occurred',
113
+ caller: self,
113
114
  error: e,
114
115
  producer_id: id,
115
116
  dispatched: dispatched,
@@ -3,5 +3,5 @@
3
3
  # WaterDrop library
4
4
  module WaterDrop
5
5
  # Current WaterDrop version
6
- VERSION = '2.4.9'
6
+ VERSION = '2.4.11'
7
7
  end
data/waterdrop.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
  spec.description = spec.summary
17
17
  spec.license = 'MIT'
18
18
 
19
- spec.add_dependency 'karafka-core', '>= 2.0.9', '< 3.0.0'
19
+ spec.add_dependency 'karafka-core', '>= 2.0.12', '< 3.0.0'
20
20
  spec.add_dependency 'zeitwerk', '~> 2.3'
21
21
 
22
22
  if $PROGRAM_NAME.end_with?('gem')
@@ -29,7 +29,12 @@ Gem::Specification.new do |spec|
29
29
  spec.require_paths = %w[lib]
30
30
 
31
31
  spec.metadata = {
32
+ 'funding_uri' => 'https://karafka.io/#become-pro',
33
+ 'homepage_uri' => 'https://karafka.io',
34
+ 'changelog_uri' => 'https://github.com/karafka/waterdrop/blob/master/CHANGELOG.md',
35
+ 'bug_tracker_uri' => 'https://github.com/karafka/waterdrop/issues',
32
36
  'source_code_uri' => 'https://github.com/karafka/waterdrop',
37
+ 'documentation_uri' => 'https://github.com/karafka/waterdrop#readme',
33
38
  'rubygems_mfa_required' => 'true'
34
39
  }
35
40
  end
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.4.9
4
+ version: 2.4.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
@@ -35,7 +35,7 @@ cert_chain:
35
35
  Qf04B9ceLUaC4fPVEz10FyobjaFoY4i32xRto3XnrzeAgfEe4swLq8bQsR3w/EF3
36
36
  MGU0FeSV2Yj7Xc2x/7BzLK8xQn5l7Yy75iPF+KP3vVmDHnNl
37
37
  -----END CERTIFICATE-----
38
- date: 2023-01-11 00:00:00.000000000 Z
38
+ date: 2023-02-24 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: karafka-core
@@ -43,7 +43,7 @@ dependencies:
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 2.0.9
46
+ version: 2.0.12
47
47
  - - "<"
48
48
  - !ruby/object:Gem::Version
49
49
  version: 3.0.0
@@ -53,7 +53,7 @@ dependencies:
53
53
  requirements:
54
54
  - - ">="
55
55
  - !ruby/object:Gem::Version
56
- version: 2.0.9
56
+ version: 2.0.12
57
57
  - - "<"
58
58
  - !ruby/object:Gem::Version
59
59
  version: 3.0.0
@@ -125,7 +125,12 @@ homepage: https://karafka.io
125
125
  licenses:
126
126
  - MIT
127
127
  metadata:
128
+ funding_uri: https://karafka.io/#become-pro
129
+ homepage_uri: https://karafka.io
130
+ changelog_uri: https://github.com/karafka/waterdrop/blob/master/CHANGELOG.md
131
+ bug_tracker_uri: https://github.com/karafka/waterdrop/issues
128
132
  source_code_uri: https://github.com/karafka/waterdrop
133
+ documentation_uri: https://github.com/karafka/waterdrop#readme
129
134
  rubygems_mfa_required: 'true'
130
135
  post_install_message:
131
136
  rdoc_options: []
@@ -142,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
147
  - !ruby/object:Gem::Version
143
148
  version: '0'
144
149
  requirements: []
145
- rubygems_version: 3.3.4
150
+ rubygems_version: 3.4.6
146
151
  signing_key:
147
152
  specification_version: 4
148
153
  summary: Kafka messaging made easy!
metadata.gz.sig CHANGED
Binary file