bmc-daemon-lib 0.10.0 → 0.10.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: 9d35dc7459d4725ea9f2234844440abe29cad87b
4
- data.tar.gz: 3dc02b5f47fab8ecbc0271ca35c083d0274c2412
3
+ metadata.gz: 4e9f80231e52c86d65213c10edb2393aa834b93a
4
+ data.tar.gz: d1a7813b31d27d6ccfa99ea801dfa6ea099a519a
5
5
  SHA512:
6
- metadata.gz: 780b1db309c13e2f35d26748f82159addb7184a1bfcb359f9bb5f8e0d14baee7184ca8b8b8e76a70d4003671e6d2238fb286af53d14fb5a901061599d01ad130
7
- data.tar.gz: 8542935eeca326c272a8b5bcf067a779842a1d6f0e30af62601282cf75d17bc34654b250e80886743649dff55d186ee41981ffabd420a30e9caefeb9cdefeb2d
6
+ metadata.gz: 5f52c5afe37bfa15cd3b571298c410a32dad58098bba5fde1869b9e8a8c46ef0b678f888d53c70baf855a3d66175715cdb64f95c4173e791e12248a512a9f728
7
+ data.tar.gz: 2f376eca2e74f677d08fae6c874bfd5ad886c9b42ae0548062622a7c2f208187b484852e450e9c784d6f9b27bf340ff10b2faefc4fe61ebcd062944f3f18b961
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  # Project version
4
- spec.version = "0.10.0"
4
+ spec.version = "0.10.1"
5
5
 
6
6
  # Project description
7
7
  spec.name = "bmc-daemon-lib"
@@ -37,18 +37,17 @@ module BmcDaemonLib
37
37
  raise MqConsumerException, error
38
38
  end
39
39
 
40
- # Link or create exchange
40
+ # Bind on topic exchange, if exists
41
41
  exchange = @channel.topic(topic, durable: true)
42
42
 
43
43
  # puts "listen_to(#{topic},#{rkey})"
44
- @queue.bind exchange, routing_key: rkey
44
+ @queue.bind topic, routing_key: rkey
45
45
 
46
46
  # Handle errors
47
- # rescue Bunny::NotFound => e
48
- # log_debug "creating missing exchange [#{topic}]"
49
- # @channel.topic topic, durable: false, auto_delete: true
50
- # retry
51
- # # raise MqConsumerTopicNotFound, e.message
47
+ rescue Bunny::NotFound => e
48
+ log_debug "missing exchange [#{topic}]"
49
+ #@channel.topic topic, durable: false, auto_delete: true
50
+ raise MqConsumerTopicNotFound, e.message
52
51
 
53
52
  rescue StandardError => e
54
53
  log_error "UNEXPECTED: #{e.inspect}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bmc-daemon-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno MEDICI