honeybadger 2.0.0.beta.5 → 2.0.0.beta.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: edb87206be0175b43798167c6e093aed0e558197
4
- data.tar.gz: 87c340cd804c678a4c9a5e4623fd3a670bc088a7
3
+ metadata.gz: c9805ffd53c0cada4c33bfbd62bd20d891c4f039
4
+ data.tar.gz: 71ab06bd9401356104a2c109d8948fbc54233604
5
5
  SHA512:
6
- metadata.gz: 4c943955fad4f187e3bd56c20fb8ab0b6eb08751d3811dbcc929f62a55473bd6279b78bbb6c2def674883bbb08f5fe5fa3c6c06afb396274602c067b08f1b049
7
- data.tar.gz: eacf1d47e855c9cff4be194ce6c127b203173923a88a10dbbe85af4c38632c249d7c213a146c8d5b3af58cf97c4012524bbdf98dc3da87332147744720df5536
6
+ metadata.gz: e386d4b064d2df292bd15580045bda368367366d46991abf23b2dd02cd778c00e8dd222e55adb5279dcb4aa05ec5cd59bb4a29d2f845e00fa4aa069c0f3b2022
7
+ data.tar.gz: accd30aa1300df10932d20e93da8bc0088532d9baaa37af9e270d025bce3034777861092c01b49b85c797610aeb82a8647d44565695597bc4537a9d0c6dc3d0b
@@ -7,15 +7,19 @@ module Honeybadger
7
7
  #
8
8
  # Examples:
9
9
  #
10
- # backend.notifications[:notices] # => [Notice, Notice, ...]
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
- @notifications ||= Hash.new([])
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)
@@ -21,7 +21,7 @@ module Honeybadger
21
21
  private
22
22
 
23
23
  def extract_url(request)
24
- request.url
24
+ request.env['honeybadger.request.url'] || request.url
25
25
  rescue => e
26
26
  # TODO: Log these errors
27
27
  "Error: #{e.message}"
@@ -1,4 +1,4 @@
1
1
  module Honeybadger
2
2
  # Public: The current String Honeybadger version.
3
- VERSION = '2.0.0.beta.5'.freeze
3
+ VERSION = '2.0.0.beta.6'.freeze
4
4
  end
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.5
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-24 00:00:00.000000000 Z
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: