toolmantim-hoptoad_notifier 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hoptoad_notifier.rb +3 -3
- metadata +1 -1
data/lib/hoptoad_notifier.rb
CHANGED
@@ -196,9 +196,9 @@ module HoptoadNotifier
|
|
196
196
|
:rails_root => File.expand_path(RAILS_ROOT),
|
197
197
|
:url => "#{request.protocol}#{request.host}#{request.request_uri}"
|
198
198
|
}
|
199
|
-
|
199
|
+
# data[:environment] = request.env.to_hash - on 2.3 causes Hoptoad to 500 error page with a 200 status
|
200
200
|
end
|
201
|
-
|
201
|
+
|
202
202
|
if self.respond_to? :session
|
203
203
|
data[:session] = {
|
204
204
|
:key => session.instance_variable_get("@session_id"),
|
@@ -257,7 +257,7 @@ module HoptoadNotifier
|
|
257
257
|
end
|
258
258
|
|
259
259
|
case response
|
260
|
-
when Net::
|
260
|
+
when Net::HTTPCreated then
|
261
261
|
logger.info "Hoptoad Success: #{response.class}"
|
262
262
|
else
|
263
263
|
logger.error "Hoptoad Failure: #{response.class}\n#{response.body if response.respond_to? :body}"
|