captainu-tincan 0.8.1 → 0.8.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: 1b929c88f6a7ec74fb30d0da1fa49907c8a12a68
4
- data.tar.gz: d405d5dab938552c06929657e25f4d8b2d190ff6
3
+ metadata.gz: 78202d58835b892c162b4af1d17772e534ee7528
4
+ data.tar.gz: 93193b49c62c7b0d4a7429b21ed3667144bd4428
5
5
  SHA512:
6
- metadata.gz: 4f133f80912c16ab83d91a1caf20eeeb08c8face23a89a40044f73c1f9348ecd346126c4011f5a647d7c376ff17ed979e897b58829b009f80c7dd617a8b8efa2
7
- data.tar.gz: c49f562ec6d0fa8110540f85155368102490d1a2427648cf0aedd2c7f94ede77f82570a4b1a55591d663bd3855347fe79e95b49e55a72ebc16f7eb19ac34e34a
6
+ metadata.gz: fb4a7e1d132d452af0a611b1c8440690f3c8d6a6ec868211c710d0e3b6ad0f604ff79314990f0809ae715fe1d1e94e6441a4b27fc00c51644284ca35f7fce9f8
7
+ data.tar.gz: 4029fa007c61a717ebc9d0e71952c58e99cbc58649ac8b207235c931d7b2d6042ed63d3a575358e02100550bce54fbed9bd2130bb28052cf1f5ad64c03342942
data/lib/tincan/cli.rb CHANGED
@@ -76,10 +76,17 @@ module Tincan
76
76
  ->(data) { klass.send(method_name.to_sym, data) }
77
77
  end]
78
78
  end]
79
- r.on_exception = lambda do |ex, context|
80
- @logger.error ex
81
- @logger.error ex.backtrace
82
- Airbrake.notify_or_ignore(ex, parameters: context)
79
+ r.on_exception = lambda do |exception, context|
80
+ @logger.error exception
81
+ @logger.error exception.backtrace
82
+ # this was changed so that there isn't
83
+ # a hard dependency on bugsnag (formally was using airbrake)
84
+ # should probably abstract this out into an error handler.
85
+ if Object.const_defined?('Bugsnag')
86
+ Bugsnag.notify(exception,
87
+ { severity: :error },
88
+ { parameters: context })
89
+ end
83
90
  end
84
91
  end
85
92
 
@@ -1,3 +1,3 @@
1
1
  module Tincan
2
- VERSION = '0.8.1'
2
+ VERSION = '0.8.2'
3
3
  end
@@ -143,7 +143,7 @@ describe Tincan::Receiver do
143
143
  thread.kill
144
144
  end
145
145
 
146
- it 'calls a stored exception block on failure and keeps on ticking' do
146
+ xit 'calls a stored exception block on failure and keeps on ticking' do
147
147
  pending 'Sometimes fails when part of an entire run, but not by itself.'
148
148
  thread = Thread.new { receiver.listen }
149
149
 
data/spec/sender_spec.rb CHANGED
@@ -61,7 +61,7 @@ describe Tincan::Sender do
61
61
  it 'can handle an nil list of clients to exclude' do
62
62
  redis.sadd('data:object:receivers', 'bork')
63
63
  result = sender.keys_for_receivers('object', exclude: nil)
64
- expect(result).to eq(%w(data:object:bork:messages data:object:some_client:messages))
64
+ expect(result.sort).to eq(%w(data:object:bork:messages data:object:some_client:messages).sort)
65
65
  end
66
66
  end
67
67
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: captainu-tincan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Kreeger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-16 00:00:00.000000000 Z
11
+ date: 2015-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  version: '0'
197
197
  requirements: []
198
198
  rubyforge_project:
199
- rubygems_version: 2.4.1
199
+ rubygems_version: 2.4.5
200
200
  signing_key:
201
201
  specification_version: 4
202
202
  summary: A simple implementation of reliable Redis messaging.