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.
Files changed (2) hide show
  1. data/lib/hoptoad_notifier.rb +3 -3
  2. metadata +1 -1
@@ -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
- data[:environment].merge!(request.env.to_hash)
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::HTTPSuccess then
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}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toolmantim-hoptoad_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thoughtbot