require 'honeybadger' module HoneybadgerJets class Turbine < ::Jets::Turbine initializer 'honeybadger.configure' do Honeybadger.configure do |config| config.api_key = ENV["HONEYBADGER_API_KEY"] config.env = Jets.env.to_s development_environments = ENV["HONEYBADGER_DEVELOPMENT_ENVIRONMENTS"] config.development_environments = development_environments ? development_environments.split(' ') : %w[development test cucumber] end end on_exception 'honeybadger.capture' do |exception| Honeybadger.notify(exception) end end end