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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd6505eb71a418b9a99f9c333f4128de00965fda9922914d3ae88a2ee5381111
4
- data.tar.gz: 0466a27ee1ad6e5c26800f7118105c60cc4a00586f07aab083000199916087aa
3
+ metadata.gz: 6bd80c788fd7e21e858192b17f70a44c309a151beaf59bbb931de5d423d8114d
4
+ data.tar.gz: 6ed7a8154e3905f16c5284a0f14604f95174c625d8b12a48f66585ea46c5398c
5
5
  SHA512:
6
- metadata.gz: 78777d7d20d1cc654a35f156d618a9fb23264678bd6d0916bae3cece31dfcefb98622feee2ca9a186e190cb474b849110b52132fcef3df44ccb16d51277186fc
7
- data.tar.gz: 14c48bcf7047ea7f8de4f495b3341cfaf163f1c61aab681807a98a14c8412b083b0f30180ea0c025399d724b3bcc12a731a5e279a28aa5cbce6c4e2a569f107e
6
+ metadata.gz: 70e10c3cc45c859e653e6efb67510c25075a84d0aa6938be450f7687420a406a9720de2717d65196d1e599b8e789a2c76000e9a53f293194c04eea3657474ee2
7
+ data.tar.gz: 8fccd3cd735f65e0f33bbbb00a3e9f7dbe8612f2fb7ad89b7399d9d530fe6cdf7d3ab6b1760ab97cb7e4e3f10ba6ff197e90d1b42845fdcc9b2ea0d6f13c2b3b
@@ -1063,20 +1063,20 @@
1063
1063
  </library>
1064
1064
  </orderEntry>
1065
1065
  <orderEntry type="module-library">
1066
- <library name="ougai (vbundled(1.8.4)) [path][gem]" type="rubylib">
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.4/lib" />
1072
- <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/ougai-1.8.4/spec" />
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.4/lib" />
1076
- <root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.5.0/gems/ougai-1.8.4/spec" />
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.4/spec" />
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
@@ -1,3 +1,3 @@
1
1
  module Istox
2
- VERSION = '0.1.150.1'.freeze
2
+ VERSION = '0.1.150.2'.freeze
3
3
  end
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.1
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-05-19 00:00:00.000000000 Z
11
+ date: 2020-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print