Sha256: 2f704f993f82a88f505e751d8417d9bbde4cf70b0694d47413843b486c0d2e49

Contents?: true

Size: 475 Bytes

Versions: 13

Compression:

Stored size: 475 Bytes

Contents

if defined?(::Rails::Railtie)
  require 'honeybadger/init/rails'
elsif defined?(Sinatra::Base)
  require 'honeybadger/init/sinatra'
else
  require 'honeybadger/init/ruby'
end

if defined?(Rake.application)
  require 'honeybadger/init/rake'
end

at_exit do
  if $! && !$!.is_a?(SystemExit) && Honeybadger.config[:'exceptions.notify_at_exit']
    Honeybadger.notify($!, component: 'at_exit', sync: true)
  end
  Honeybadger.stop if Honeybadger.config[:'send_data_at_exit']
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
honeybadger-3.2.0.beta1 lib/honeybadger.rb
honeybadger-3.1.2 lib/honeybadger.rb
honeybadger-3.1.1 lib/honeybadger.rb
honeybadger-3.1.0 lib/honeybadger.rb
honeybadger-3.0.2 lib/honeybadger.rb
honeybadger-3.0.1 lib/honeybadger.rb
honeybadger-3.0.0 lib/honeybadger.rb
honeybadger-3.0.0.beta6 lib/honeybadger.rb
honeybadger-3.0.0.beta5 lib/honeybadger.rb
honeybadger-3.0.0.beta4 lib/honeybadger.rb
honeybadger-3.0.0.beta3 lib/honeybadger.rb
honeybadger-3.0.0.beta2 lib/honeybadger.rb
honeybadger-3.0.0.beta1 lib/honeybadger.rb