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 +4 -4
- data/lib/tincan/cli.rb +11 -4
- data/lib/tincan/version.rb +1 -1
- data/spec/receiver_spec.rb +1 -1
- data/spec/sender_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78202d58835b892c162b4af1d17772e534ee7528
|
4
|
+
data.tar.gz: 93193b49c62c7b0d4a7429b21ed3667144bd4428
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 |
|
80
|
-
@logger.error
|
81
|
-
@logger.error
|
82
|
-
|
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
|
|
data/lib/tincan/version.rb
CHANGED
data/spec/receiver_spec.rb
CHANGED
@@ -143,7 +143,7 @@ describe Tincan::Receiver do
|
|
143
143
|
thread.kill
|
144
144
|
end
|
145
145
|
|
146
|
-
|
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.
|
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:
|
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.
|
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.
|