honeybadger 3.0.0.beta1 → 3.0.0.beta2

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: 66755445d403dbe5c3e653791c8e272a71e0d5a1
4
- data.tar.gz: f774d8cfd575862e71cbe0ac72e468e6c3553392
3
+ metadata.gz: f93eff3f54c852168c73a64d2c53c5535531c5c3
4
+ data.tar.gz: d0b41bd0903fb2caba9688fafbeaf04a326a1ac4
5
5
  SHA512:
6
- metadata.gz: f4b10896f7bb00e2e76a76bdc9d6ae3f1f8dc4c06398f926fb3a7e5685c039c41b99706879b71ae83951d9befe5010f31efb23afb54ed673b811072fee4d1b39
7
- data.tar.gz: 37dc725bf41daf0d03ec874d56473b4376c1d7335b3bccc84f7494c822f97d449974920c01f5668be9b1759ccefb4c3739ddeb0382839e23c1449b4173c3a46a
6
+ metadata.gz: 17fd1fad8349d7c031eb68061e1b28fb08f99d3d54b11d4a49609d5951b78e6dbce9a25c136dc9daafe5b54d51aefdcae5cb409237e1e9cf20d08ece2a1ba248
7
+ data.tar.gz: 4d762c28d58632ac56e5c2ff1440ee6f555f3df76c99a5262bd243c0e5390fc74b9050f471454f78e9b6f133397db63fa7bed4442cd95e608c45d970c618a27a
@@ -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.
@@ -109,8 +109,8 @@ module Honeybadger
109
109
 
110
110
  validate_notify_opts!(opts)
111
111
 
112
- opts.merge!(rack_env: context_manager.get_rack_env)
113
- opts.merge!(global_context: context_manager.get_context)
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
 
@@ -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
- return
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
- return
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 Honeybdager notification fails.'
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
- return
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, :notify,
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
@@ -1,4 +1,4 @@
1
1
  module Honeybadger
2
2
  # Public: The current String Honeybadger version.
3
- VERSION = '3.0.0.beta1'.freeze
3
+ VERSION = '3.0.0.beta2'.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: 3.0.0.beta1
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-03 00:00:00.000000000 Z
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: