Sha256: 460808254b06b8dbcd222b1ba6b7f0bf162e75fdb67359dc3c3a1522b721e09e

Contents?: true

Size: 483 Bytes

Versions: 3

Compression:

Stored size: 483 Bytes

Contents

module 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])
      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.8.0 lib/uniform_notifier/bugsnag.rb
uniform_notifier-1.7.0 lib/uniform_notifier/bugsnag.rb
uniform_notifier-1.6.2 lib/uniform_notifier/bugsnag.rb