Sha256: ac1693a372390aff7efc7b7cbe630264bb658b10bdec78b20019cf06551f0471

Contents?: true

Size: 569 Bytes

Versions: 4

Compression:

Stored size: 569 Bytes

Contents

# frozen_string_literal: true

class UniformNotifier
  class HoneybadgerNotifier < Base
    class << self
      def active?
        !!UniformNotifier.honeybadger
      end

      protected

      def _out_of_channel_notify(data)
        message = data.values.compact.join("\n")

        opt = {}
        opt = UniformNotifier.honeybadger if UniformNotifier.honeybadger.is_a?(Hash)

        exception = Exception.new(message)
        honeybadger_class = opt[:honeybadger_class] || Honeybadger
        honeybadger_class.notify(exception, opt)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
uniform_notifier-1.16.0 lib/uniform_notifier/honeybadger.rb
uniform_notifier-1.15.0 lib/uniform_notifier/honeybadger.rb
uniform_notifier-1.14.2 lib/uniform_notifier/honeybadger.rb
uniform_notifier-1.14.1 lib/uniform_notifier/honeybadger.rb