lib/sinatra/toadhopper.rb in toadhopper-sinatra-0.10.1 vs lib/sinatra/toadhopper.rb in toadhopper-sinatra-1.0.0
- old
+ new
@@ -2,11 +2,11 @@
require 'toadhopper'
module Sinatra
# The Toadhopper helper methods
module ToadHopper
- VERSION = "0.10.1"
+ VERSION = "1.0.0"
# Reports the current sinatra error to Hoptoad
def post_error_to_hoptoad!
unless options.toadhopper && options.toadhopper[:api_key]
STDERR.puts "ToadHopper api key not set, e.g. set :toadhopper, :api_key => 'my api key'"
return
@@ -15,10 +15,10 @@
toadhopper.filters = options.toadhopper[:filters] if options.toadhopper[:filters]
toadhopper.post!(
env['sinatra.error'],
{
:url => request.url,
- :request => request,
+ :params => request.params,
:session => session.to_hash,
:environment => ENV.to_hash,
:framework_env => options.environment.to_s,
:project_root => options.root,
:notifier_name => (notifier_name = "toadhopper-sinatra"),
\ No newline at end of file