honeybadger 2.0.10 → 2.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/honeybadger/cli/helpers.rb +1 -8
- data/lib/honeybadger/init/rails.rb +1 -8
- data/lib/honeybadger/rack/error_notifier.rb +1 -1
- data/lib/honeybadger/rack/request_hash.rb +0 -6
- data/lib/honeybadger/rack/user_feedback.rb +0 -1
- data/lib/honeybadger/rack/user_informer.rb +0 -1
- data/lib/honeybadger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aecd42c839ff94ce002513bc50a9c44afb02abfd
|
4
|
+
data.tar.gz: a19144205e9f50c996c2c32b78859f9ad43fdd15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2044782ab62380cca73f5e63327e8ff83996f5bd2a56900cb3603b91c698a4757ddf8b1428fdc3f8216e83db3d3bdf71ba7927afc415aa214db1914b74eddc81
|
7
|
+
data.tar.gz: fd46e22c332761a29d81b2caf5194f2cf0e721d5c50d755a960b5200e123bba700afc9d7ce2af9b4ee36f04cb983199ae04a9d6dff502195b59497b48f24c500
|
data/CHANGELOG.md
CHANGED
@@ -50,17 +50,10 @@ module Honeybadger
|
|
50
50
|
:root => ::Rails.root,
|
51
51
|
:env => ::Rails.env,
|
52
52
|
:'config.path' => ::Rails.root.join('config', 'honeybadger.yml'),
|
53
|
-
:
|
54
|
-
:api_key => rails_secrets_api_key
|
53
|
+
:framework => :rails
|
55
54
|
}
|
56
55
|
end
|
57
56
|
|
58
|
-
def rails_secrets_api_key
|
59
|
-
if defined?(::Rails.application.secrets)
|
60
|
-
::Rails.application.secrets.honeybadger_api_key
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
57
|
def test_exception_class
|
65
58
|
exception_name = ENV['EXCEPTION'] || 'HoneybadgerTestingException'
|
66
59
|
Object.const_get(exception_name)
|
@@ -74,16 +74,9 @@ module Honeybadger
|
|
74
74
|
:env => ::Rails.env,
|
75
75
|
:'config.path' => ::Rails.root.join('config', 'honeybadger.yml'),
|
76
76
|
:logger => Logging::FormattedLogger.new(::Rails.logger),
|
77
|
-
:framework => :rails
|
78
|
-
:api_key => secrets_api_key
|
77
|
+
:framework => :rails
|
79
78
|
}
|
80
79
|
end
|
81
|
-
|
82
|
-
def secrets_api_key
|
83
|
-
if defined?(::Rails.application.secrets)
|
84
|
-
::Rails.application.secrets.honeybadger_api_key
|
85
|
-
end
|
86
|
-
end
|
87
80
|
end
|
88
81
|
end
|
89
82
|
end
|
@@ -1,15 +1,9 @@
|
|
1
|
-
require 'rack/request'
|
2
|
-
|
3
1
|
module Honeybadger
|
4
2
|
module Rack
|
5
3
|
# Internal: Constructs a request hash from a Rack::Request matching the
|
6
4
|
# /v1/notices API specification.
|
7
5
|
class RequestHash < ::Hash
|
8
6
|
def initialize(request)
|
9
|
-
unless request.kind_of?(::Rack::Request)
|
10
|
-
raise ArgumentError, "Expected Rack::Request, got #{request.class.name}"
|
11
|
-
end
|
12
|
-
|
13
7
|
self[:url] = extract_url(request)
|
14
8
|
self[:params] = extract_params(request)
|
15
9
|
self[:component] = self[:params]['controller']
|
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.
|
4
|
+
version: 2.0.11
|
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: 2015-
|
11
|
+
date: 2015-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Make managing application errors a more pleasant experience.
|
14
14
|
email:
|