delivery_boy 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 +7 -1
- data/lib/delivery_boy.rb +6 -0
- data/lib/delivery_boy/config.rb +1 -1
- data/lib/delivery_boy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5245c3b04eea2071dca8b07cffad6a4222a0718c
|
4
|
+
data.tar.gz: 3783e059fb1e486d93c3ead156e3b31b28ec2a06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c58fe29ca70151a97fb04ca8cbb7cd5d825c40b41536c5f6625f14dbe83a7b0168af22e574e0d0d84de7f6d57cb871c27b4a02f4de4eff5d58eb006879e6087
|
7
|
+
data.tar.gz: b895cfe28dae3f3967a5182362e270a53f4f79590b23773bf9c932975ae41ee82ea07821a4b89bd68874ac6bc7eccf7748053f5be999aa703fdd64755820160b
|
data/README.md
CHANGED
@@ -171,7 +171,13 @@ Since DeliveryBoy is just an opinionated API on top of ruby-kafka, you can use a
|
|
171
171
|
|
172
172
|
## Contributing
|
173
173
|
|
174
|
-
Bug reports and pull requests are welcome on [GitHub](https://github.com/
|
174
|
+
Bug reports and pull requests are welcome on [GitHub](https://github.com/zendesk/delivery_boy). Feel free to [join our Slack team](https://ruby-kafka-slack.herokuapp.com/) and ask how best to contribute!
|
175
|
+
|
176
|
+
## Support and Discussion
|
177
|
+
|
178
|
+
If you've discovered a bug, please file a [Github issue](https://github.com/zendesk/delivery_boy/issues/new), and make sure to include all the relevant information, including the version of DeliveryBoy, ruby-kafka, and Kafka that you're using.
|
179
|
+
|
180
|
+
If you have other questions, or would like to discuss best practises, how to contribute to the project, or any other ruby-kafka related topic, [join our Slack team](https://ruby-kafka-slack.herokuapp.com/)!
|
175
181
|
|
176
182
|
## Copyright and license
|
177
183
|
|
data/lib/delivery_boy.rb
CHANGED
@@ -17,6 +17,12 @@ module DeliveryBoy
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def deliver_async(value, topic:, **options)
|
20
|
+
deliver_async!(value, topic: topic, **options)
|
21
|
+
rescue Kafka::BufferOverflow
|
22
|
+
logger.error "Message for `#{topic}` dropped due to buffer overflow"
|
23
|
+
end
|
24
|
+
|
25
|
+
def deliver_async!(value, topic:, **options)
|
20
26
|
async_producer.produce(value, topic: topic, **options)
|
21
27
|
end
|
22
28
|
|
data/lib/delivery_boy/config.rb
CHANGED
data/lib/delivery_boy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delivery_boy
|
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
|
- Daniel Schierbeck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-kafka
|