lib/sinatra/toadhopper.rb in toadhopper-sinatra-0.10 vs lib/sinatra/toadhopper.rb in toadhopper-sinatra-0.10.1

- old
+ new

@@ -2,14 +2,15 @@ require 'toadhopper' module Sinatra # The Toadhopper helper methods module ToadHopper - VERSION = "0.10" + VERSION = "0.10.1" # 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 end toadhopper = ToadHopper(options.toadhopper[:api_key]) toadhopper.filters = options.toadhopper[:filters] if options.toadhopper[:filters] toadhopper.post!( env['sinatra.error'], \ No newline at end of file