failbot_rails 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "failbot_rails"
5
- s.version = "0.3.2"
5
+ s.version = "0.3.3"
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = %w[@sr]
8
8
  s.email = ["sr@github.com"]
@@ -63,23 +63,11 @@ module FailbotRails
63
63
  class Middleware < ::Failbot::Rescuer
64
64
  def initialize(app)
65
65
  @app = app
66
+ @other = {}
66
67
  end
67
68
 
68
- def call(env)
69
- request = Rack::Request.new(env)
70
- @app.call(env)
71
- rescue Exception
72
- context = {
73
- :method => request.request_method,
74
- :url => request.url,
75
- :user_agent => request.env["HTTP_USER_AGENT"],
76
- :params => request.params,
77
- :session => (request.session.to_hash rescue nil),
78
- :referrer => request.referrer,
79
- :remote_ip => request.ip,
80
- }
81
- Failbot.report($!, ::FailbotRails._failbot_safe_context(context))
82
- raise
69
+ def self.context(env)
70
+ ::FailbotRails._failbot_safe_context(super)
83
71
  end
84
72
  end
85
73
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: failbot_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: