Sha256: 41d9013081972966d6584b52262d1885484bdc722d2fc1386200f3f2f257ec4d

Contents?: true

Size: 550 Bytes

Versions: 3

Compression:

Stored size: 550 Bytes

Contents

class UniformNotifier
  class BugsnagNotifier < Base
    def self.active?
      !!UniformNotifier.bugsnag
    end

    protected

    def self._out_of_channel_notify(data)
      opt = {}
      if UniformNotifier.bugsnag.is_a?(Hash)
        opt = UniformNotifier.bugsnag
      end

      exception = Exception.new(data[:title])
      exception.set_backtrace(data[:backtrace]) if data[:backtrace]
      Bugsnag.notify(exception, opt.merge(
        :grouping_hash => data[:body] || data[:title],
        :notification => data
      ))
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
uniform_notifier-1.11.0 lib/uniform_notifier/bugsnag.rb
uniform_notifier-1.10.0 lib/uniform_notifier/bugsnag.rb
uniform_notifier-1.9.0 lib/uniform_notifier/bugsnag.rb