rt-tackle 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tackle/connection.rb +4 -0
- data/lib/tackle/publisher.rb +1 -1
- data/lib/tackle/version.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: 3137d67782908ccab46935da633b022b58e80d9e
|
4
|
+
data.tar.gz: 903ea051e42f8a044f844e4b4c3a3102df9210cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6deab53ab559944a80b5516bd62d8b6e5758f004a122647344d1c9fba82d3f906ebf89ce70c861839116ed5bd553dfb9ef47b67fcc2bdb9c800fd34064c1398
|
7
|
+
data.tar.gz: 4f8da2f66b631e1f42a9b402f704c95159ef1b1c2cbc7d23a3488e86f909e4b6aee7f71d7403fd5c2ea2ea65c9a9ac352ba09e73573bb245aa997fc53b21504a
|
data/lib/tackle/connection.rb
CHANGED
@@ -23,6 +23,10 @@ module Tackle
|
|
23
23
|
@channel.on_uncaught_exception(&@exception_handler)
|
24
24
|
|
25
25
|
@logger.info("Connected to channel")
|
26
|
+
rescue Timeout::Error => ex
|
27
|
+
@logger.error("Timeout while connecting to RabbitMQ server message='#{ex}'")
|
28
|
+
|
29
|
+
raise ex
|
26
30
|
rescue StandardError => ex
|
27
31
|
@logger.error("Error while connecting to RabbitMQ message='#{ex}'")
|
28
32
|
|
data/lib/tackle/publisher.rb
CHANGED
@@ -19,7 +19,7 @@ module Tackle
|
|
19
19
|
exchange.publish(message, :routing_key => @routing_key, :persistent => true)
|
20
20
|
@logger.info("Publishing message finished exchange='#{@exchange_name}' routing_key='#{@routing_key}'")
|
21
21
|
ensure
|
22
|
-
connection.close
|
22
|
+
connection.close unless connection.nil?
|
23
23
|
end
|
24
24
|
|
25
25
|
end
|
data/lib/tackle/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rt-tackle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rendered Text
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
131
|
rubyforge_project:
|
132
|
-
rubygems_version: 2.
|
132
|
+
rubygems_version: 2.6.13
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: RabbitMQ based single-thread worker
|