toadhopper-sinatra 0.10 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/sinatra/toadhopper.rb +2 -1
  2. metadata +1 -1
@@ -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]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toadhopper-sinatra
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.10"
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Lucas