kafka-retryable 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/kafka-retryable.gemspec +1 -1
- data/lib/kafka/retryable/config.rb +0 -1
- data/lib/kafka/retryable/handle_failure.rb +0 -5
- data/lib/kafka/retryable/version.rb +1 -1
- data/lib/kafka/retryable.rb +10 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 226561f0b7d19427e0f81d24ef5aadd21abfcb4a
|
4
|
+
data.tar.gz: 829d30815c9dd9ceb42a6a212d1c8f3b97a0f895
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89525e9bcddb45a84fb4603b3916aa05ab6d470156223ae9308fda4efd8dc2dcbe5e2cc30046e97447ebd077f64a47918d933677ade10c23ce877e9b67f63192
|
7
|
+
data.tar.gz: 862499cfbe1580ef7552c996fd3026b3145c05405a9f60246f23e4c20e01644f7dd468ef7d39ff37f3c8a91042ac0644a62250aea9acf5ef8ff94b50c6d9fd25
|
data/README.md
CHANGED
@@ -57,7 +57,7 @@ Class KafkaConsumer
|
|
57
57
|
end
|
58
58
|
```
|
59
59
|
|
60
|
-
- `dead_letter_queue`: Topic where the consumer
|
60
|
+
- `dead_letter_queue`: Topic where the consumer sh**ould enqueue the failure message.
|
61
61
|
- `exception_blacklist`: List of exception classes for which the error handling logic does not apply
|
62
62
|
- `exception_whitelist`: List of exception classes for which the error handling logic should apply
|
63
63
|
- `after_failure`: Accepts a proc that is executed after failure handling is completed
|
data/kafka-retryable.gemspec
CHANGED
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
|
|
33
33
|
|
34
34
|
spec.add_dependency 'dry-configurable', '~> 0.7'
|
35
35
|
spec.add_dependency 'dry-validation', '~> 0.11'
|
36
|
-
spec.add_dependency '
|
36
|
+
spec.add_dependency 'waterdrop', '~> 1.0'
|
37
37
|
|
38
38
|
spec.add_development_dependency 'bundler', '~> 1.15'
|
39
39
|
spec.add_development_dependency 'rspec-rails', '~> 3.5'
|
data/lib/kafka/retryable.rb
CHANGED
@@ -1,6 +1,3 @@
|
|
1
|
-
require 'kafka/retryable/handle_failure'
|
2
|
-
require 'kafka/retryable/config'
|
3
|
-
|
4
1
|
module Kafka
|
5
2
|
module Retryable
|
6
3
|
class << self
|
@@ -20,3 +17,13 @@ module Kafka
|
|
20
17
|
end
|
21
18
|
end
|
22
19
|
end
|
20
|
+
|
21
|
+
|
22
|
+
require 'dry-configurable'
|
23
|
+
require 'dry-validation'
|
24
|
+
require 'waterdrop'
|
25
|
+
require 'kafka/retryable/schemas/failure_handler_options'
|
26
|
+
require 'kafka/retryable/errors/invalid_handling_options'
|
27
|
+
require 'kafka/retryable/policy_finder'
|
28
|
+
require 'kafka/retryable/handle_failure'
|
29
|
+
require 'kafka/retryable/config'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kafka-retryable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ankita Gupta
|
@@ -39,19 +39,19 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0.11'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: waterdrop
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0
|
47
|
+
version: '1.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0
|
54
|
+
version: '1.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|