kontrol 0.3.1 → 0.3.2

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/kontrol/application.rb +7 -0
  2. metadata +1 -1
@@ -123,6 +123,13 @@ module Kontrol
123
123
 
124
124
  response['Content-Type'] = guess_content_type if response['Content-Type'].empty?
125
125
  response.finish
126
+
127
+ rescue => exception
128
+ if ENV['RACK_ENV'] == 'production' and defined?(HoptoadNotifier)
129
+ HoptoadNotifier.notify(exception)
130
+ else
131
+ raise exception
132
+ end
126
133
  end
127
134
 
128
135
  def inspect
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kontrol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthias Georgi