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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/istox/helpers/publisher.rb +12 -1
- data/lib/istox/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a6cf8bd2229dff425f2a56898ef0a433fc0f3e51f28db6e8181ac5b3d53d8dd4
|
|
4
|
+
data.tar.gz: 33a72d66d7c1d4911ecdb72b4eb90d09238001e678185b63068c5e7368168532
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 454dcd73c46eb09bb47f3c44452c9dcf67f6150252135efa89b0e86b028595bf6f0a6c39a54377fc6987ec66c03c3330f682d7a878bd96aa1736595793738699
|
|
7
|
+
data.tar.gz: ad3a833f3564b9987c9d23252a9dc61a888487fa5327682772bf5aad300ebfe390c5c23413b22a2e2a60d14e5a12a62275738c693fc784cfa68cbc9c84c30c67
|
data/Gemfile.lock
CHANGED
|
@@ -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
|
-
|
|
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:)
|
data/lib/istox/version.rb
CHANGED