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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b957a205e2dd52731c5a94cd871aa56e2f6a3e8
4
- data.tar.gz: 2457adef2b1e810c72a5eee49706ce9ea5b5d483
3
+ metadata.gz: 3137d67782908ccab46935da633b022b58e80d9e
4
+ data.tar.gz: 903ea051e42f8a044f844e4b4c3a3102df9210cc
5
5
  SHA512:
6
- metadata.gz: bf96bfc2e3acde0a9b3351c602136322063e44344ecb01e46fd2d9e5732508db36807eb562dc79232b767ee40a406d87779f6c30bd73d439fb4d63cfaa859917
7
- data.tar.gz: 88220350832e5214e7120089828ebb4d174b420247e89a29b8b5c0a2c092d353036ec6de66899511951dc9b21d5bd4eeb3f13b7a31766c87953e404f20bd6a90
6
+ metadata.gz: d6deab53ab559944a80b5516bd62d8b6e5758f004a122647344d1c9fba82d3f906ebf89ce70c861839116ed5bd553dfb9ef47b67fcc2bdb9c800fd34064c1398
7
+ data.tar.gz: 4f8da2f66b631e1f42a9b402f704c95159ef1b1c2cbc7d23a3488e86f909e4b6aee7f71d7403fd5c2ea2ea65c9a9ac352ba09e73573bb245aa997fc53b21504a
@@ -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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Tackle
2
- VERSION = "1.1.0".freeze
2
+ VERSION = "1.1.1".freeze
3
3
  end
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.0
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-08-20 00:00:00.000000000 Z
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.4.8
132
+ rubygems_version: 2.6.13
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: RabbitMQ based single-thread worker