Yo Corey,
Thanks for writing this. We're starting to get a few requests for Sinatra support and I'd like to point people to this middleware.
I just took a quick, unsuccessful stab at this but I'm very new to Sinatra. The following results in
hoptoad.notified true
in the Sinatra web backtrace and
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.2/lib/sinatra/base.rb:364:in call'
/Library/Ruby/Gems/1.8/gems/rack_hoptoad-0.0.3/lib/rack/hoptoad_notifier.rb:18:incall'
/Library/Ruby/Gems/1.8/gems/rack-0.9.1/lib/rack/showexceptions.rb:23:in `call'
in the log. Unfortunately, it's not showing up in Hoptoad. Any suggestions?
Thanks again,
Dan
require 'rubygems'
require 'sinatra'
require 'rack_hoptoad'
class HollaRack < Sinatra::Default
enable :raise_errors
end
use Rack::HoptoadNotifier, 'dsfsdfas'
error do
Rack::HoptoadNotifier.call request.env
end
get '/' do
raise StandardError, 'Holla Rack'
end
Hey Dan,
Did you ever get this working or are the more modern implementations working better for you?