honeybadger 2.0.0.beta.5 → 2.0.0.beta.6
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9805ffd53c0cada4c33bfbd62bd20d891c4f039
|
4
|
+
data.tar.gz: 71ab06bd9401356104a2c109d8948fbc54233604
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e386d4b064d2df292bd15580045bda368367366d46991abf23b2dd02cd778c00e8dd222e55adb5279dcb4aa05ec5cd59bb4a29d2f845e00fa4aa069c0f3b2022
|
7
|
+
data.tar.gz: accd30aa1300df10932d20e93da8bc0088532d9baaa37af9e270d025bce3034777861092c01b49b85c797610aeb82a8647d44565695597bc4537a9d0c6dc3d0b
|
@@ -7,15 +7,19 @@ module Honeybadger
|
|
7
7
|
#
|
8
8
|
# Examples:
|
9
9
|
#
|
10
|
-
#
|
10
|
+
# Test.notifications[:notices] # => [Notice, Notice, ...]
|
11
11
|
#
|
12
12
|
# Returns the Hash notifications.
|
13
|
+
def self.notifications
|
14
|
+
@notifications ||= Hash.new {|h,k| h[k] = [] }
|
15
|
+
end
|
16
|
+
|
17
|
+
# Internal: Local helper.
|
13
18
|
def notifications
|
14
|
-
|
19
|
+
self.class.notifications
|
15
20
|
end
|
16
21
|
|
17
22
|
def notify(feature, payload)
|
18
|
-
notifications[feature] = [] unless notifications.include?(feature)
|
19
23
|
notifications[feature] << payload
|
20
24
|
super
|
21
25
|
end
|
@@ -11,6 +11,7 @@ module Honeybadger
|
|
11
11
|
|
12
12
|
def render_exception_with_honeybadger(env, exception)
|
13
13
|
env['honeybadger.exception'] = exception
|
14
|
+
env['honeybadger.request.url'] = ::Rack::Request.new(env).url rescue nil
|
14
15
|
render_exception_without_honeybadger(env,exception)
|
15
16
|
end
|
16
17
|
end
|
@@ -47,6 +48,7 @@ module Honeybadger
|
|
47
48
|
requirement { defined?(::Rails) }
|
48
49
|
|
49
50
|
execution do
|
51
|
+
require 'rack/request'
|
50
52
|
if defined?(::ActionDispatch::DebugExceptions)
|
51
53
|
# Rails 3.2.x+
|
52
54
|
::ActionDispatch::DebugExceptions.send(:include, ExceptionsCatcher)
|
data/lib/honeybadger/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: honeybadger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.beta.
|
4
|
+
version: 2.0.0.beta.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Honeybadger Industries LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Make managing application errors a more pleasant experience.
|
14
14
|
email:
|