Sha256: 86b19dc35c90920e314f42a2f85623332dd095dee639458d9adfe5dc8c934b84
Contents?: true
Size: 738 Bytes
Versions: 6
Compression:
Stored size: 738 Bytes
Contents
require 'erorr/config' require 'erorr/middleware/rack' require 'erorr/notification' require 'erorr/transport/http_async' require 'erorr/version' module Erorr extend self def config @config ||= Config.new end def configure yield config if block_given? end def logger config.logger end def notify(exception, params = {}) return false unless config.validate notification = Notification.new exception, params transport.deliver notification.to_params true rescue => e logger.error "[erorr] Internal error: #{e.inspect}" false end private def transport @_transport ||= Erorr::Transport::HTTPAsync.new end end require 'erorr/plugins/rails' if defined? Rails::Railtie
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
erorr-0.2.2 | lib/erorr.rb |
erorr-0.2.1 | lib/erorr.rb |
erorr-0.2.0 | lib/erorr.rb |
erorr-0.1.2 | lib/erorr.rb |
erorr-0.1.1 | lib/erorr.rb |
erorr-0.1.0 | lib/erorr.rb |