honeybadger 3.0.0.beta1 → 3.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/honeybadger/agent.rb +2 -2
- data/lib/honeybadger/cli/main.rb +4 -4
- data/lib/honeybadger/plugins/delayed_job/plugin.rb +2 -1
- data/lib/honeybadger/singleton.rb +5 -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: f93eff3f54c852168c73a64d2c53c5535531c5c3
|
4
|
+
data.tar.gz: d0b41bd0903fb2caba9688fafbeaf04a326a1ac4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17fd1fad8349d7c031eb68061e1b28fb08f99d3d54b11d4a49609d5951b78e6dbce9a25c136dc9daafe5b54d51aefdcae5cb409237e1e9cf20d08ece2a1ba248
|
7
|
+
data.tar.gz: 4d762c28d58632ac56e5c2ff1440ee6f555f3df76c99a5262bd243c0e5390fc74b9050f471454f78e9b6f133397db63fa7bed4442cd95e608c45d970c618a27a
|
data/CHANGELOG.md
CHANGED
@@ -64,6 +64,10 @@ adheres to [Semantic Versioning](http://semver.org/).
|
|
64
64
|
- The deprecated `Honeybadger::Rack::MetricsReporter` middleware has been
|
65
65
|
removed.
|
66
66
|
|
67
|
+
## [2.7.2] - 2016-12-12
|
68
|
+
### Fixed
|
69
|
+
- Pass whole exception to `notify_or_ignore` (includes causes). -@CGamesPlay
|
70
|
+
|
67
71
|
## [2.7.1] - 2016-11-16
|
68
72
|
### Fixed
|
69
73
|
- Fix a Sinatra bug where `RACK_ENV` default was not used as default env.
|
data/lib/honeybadger/agent.rb
CHANGED
@@ -109,8 +109,8 @@ module Honeybadger
|
|
109
109
|
|
110
110
|
validate_notify_opts!(opts)
|
111
111
|
|
112
|
-
opts
|
113
|
-
opts
|
112
|
+
opts[:rack_env] ||= context_manager.get_rack_env
|
113
|
+
opts[:global_context] ||= context_manager.get_context
|
114
114
|
|
115
115
|
notice = Notice.new(config, opts)
|
116
116
|
|
data/lib/honeybadger/cli/main.rb
CHANGED
@@ -55,7 +55,7 @@ module Honeybadger
|
|
55
55
|
|
56
56
|
if config.get(:api_key).to_s =~ BLANK
|
57
57
|
say("No value provided for required options '--api-key'")
|
58
|
-
|
58
|
+
exit(1)
|
59
59
|
end
|
60
60
|
|
61
61
|
Deploy.new(options, [], config).run
|
@@ -78,7 +78,7 @@ module Honeybadger
|
|
78
78
|
|
79
79
|
if config.get(:api_key).to_s =~ BLANK
|
80
80
|
say("No value provided for required options '--api-key'")
|
81
|
-
|
81
|
+
exit(1)
|
82
82
|
end
|
83
83
|
|
84
84
|
Notify.new(options, [], config).run
|
@@ -89,13 +89,13 @@ module Honeybadger
|
|
89
89
|
|
90
90
|
desc 'exec', 'Execute a command. If the exit status is not 0, report the result to Honeybadger'
|
91
91
|
project_options
|
92
|
-
option :quiet, required: false, type: :boolean, aliases: :'-q', default: false, desc: 'Suppress all output unless
|
92
|
+
option :quiet, required: false, type: :boolean, aliases: :'-q', default: false, desc: 'Suppress all output unless notification fails.'
|
93
93
|
def exec(*args)
|
94
94
|
config = build_config(options)
|
95
95
|
|
96
96
|
if config.get(:api_key).to_s =~ BLANK
|
97
97
|
say("No value provided for required options '--api-key'")
|
98
|
-
|
98
|
+
exit(1)
|
99
99
|
end
|
100
100
|
|
101
101
|
Exec.new(options, args, config).run
|
@@ -41,7 +41,8 @@ module Honeybadger
|
|
41
41
|
:action => action,
|
42
42
|
:error_class => error.class.name,
|
43
43
|
:error_message => "#{ error.class.name }: #{ error.message }",
|
44
|
-
:backtrace => error.backtrace
|
44
|
+
:backtrace => error.backtrace,
|
45
|
+
:exception => error
|
45
46
|
) if job.attempts.to_i >= ::Honeybadger.config[:'delayed_job.attempt_threshold'].to_i
|
46
47
|
raise error
|
47
48
|
ensure
|
@@ -8,10 +8,14 @@ module Honeybadger
|
|
8
8
|
extend Forwardable
|
9
9
|
extend self
|
10
10
|
|
11
|
-
def_delegators :'Agent.instance', :init!, :config, :configure,
|
11
|
+
def_delegators :'Agent.instance', :init!, :config, :configure,
|
12
12
|
:context, :get_context, :flush, :stop, :with_rack_env, :exception_filter,
|
13
13
|
:exception_fingerprint, :backtrace_filter
|
14
14
|
|
15
|
+
def notify(exception_or_opts, opts = {})
|
16
|
+
Agent.instance.notify(exception_or_opts, opts)
|
17
|
+
end
|
18
|
+
|
15
19
|
def load_plugins!
|
16
20
|
Dir[File.expand_path('../plugins/*.rb', __FILE__)].each do |plugin|
|
17
21
|
require plugin
|
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: 3.0.0.
|
4
|
+
version: 3.0.0.beta2
|
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: 2016-12-
|
11
|
+
date: 2016-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Make managing application errors a more pleasant experience.
|
14
14
|
email:
|