istox 0.1.150.1 → 0.1.150.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/istox-gem.iml +6 -6
- data/lib/istox/helpers/publisher.rb +13 -1
- data/lib/istox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bd80c788fd7e21e858192b17f70a44c309a151beaf59bbb931de5d423d8114d
|
4
|
+
data.tar.gz: 6ed7a8154e3905f16c5284a0f14604f95174c625d8b12a48f66585ea46c5398c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70e10c3cc45c859e653e6efb67510c25075a84d0aa6938be450f7687420a406a9720de2717d65196d1e599b8e789a2c76000e9a53f293194c04eea3657474ee2
|
7
|
+
data.tar.gz: 8fccd3cd735f65e0f33bbbb00a3e9f7dbe8612f2fb7ad89b7399d9d530fe6cdf7d3ab6b1760ab97cb7e4e3f10ba6ff197e90d1b42845fdcc9b2ea0d6f13c2b3b
|
data/.idea/istox-gem.iml
CHANGED
@@ -1063,20 +1063,20 @@
|
|
1063
1063
|
</library>
|
1064
1064
|
</orderEntry>
|
1065
1065
|
<orderEntry type="module-library">
|
1066
|
-
<library name="ougai (vbundled(1.8.
|
1066
|
+
<library name="ougai (vbundled(1.8.3)) [path][gem]" type="rubylib">
|
1067
1067
|
<properties>
|
1068
1068
|
<option name="version" value="4" />
|
1069
1069
|
</properties>
|
1070
1070
|
<CLASSES>
|
1071
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/ougai-1.8.
|
1072
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/ougai-1.8.
|
1071
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/ougai-1.8.3/lib" />
|
1072
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/ougai-1.8.3/spec" />
|
1073
1073
|
</CLASSES>
|
1074
1074
|
<SOURCES>
|
1075
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/ougai-1.8.
|
1076
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/ougai-1.8.
|
1075
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/ougai-1.8.3/lib" />
|
1076
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/ougai-1.8.3/spec" />
|
1077
1077
|
</SOURCES>
|
1078
1078
|
<excluded>
|
1079
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/ougai-1.8.
|
1079
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/ougai-1.8.3/spec" />
|
1080
1080
|
</excluded>
|
1081
1081
|
</library>
|
1082
1082
|
</orderEntry>
|
@@ -78,6 +78,9 @@ module Istox
|
|
78
78
|
@channel[t]['confirm-1'].close
|
79
79
|
@channel[t]['noconfirm'].close
|
80
80
|
@channel.delete t
|
81
|
+
|
82
|
+
# Remove exchange from @exchange
|
83
|
+
@exchanges.delete t
|
81
84
|
end
|
82
85
|
end
|
83
86
|
end.join
|
@@ -233,7 +236,16 @@ module Istox
|
|
233
236
|
sleep 1
|
234
237
|
do_publish(ex,options,message)
|
235
238
|
rescue => e
|
236
|
-
log.debug "Error happens: #{e}"
|
239
|
+
log.debug "Error happens: #{e.message}"
|
240
|
+
|
241
|
+
# If the error indicates that the channel is already closed
|
242
|
+
# then clear hash @channel and @exchange
|
243
|
+
if e.message.include? "cannot use a closed channel"
|
244
|
+
@channel.delete Thread.current.object_id
|
245
|
+
@exchanges.delete Thread.current.object_id
|
246
|
+
ex = exchange(eid)
|
247
|
+
do_publish(ex, options, message)
|
248
|
+
end
|
237
249
|
end
|
238
250
|
end
|
239
251
|
end
|
data/lib/istox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: istox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.150.
|
4
|
+
version: 0.1.150.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Siong Leng
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|