Add Honeybadger

This commit is contained in:
hakanensari 2014-03-14 12:48:58 +00:00
parent f21c4d1555
commit dc03a5838f
5 changed files with 18 additions and 0 deletions

View File

@ -3,6 +3,7 @@ source 'http://rubygems.org'
ruby '2.1.1'
gem 'fixer'
gem 'honeybadger'
gem 'rake'
gem 'sequel_pg'
gem 'sinatra-jsonp'

View File

@ -12,7 +12,10 @@ GEM
equalizer (0.0.9)
fixer (0.5.0)
nokogiri (~> 1.5)
honeybadger (1.11.0)
json
ice_nine (0.11.0)
json (1.8.1)
kgio (2.9.2)
mini_portile (0.5.2)
minitest (5.3.0)
@ -59,6 +62,7 @@ PLATFORMS
DEPENDENCIES
fixer
honeybadger
minitest
rack-test
rake

View File

@ -1,3 +1,5 @@
require './config/environment'
require 'api'
use Honeybadger::Rack
run Sinatra::Application

View File

@ -0,0 +1,10 @@
require 'honeybadger'
Honeybadger.configure do |config|
config.environment_name = App.env
config.api_key = ENV['HONEYBADGER_API_KEY']
config.async do |notice|
Thread.new { notice.deliver }
end
end

View File

@ -0,0 +1 @@
require 'honeybadger/shared_tasks'