delivery_boy 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: a19c52f7ecd3f52631f6f8da1f0c8c7ac11bbfcc
4
- data.tar.gz: fce6287fb747ab8ea364959e0ecd430f54871168
3
+ metadata.gz: 5245c3b04eea2071dca8b07cffad6a4222a0718c
4
+ data.tar.gz: 3783e059fb1e486d93c3ead156e3b31b28ec2a06
5
5
  SHA512:
6
- metadata.gz: 1e1ac8f245940ae11f884edd46f480120542f9b4798f9771a59bd5e6e842a7cb2a024b9b69065f1adc24ccd5edb980b619fb3f38738749517fecd589f24ca71d
7
- data.tar.gz: a73bb0d6df9e5bb5bef5fd638673fab04774861c1fcaaca61a3ad353384a26aa8c58c680669c6a3058a09042d9c2f6b596928b9b4bb8960c12460a0a839f94b3
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/dasch/delivery_boy).
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
 
@@ -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
 
@@ -46,7 +46,7 @@ module DeliveryBoy
46
46
 
47
47
  attr_accessor(*VARIABLES)
48
48
 
49
- def initialize(env:)
49
+ def initialize(env: {})
50
50
  load_config(DEFAULTS)
51
51
  load_env(env)
52
52
  end
@@ -1,3 +1,3 @@
1
1
  module DeliveryBoy
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-01 00:00:00.000000000 Z
11
+ date: 2017-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-kafka