istox 0.1.108 → 0.1.110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44f13d60806ddc5e974ceb09bd0a26a6066ebf6f51314ed01999ca81ec5009fa
4
- data.tar.gz: 3fa8535bb2af6bd0074e0cb05921eac4e48be9f911aaacb3d2cc39518e47063c
3
+ metadata.gz: a6cf8bd2229dff425f2a56898ef0a433fc0f3e51f28db6e8181ac5b3d53d8dd4
4
+ data.tar.gz: 33a72d66d7c1d4911ecdb72b4eb90d09238001e678185b63068c5e7368168532
5
5
  SHA512:
6
- metadata.gz: 2d2ee1d6674b5a6298dd5a74836de6ef29efddea9eed28bd2244fa6d32f7e39fa78d938400c53da4de5814b0255806ad3234c1a16221f43bfdf451f2307d2ebd
7
- data.tar.gz: 459bbe4701c09640c71e92b9386e54277880a1a6f4840e7450d671a45919c640b5d3ebeeff73deefeaa4bec7300c3de4a8382bb33a722bf3fe7e7b32fbefc003
6
+ metadata.gz: 454dcd73c46eb09bb47f3c44452c9dcf67f6150252135efa89b0e86b028595bf6f0a6c39a54377fc6987ec66c03c3330f682d7a878bd96aa1736595793738699
7
+ data.tar.gz: ad3a833f3564b9987c9d23252a9dc61a888487fa5327682772bf5aad300ebfe390c5c23413b22a2e2a60d14e5a12a62275738c693fc784cfa68cbc9c84c30c67
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- istox (0.1.107)
4
+ istox (0.1.108)
5
5
  awesome_print
6
6
  binding_of_caller
7
7
  bunny (>= 2.12.0)
@@ -55,6 +55,11 @@ module Istox
55
55
  else
56
56
  raise "Exchange type #{exchange_config.type} is not valid/supported."
57
57
  end
58
+
59
+ success = channel.wait_for_confirms
60
+ raise 'RABBITMQ publish acknowlegement failed' unless success
61
+
62
+ log.info 'Publish RABBITMQ message success'
58
63
  end
59
64
 
60
65
  def data
@@ -62,7 +67,13 @@ module Istox
62
67
  end
63
68
 
64
69
  def channel
65
- ::Istox::BunnyBoot.channel
70
+ return @channel if @channel.present?
71
+
72
+ @channel = ::Istox::BunnyBoot.channel
73
+
74
+ @channel.confirm_select
75
+
76
+ @channel
66
77
  end
67
78
 
68
79
  def queue_publish_config!(routing_key:, exchange:)
@@ -1,3 +1,3 @@
1
1
  module Istox
2
- VERSION = '0.1.108'.freeze
2
+ VERSION = '0.1.110'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: istox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.108
4
+ version: 0.1.110
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siong Leng