opbeat 3.0.1 → 3.0.2

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: 9bd0e8b876fcfe53940663a7aa99aef542d75dfc
4
- data.tar.gz: 4955d024a5b1eee21385ba40c3fb6cdc2d1f8c48
3
+ metadata.gz: e356fb2b372d206b983bbddfcb9050ab7d093b7c
4
+ data.tar.gz: eb8b9d89680939500f3445d98fa054b437550e1a
5
5
  SHA512:
6
- metadata.gz: 163c15a7fb0bde41da99529d7dc5b3c8eb99a0499615517f3e537c9f6d4d3013dc57c226e4ceb7e680e05ef2901a6a35e9422ece79a332646cf72f350dceb2cc
7
- data.tar.gz: be064cbb76a40c5c3e0ab4d6c2f0fec78947bb803f025d4df09a553e091c29150a2aae130781bb6786b5a1398ec823f33dee092ac09d073548e4e1267e8876ff
6
+ metadata.gz: e47cce396d2f37eabcae17c6175299d2022cef8a02bc2700cafb4caaa6e442a607605ad111e930d25efeebdbbcd64d30edbaccc86983ab41e34aaa5fb9380547
7
+ data.tar.gz: c4b60b2125f1b62ee2346842be3142910f02892ba1d30d64e5e4d0525fa16ae834e2d4ac0838cf07000dea8682517cf22b72fdf2ca7b57769b660b4be3ab5572
data/HISTORY.md CHANGED
@@ -1,8 +1,15 @@
1
+ # 3.0.2
2
+
3
+ **Fixes**
4
+
5
+ - Ensure worker is running when reporting errors (@jensnockert)
6
+ - Increase timeout when closing worker thread and report failure (@jensnockert)
7
+
1
8
  # 3.0.1
2
9
 
3
10
  **Fixes**
4
11
 
5
- * Sidekiq error handler takes two arguments (#10)
12
+ - Sidekiq error handler takes two arguments (#10)
6
13
 
7
14
  # v3.0.0
8
15
 
data/lib/opbeat/client.rb CHANGED
@@ -173,6 +173,8 @@ module Opbeat
173
173
  return if config.disable_errors
174
174
  return unless exception
175
175
 
176
+ ensure_worker_running
177
+
176
178
  unless exception.backtrace
177
179
  exception.set_backtrace caller
178
180
  end
@@ -252,7 +254,9 @@ module Opbeat
252
254
  def kill_worker
253
255
  return unless worker_running?
254
256
  @queue << Worker::StopMessage.new
255
- @worker_thread.join 1
257
+ unless @worker_thread.join 5
258
+ error "Failed to wait for worker, not all messages sent"
259
+ end
256
260
  @worker_thread = nil
257
261
  end
258
262
 
@@ -1,3 +1,3 @@
1
1
  module Opbeat
2
- VERSION = "3.0.1"
2
+ VERSION = "3.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opbeat
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikkel Malmberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-02 00:00:00.000000000 Z
11
+ date: 2016-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport