bugsnag 1.6.0 → 1.6.1

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: 273d6b5e30c112e42d9d667dccbab65af1c4a64e
4
- data.tar.gz: c798d5e662751dc2b0774ea72e38ca4614275562
3
+ metadata.gz: 560790fe15fb481a9b1d65558167316b6d750726
4
+ data.tar.gz: 5c5712e8c5a2d5a077cec7bf181acb9ed51aa291
5
5
  SHA512:
6
- metadata.gz: 692be4458a34c4b201ed88f8e9ff4ce2146e57fcad51abe41429c183334d66c654f183dc82d897327ef9a3b8802333a8718dc8fc99606aba6c18ee4cd66b3307
7
- data.tar.gz: 13dea215afa1c2fd776eaab65a4b75f0bcb89b98b5a9f870a009134ed4baf9cd2c4ce7e20fdb222f9ff4fe63433e79924214513061aa39694e63b03b9bf2f024
6
+ metadata.gz: f665d1bfa8f5b3afb5746be6f0300317ae17fc6246657f0231ff46ec8cbc170ad8bbc53a81aba171f8f212601fff7b2d1a9e3ca4a80b1c42122927b6f95a031f
7
+ data.tar.gz: 45d99adcdac49b2c37f87263a3b2aef29978065e85dffba847ab887b24c371173f67fa5d3efff64d0831f29c52ae2f4edaf1621ebbb8c1f05c13fc68f593984b
@@ -1,6 +1,12 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 1.6.1
5
+ -----
6
+ - Ensure sidekiq, mailman and rake hooks respect the `ignore_classes` setting
7
+ - Persist sidekiq and mailman meta-data through each job, so it can show up
8
+ in manual Bugsnag.notify calls
9
+
4
10
  1.6.0
5
11
  -----
6
12
  - Add support for catching crashes in [mailman](https://github.com/titanous/mailman) apps
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.0
1
+ 1.6.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "bugsnag"
8
- s.version = "1.6.0"
8
+ s.version = "1.6.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["James Smith"]
12
- s.date = "2013-10-10"
12
+ s.date = "2013-10-11"
13
13
  s.description = "Ruby notifier for bugsnag.com"
14
14
  s.email = "james@bugsnag.com"
15
15
  s.extra_rdoc_files = [
@@ -2,9 +2,13 @@ module Bugsnag
2
2
  class Mailman
3
3
  def call(mail)
4
4
  begin
5
+ Bugsnag.before_notify_callbacks << lambda {|notif|
6
+ notif.add_tab(:mailman, {"message" => mail.to_s})
7
+ }
8
+
5
9
  yield
6
10
  rescue => ex
7
- Bugsnag.notify(ex, :mailman => {"message" => mail.to_s})
11
+ Bugsnag.auto_notify(ex)
8
12
  raise
9
13
  ensure
10
14
  Bugsnag.clear_request_data
@@ -26,7 +26,7 @@ module Bugsnag::Rake
26
26
 
27
27
  yield(*block_args) if block_given?
28
28
  rescue Exception => e
29
- Bugsnag.notify(e)
29
+ Bugsnag.auto_notify(e)
30
30
  raise
31
31
  end
32
32
  end
@@ -2,9 +2,14 @@ module Bugsnag
2
2
  class Sidekiq
3
3
  def call(worker, msg, queue)
4
4
  begin
5
+ Bugsnag.before_notify_callbacks << lambda {|notif|
6
+ notif.add_tab(:sidekiq, msg)
7
+ notif.context ||= "sidekiq##{queue}"
8
+ }
9
+
5
10
  yield
6
11
  rescue => ex
7
- Bugsnag.notify(ex, :meta_data => {:sidekiq => msg })
12
+ Bugsnag.auto_notify(ex)
8
13
  raise
9
14
  ensure
10
15
  Bugsnag.clear_request_data
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bugsnag
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-10 00:00:00.000000000 Z
11
+ date: 2013-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json