Fix: ensure that the custom errors return the correct message for #to_s
in addition to #message
. This makes error tracking on tools like NewRelic easier.
When the Https
adapter raises a delivery error, also report info about the HTTP failure.
Bug fix: Ensure that the Https
transport raises an exception when the HTTP POST request fails.
- Allow to set the
basic_auth
config as a proc which gets the topic name passed. (thanks @Crunch09, #1)
Example:
basic_auth: ->(topic) {
username = ENV["TOPIC_#{topic.singularize.upcase}_USER"]
password = ENV["SECRET_PASSWORD"]
"#{username}:#{password}"
}
It should always return a string in the format USERNAME:PASSWORD
. Instead
of using a proc this string can be set directly:
basic_auth: "foo:bar"
In favor of this basic_auth_user
and basic_auth_password
have been removed.
Enhancing the HTTPS transport:
- Allow to configure both user and password for HTTP Basic Auth.
- Allow to configure a callable to use dynamic URL paths.
Initial release.
Codecs: json, message_pack, jaml. Loaders: simple_active_record. Senders: sync and async (Sidekiq). Transports: debug, log, https, sqs, multi.