bugsnag 1.1.5 → 1.2.0.beta
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.
- data/Gemfile +1 -1
- data/Gemfile.lock +5 -5
- data/README.md +132 -22
- data/VERSION +1 -1
- data/bugsnag.gemspec +13 -8
- data/lib/bugsnag.rb +39 -18
- data/lib/bugsnag/configuration.rb +54 -43
- data/lib/bugsnag/helpers.rb +35 -21
- data/lib/bugsnag/middleware/callbacks.rb +19 -0
- data/lib/bugsnag/middleware/rack_request.rb +48 -0
- data/lib/bugsnag/middleware/rails2_request.rb +45 -0
- data/lib/bugsnag/middleware/rails3_request.rb +27 -0
- data/lib/bugsnag/middleware/warden_user.rb +47 -0
- data/lib/bugsnag/middleware_stack.rb +64 -0
- data/lib/bugsnag/notification.rb +146 -57
- data/lib/bugsnag/rack.rb +34 -49
- data/lib/bugsnag/rails.rb +12 -3
- data/lib/bugsnag/rails/action_controller_rescue.rb +33 -21
- data/lib/bugsnag/rails/controller_methods.rb +34 -50
- data/lib/bugsnag/railtie.rb +26 -14
- data/lib/bugsnag/tasks.rb +1 -1
- data/lib/{tasks → bugsnag/tasks}/bugsnag.rake +5 -0
- metadata +31 -17
- data/lib/bugsnag/delay/resque.rb +0 -21
data/lib/bugsnag/delay/resque.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
module Bugsnag
|
2
|
-
module Delay
|
3
|
-
class Resque
|
4
|
-
@queue = "bugsnag"
|
5
|
-
def self.perform(*args)
|
6
|
-
Bugsnag::Notification.deliver_exception_payload_without_resque(*args)
|
7
|
-
end
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
Bugsnag::Notification.class_eval do
|
13
|
-
class << self
|
14
|
-
def deliver_exception_payload_with_resque(*args)
|
15
|
-
Resque.enqueue(Bugsnag::Delay::Resque, *args)
|
16
|
-
end
|
17
|
-
|
18
|
-
alias_method :deliver_exception_payload_without_resque, :deliver_exception_payload
|
19
|
-
alias_method :deliver_exception_payload, :deliver_exception_payload_with_resque
|
20
|
-
end
|
21
|
-
end
|