toadhopper-sinatra 0.10 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sinatra/toadhopper.rb +2 -1
- metadata +1 -1
data/lib/sinatra/toadhopper.rb
CHANGED
@@ -4,11 +4,12 @@ require 'toadhopper'
|
|
4
4
|
module Sinatra
|
5
5
|
# The Toadhopper helper methods
|
6
6
|
module ToadHopper
|
7
|
-
VERSION = "0.10"
|
7
|
+
VERSION = "0.10.1"
|
8
8
|
# Reports the current sinatra error to Hoptoad
|
9
9
|
def post_error_to_hoptoad!
|
10
10
|
unless options.toadhopper && options.toadhopper[:api_key]
|
11
11
|
STDERR.puts "ToadHopper api key not set, e.g. set :toadhopper, :api_key => 'my api key'"
|
12
|
+
return
|
12
13
|
end
|
13
14
|
toadhopper = ToadHopper(options.toadhopper[:api_key])
|
14
15
|
toadhopper.filters = options.toadhopper[:filters] if options.toadhopper[:filters]
|