ruby_rabbitmq_janus 3.0.0.pre.382 → 3.0.0.pre.384

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: 5e2788aaa9bf06b85b431dfa06ac04bb1315bbf2a0eebdd73b91367e535b4cea
4
- data.tar.gz: deccabc4e76a96d6db5335625cef5086c7aabcad8930590cff866d6c7abbf9e7
3
+ metadata.gz: e3f09817fed0214a2ce8a776ea6cb6c7c3ea893c24f56af5c2cec9855883d5f5
4
+ data.tar.gz: 108b9f75fbb86c4698ada11ff575568e5e80d7ee42c46a05da9713b375414868
5
5
  SHA512:
6
- metadata.gz: cab7ca08efd87ef15d24c71612d96d6b8deb460619af6ea79ff6f09cc025dbf1c2683cdd145bcfba781df2202b94ff9a3a4a7fcd99e9247016a2790dc313ba9a
7
- data.tar.gz: 32c1868c00b6c01a7f76b870ecc4f064c2c959f32bf54025fd94fca8cf93dc61cdf87847a1a978d2cf15b6470a2a27d58bb324014cdd6181cf3f84df3dfcfd19
6
+ metadata.gz: fbfce5a5a397afbfcb3e25a4f435f7149382584146099ab6f0e8eb73e4f64095e38401a74b38c581765e3c6592f5b7807f88007bdd2b91ca172e7241528b0fea
7
+ data.tar.gz: 32d45c9f76089d812d71ca10b2c085f160cabe3f85ffbe54d56075cc9db81eaaf83a111d05c8536d3d63cc40084fffc5bb52241ab853b4988a9636eb6d042a9d
@@ -28,9 +28,9 @@ module RubyRabbitmqJanus
28
28
  @rabbit.transaction_long { transaction_running }
29
29
  rescue Interrupt
30
30
  ::Log.warn "This process has been interupted #{class_name}"
31
- ::Log.warn \
32
- "Close a connection with RabbitMQ instance for #{class_name}"
33
- @rabbit.close
31
+ close
32
+ else
33
+ close
34
34
  end
35
35
 
36
36
  def info_thread
@@ -40,6 +40,12 @@ module RubyRabbitmqJanus
40
40
  def class_name
41
41
  self.class.name
42
42
  end
43
+
44
+ def close
45
+ ::Log.warn \
46
+ "Close a connection with RabbitMQ instance for #{class_name}"
47
+ @rabbit.close
48
+ end
43
49
  end
44
50
  end
45
51
  end
@@ -17,7 +17,14 @@ module RubyRabbitmqJanus
17
17
  def transaction_short(&block)
18
18
  raise Errors::Rabbit::Connect::MissingAction unless block
19
19
 
20
- response = transaction_long(&block)
20
+ response = nil
21
+
22
+ Timeout.timeout(5) do
23
+ response = transaction_long(&block)
24
+ end
25
+ rescue Timeout::Error
26
+ ::Log.error 'The "Short transaction" have raised Timeout exception.'
27
+ ensure
21
28
  close
22
29
  response
23
30
  end
@@ -30,6 +37,8 @@ module RubyRabbitmqJanus
30
37
  start
31
38
  yield
32
39
  end
40
+ rescue Timeout::Error
41
+ ::Log.error 'The "Long transaction" have raised Timeout exception.'
33
42
  end
34
43
 
35
44
  # Opening a connection with RabbitMQ
@@ -18,12 +18,12 @@ shared_examples 'when thread listen queue' do
18
18
  it { expect { concurrency.run(&action) }.not_to raise_error(exception_runner) }
19
19
  it { expect { concurrency.run }.to raise_error(exception_runner) }
20
20
 
21
- it 'check name listener' do
22
- ee = concurrency
21
+ # it 'check name listener' do
22
+ # ee = concurrency
23
23
 
24
- ee.run(&action)
25
- expect(ee.send(:publisher)).to be_a(listener)
26
- end
24
+ # ee.run(&action)
25
+ # expect(ee.send(:publisher)).to be_a(listener)
26
+ # end
27
27
 
28
28
  it 'Numbers of thread' do
29
29
  (1..size).each { concurrency.run(&action) }
@@ -14,27 +14,27 @@
14
14
  <img src="./assets/0.10.2/loading.gif" alt="loading"/>
15
15
  </div>
16
16
  <div id="wrapper" style="display:none;">
17
- <div class="timestamp">Generated <abbr class="timeago" title="2021-02-15T10:40:59+00:00">2021-02-15T10:40:59+00:00</abbr></div>
17
+ <div class="timestamp">Generated <abbr class="timeago" title="2021-02-16T13:57:10+00:00">2021-02-16T13:57:10+00:00</abbr></div>
18
18
  <ul class="group_tabs"></ul>
19
19
 
20
20
  <div id="content">
21
21
  <div class="file_list_container" id="AllFiles">
22
22
  <h2>
23
23
  <span class="group_name">All Files</span>
24
- (<span class="covered_percent"><span class="red">61.58%</span></span>
24
+ (<span class="covered_percent"><span class="red">61.64%</span></span>
25
25
  covered at
26
26
  <span class="covered_strength">
27
27
  <span class="green">
28
- 1.8
28
+ 1.71
29
29
  </span>
30
30
  </span> hits/line)
31
31
  </h2>
32
32
  <a name="AllFiles"></a>
33
33
  <div>
34
34
  <b>57</b> files in total.
35
- <b>1187</b> relevant lines.
36
- <span class="green"><b>731</b> lines covered</span> and
37
- <span class="red"><b>456</b> lines missed </span>
35
+ <b>1194</b> relevant lines.
36
+ <span class="green"><b>736</b> lines covered</span> and
37
+ <span class="red"><b>458</b> lines missed </span>
38
38
  </div>
39
39
  <table class="file_list">
40
40
  <thead>
@@ -252,12 +252,12 @@
252
252
 
253
253
  <tr>
254
254
  <td class="strong"><a href="#8c6f3bd63c0f0a9119db65c3640ccad2e66514f5" class="src_link" title="lib/rrj/process/concurrency.rb">lib/rrj/process/concurrency.rb</a></td>
255
- <td class="yellow strong">86.36 %</td>
256
- <td>49</td>
257
- <td>22</td>
258
- <td>19</td>
259
- <td>3</td>
260
- <td>7.9</td>
255
+ <td class="green strong">92.0 %</td>
256
+ <td>55</td>
257
+ <td>25</td>
258
+ <td>23</td>
259
+ <td>2</td>
260
+ <td>8.9</td>
261
261
  </tr>
262
262
 
263
263
  <tr>
@@ -267,7 +267,7 @@
267
267
  <td>13</td>
268
268
  <td>13</td>
269
269
  <td>0</td>
270
- <td>2.9</td>
270
+ <td>3.0</td>
271
271
  </tr>
272
272
 
273
273
  <tr>
@@ -277,7 +277,7 @@
277
277
  <td>13</td>
278
278
  <td>13</td>
279
279
  <td>0</td>
280
- <td>3.2</td>
280
+ <td>2.4</td>
281
281
  </tr>
282
282
 
283
283
  <tr>
@@ -287,7 +287,7 @@
287
287
  <td>20</td>
288
288
  <td>19</td>
289
289
  <td>1</td>
290
- <td>8.2</td>
290
+ <td>7.1</td>
291
291
  </tr>
292
292
 
293
293
  <tr>
@@ -297,17 +297,17 @@
297
297
  <td>19</td>
298
298
  <td>14</td>
299
299
  <td>5</td>
300
- <td>3.7</td>
300
+ <td>3.1</td>
301
301
  </tr>
302
302
 
303
303
  <tr>
304
304
  <td class="strong"><a href="#6fd983c17228218f3f14345bef0ecb87dd4c4676" class="src_link" title="lib/rrj/rabbit/connect.rb">lib/rrj/rabbit/connect.rb</a></td>
305
- <td class="yellow strong">81.48 %</td>
306
- <td>65</td>
307
- <td>27</td>
308
- <td>22</td>
309
- <td>5</td>
310
- <td>6.9</td>
305
+ <td class="red strong">74.19 %</td>
306
+ <td>74</td>
307
+ <td>31</td>
308
+ <td>23</td>
309
+ <td>8</td>
310
+ <td>5.9</td>
311
311
  </tr>
312
312
 
313
313
  <tr>
@@ -317,7 +317,7 @@
317
317
  <td>41</td>
318
318
  <td>24</td>
319
319
  <td>17</td>
320
- <td>4.2</td>
320
+ <td>3.4</td>
321
321
  </tr>
322
322
 
323
323
  <tr>
@@ -327,7 +327,7 @@
327
327
  <td>9</td>
328
328
  <td>8</td>
329
329
  <td>1</td>
330
- <td>1.9</td>
330
+ <td>1.7</td>
331
331
  </tr>
332
332
 
333
333
  <tr>
@@ -337,7 +337,7 @@
337
337
  <td>9</td>
338
338
  <td>8</td>
339
339
  <td>1</td>
340
- <td>1.9</td>
340
+ <td>1.7</td>
341
341
  </tr>
342
342
 
343
343
  <tr>
@@ -507,7 +507,7 @@
507
507
  <td>11</td>
508
508
  <td>9</td>
509
509
  <td>2</td>
510
- <td>2.5</td>
510
+ <td>2.1</td>
511
511
  </tr>
512
512
 
513
513
  <tr>
@@ -517,7 +517,7 @@
517
517
  <td>16</td>
518
518
  <td>14</td>
519
519
  <td>2</td>
520
- <td>41.2</td>
520
+ <td>37.3</td>
521
521
  </tr>
522
522
 
523
523
  <tr>
@@ -990,20 +990,20 @@
990
990
  <div class="file_list_container" id="Process">
991
991
  <h2>
992
992
  <span class="group_name">Process</span>
993
- (<span class="covered_percent"><span class="green">94.12%</span></span>
993
+ (<span class="covered_percent"><span class="green">95.77%</span></span>
994
994
  covered at
995
995
  <span class="covered_strength">
996
996
  <span class="green">
997
- 6.13
997
+ 6.12
998
998
  </span>
999
999
  </span> hits/line)
1000
1000
  </h2>
1001
1001
  <a name="Process"></a>
1002
1002
  <div>
1003
1003
  <b>4</b> files in total.
1004
- <b>68</b> relevant lines.
1005
- <span class="green"><b>64</b> lines covered</span> and
1006
- <span class="red"><b>4</b> lines missed </span>
1004
+ <b>71</b> relevant lines.
1005
+ <span class="green"><b>68</b> lines covered</span> and
1006
+ <span class="red"><b>3</b> lines missed </span>
1007
1007
  </div>
1008
1008
  <table class="file_list">
1009
1009
  <thead>
@@ -1021,12 +1021,12 @@
1021
1021
 
1022
1022
  <tr>
1023
1023
  <td class="strong"><a href="#8c6f3bd63c0f0a9119db65c3640ccad2e66514f5" class="src_link" title="lib/rrj/process/concurrency.rb">lib/rrj/process/concurrency.rb</a></td>
1024
- <td class="yellow strong">86.36 %</td>
1025
- <td>49</td>
1026
- <td>22</td>
1027
- <td>19</td>
1028
- <td>3</td>
1029
- <td>7.9</td>
1024
+ <td class="green strong">92.0 %</td>
1025
+ <td>55</td>
1026
+ <td>25</td>
1027
+ <td>23</td>
1028
+ <td>2</td>
1029
+ <td>8.9</td>
1030
1030
  </tr>
1031
1031
 
1032
1032
  <tr>
@@ -1036,7 +1036,7 @@
1036
1036
  <td>13</td>
1037
1037
  <td>13</td>
1038
1038
  <td>0</td>
1039
- <td>2.9</td>
1039
+ <td>3.0</td>
1040
1040
  </tr>
1041
1041
 
1042
1042
  <tr>
@@ -1046,7 +1046,7 @@
1046
1046
  <td>13</td>
1047
1047
  <td>13</td>
1048
1048
  <td>0</td>
1049
- <td>3.2</td>
1049
+ <td>2.4</td>
1050
1050
  </tr>
1051
1051
 
1052
1052
  <tr>
@@ -1056,7 +1056,7 @@
1056
1056
  <td>20</td>
1057
1057
  <td>19</td>
1058
1058
  <td>1</td>
1059
- <td>8.2</td>
1059
+ <td>7.1</td>
1060
1060
  </tr>
1061
1061
 
1062
1062
  </tbody>
@@ -1067,20 +1067,20 @@
1067
1067
  <div class="file_list_container" id="RabbitMQ">
1068
1068
  <h2>
1069
1069
  <span class="group_name">RabbitMQ</span>
1070
- (<span class="covered_percent"><span class="red">64.95%</span></span>
1070
+ (<span class="covered_percent"><span class="red">64.22%</span></span>
1071
1071
  covered at
1072
1072
  <span class="covered_strength">
1073
1073
  <span class="green">
1074
- 2.45
1074
+ 2.17
1075
1075
  </span>
1076
1076
  </span> hits/line)
1077
1077
  </h2>
1078
1078
  <a name="RabbitMQ"></a>
1079
1079
  <div>
1080
1080
  <b>12</b> files in total.
1081
- <b>214</b> relevant lines.
1082
- <span class="green"><b>139</b> lines covered</span> and
1083
- <span class="red"><b>75</b> lines missed </span>
1081
+ <b>218</b> relevant lines.
1082
+ <span class="green"><b>140</b> lines covered</span> and
1083
+ <span class="red"><b>78</b> lines missed </span>
1084
1084
  </div>
1085
1085
  <table class="file_list">
1086
1086
  <thead>
@@ -1103,17 +1103,17 @@
1103
1103
  <td>19</td>
1104
1104
  <td>14</td>
1105
1105
  <td>5</td>
1106
- <td>3.7</td>
1106
+ <td>3.1</td>
1107
1107
  </tr>
1108
1108
 
1109
1109
  <tr>
1110
1110
  <td class="strong"><a href="#6fd983c17228218f3f14345bef0ecb87dd4c4676" class="src_link" title="lib/rrj/rabbit/connect.rb">lib/rrj/rabbit/connect.rb</a></td>
1111
- <td class="yellow strong">81.48 %</td>
1112
- <td>65</td>
1113
- <td>27</td>
1114
- <td>22</td>
1115
- <td>5</td>
1116
- <td>6.9</td>
1111
+ <td class="red strong">74.19 %</td>
1112
+ <td>74</td>
1113
+ <td>31</td>
1114
+ <td>23</td>
1115
+ <td>8</td>
1116
+ <td>5.9</td>
1117
1117
  </tr>
1118
1118
 
1119
1119
  <tr>
@@ -1123,7 +1123,7 @@
1123
1123
  <td>41</td>
1124
1124
  <td>24</td>
1125
1125
  <td>17</td>
1126
- <td>4.2</td>
1126
+ <td>3.4</td>
1127
1127
  </tr>
1128
1128
 
1129
1129
  <tr>
@@ -1133,7 +1133,7 @@
1133
1133
  <td>9</td>
1134
1134
  <td>8</td>
1135
1135
  <td>1</td>
1136
- <td>1.9</td>
1136
+ <td>1.7</td>
1137
1137
  </tr>
1138
1138
 
1139
1139
  <tr>
@@ -1143,7 +1143,7 @@
1143
1143
  <td>9</td>
1144
1144
  <td>8</td>
1145
1145
  <td>1</td>
1146
- <td>1.9</td>
1146
+ <td>1.7</td>
1147
1147
  </tr>
1148
1148
 
1149
1149
  <tr>
@@ -1228,7 +1228,7 @@
1228
1228
  covered at
1229
1229
  <span class="covered_strength">
1230
1230
  <span class="green">
1231
- 2.45
1231
+ 2.27
1232
1232
  </span>
1233
1233
  </span> hits/line)
1234
1234
  </h2>
@@ -1310,7 +1310,7 @@
1310
1310
  <td>11</td>
1311
1311
  <td>9</td>
1312
1312
  <td>2</td>
1313
- <td>2.5</td>
1313
+ <td>2.1</td>
1314
1314
  </tr>
1315
1315
 
1316
1316
  <tr>
@@ -1320,7 +1320,7 @@
1320
1320
  <td>16</td>
1321
1321
  <td>14</td>
1322
1322
  <td>2</td>
1323
- <td>41.2</td>
1323
+ <td>37.3</td>
1324
1324
  </tr>
1325
1325
 
1326
1326
  <tr>
@@ -9953,11 +9953,11 @@
9953
9953
  <div class="source_table" id="8c6f3bd63c0f0a9119db65c3640ccad2e66514f5">
9954
9954
  <div class="header">
9955
9955
  <h3>lib/rrj/process/concurrency.rb</h3>
9956
- <h4><span class="yellow">86.36 %</span> covered</h4>
9956
+ <h4><span class="green">92.0 %</span> covered</h4>
9957
9957
  <div>
9958
- <b>22</b> relevant lines.
9959
- <span class="green"><b>19</b> lines covered</span> and
9960
- <span class="red"><b>3</b> lines missed.</span>
9958
+ <b>25</b> relevant lines.
9959
+ <span class="green"><b>23</b> lines covered</span> and
9960
+ <span class="red"><b>2</b> lines missed.</span>
9961
9961
  </div>
9962
9962
  </div>
9963
9963
 
@@ -10060,26 +10060,26 @@
10060
10060
  <code class="ruby"> def initialize</code>
10061
10061
  </li>
10062
10062
 
10063
- <li class="covered" data-hits="21" data-linenumber="17">
10064
- <span class="hits">21</span>
10063
+ <li class="covered" data-hits="19" data-linenumber="17">
10064
+ <span class="hits">19</span>
10065
10065
 
10066
10066
  <code class="ruby"> ::Log.info info_thread</code>
10067
10067
  </li>
10068
10068
 
10069
- <li class="covered" data-hits="21" data-linenumber="18">
10070
- <span class="hits">21</span>
10069
+ <li class="covered" data-hits="19" data-linenumber="18">
10070
+ <span class="hits">19</span>
10071
10071
 
10072
10072
  <code class="ruby"> @rabbit = RubyRabbitmqJanus::Rabbit::Connect.new</code>
10073
10073
  </li>
10074
10074
 
10075
- <li class="covered" data-hits="21" data-linenumber="19">
10076
- <span class="hits">21</span>
10075
+ <li class="covered" data-hits="19" data-linenumber="19">
10076
+ <span class="hits">19</span>
10077
10077
 
10078
10078
  <code class="ruby"> @lock = Mutex.new</code>
10079
10079
  </li>
10080
10080
 
10081
- <li class="covered" data-hits="21" data-linenumber="20">
10082
- <span class="hits">21</span>
10081
+ <li class="covered" data-hits="19" data-linenumber="20">
10082
+ <span class="hits">19</span>
10083
10083
 
10084
10084
  <code class="ruby"> @condition = ConditionVariable.new</code>
10085
10085
  </li>
@@ -10126,8 +10126,8 @@
10126
10126
  <code class="ruby"> def initialize_thread</code>
10127
10127
  </li>
10128
10128
 
10129
- <li class="covered" data-hits="36" data-linenumber="28">
10130
- <span class="hits">36</span>
10129
+ <li class="covered" data-hits="32" data-linenumber="28">
10130
+ <span class="hits">32</span>
10131
10131
 
10132
10132
  <code class="ruby"> @rabbit.transaction_long { transaction_running }</code>
10133
10133
  </li>
@@ -10147,19 +10147,19 @@
10147
10147
  <li class="missed" data-hits="0" data-linenumber="31">
10148
10148
 
10149
10149
 
10150
- <code class="ruby"> ::Log.warn \</code>
10150
+ <code class="ruby"> close</code>
10151
10151
  </li>
10152
10152
 
10153
10153
  <li class="never" data-hits="" data-linenumber="32">
10154
10154
 
10155
10155
 
10156
- <code class="ruby"> &quot;Close a connection with RabbitMQ instance for #{class_name}&quot;</code>
10156
+ <code class="ruby"> else</code>
10157
10157
  </li>
10158
10158
 
10159
- <li class="missed" data-hits="0" data-linenumber="33">
10160
-
10159
+ <li class="covered" data-hits="16" data-linenumber="33">
10160
+ <span class="hits">16</span>
10161
10161
 
10162
- <code class="ruby"> @rabbit.close</code>
10162
+ <code class="ruby"> close</code>
10163
10163
  </li>
10164
10164
 
10165
10165
  <li class="never" data-hits="" data-linenumber="34">
@@ -10180,8 +10180,8 @@
10180
10180
  <code class="ruby"> def info_thread</code>
10181
10181
  </li>
10182
10182
 
10183
- <li class="covered" data-hits="21" data-linenumber="37">
10184
- <span class="hits">21</span>
10183
+ <li class="covered" data-hits="19" data-linenumber="37">
10184
+ <span class="hits">19</span>
10185
10185
 
10186
10186
  <code class="ruby"> &quot;Create an thread -- #{class_name}&quot;</code>
10187
10187
  </li>
@@ -10204,8 +10204,8 @@
10204
10204
  <code class="ruby"> def class_name</code>
10205
10205
  </li>
10206
10206
 
10207
- <li class="covered" data-hits="21" data-linenumber="41">
10208
- <span class="hits">21</span>
10207
+ <li class="covered" data-hits="35" data-linenumber="41">
10208
+ <span class="hits">35</span>
10209
10209
 
10210
10210
  <code class="ruby"> self.class.name</code>
10211
10211
  </li>
@@ -10219,40 +10219,76 @@
10219
10219
  <li class="never" data-hits="" data-linenumber="43">
10220
10220
 
10221
10221
 
10222
+ <code class="ruby"></code>
10223
+ </li>
10224
+
10225
+ <li class="covered" data-hits="1" data-linenumber="44">
10226
+ <span class="hits">1</span>
10227
+
10228
+ <code class="ruby"> def close</code>
10229
+ </li>
10230
+
10231
+ <li class="covered" data-hits="16" data-linenumber="45">
10232
+ <span class="hits">16</span>
10233
+
10234
+ <code class="ruby"> ::Log.warn \</code>
10235
+ </li>
10236
+
10237
+ <li class="never" data-hits="" data-linenumber="46">
10238
+
10239
+
10240
+ <code class="ruby"> &quot;Close a connection with RabbitMQ instance for #{class_name}&quot;</code>
10241
+ </li>
10242
+
10243
+ <li class="covered" data-hits="16" data-linenumber="47">
10244
+ <span class="hits">16</span>
10245
+
10246
+ <code class="ruby"> @rabbit.close</code>
10247
+ </li>
10248
+
10249
+ <li class="never" data-hits="" data-linenumber="48">
10250
+
10251
+
10252
+ <code class="ruby"> end</code>
10253
+ </li>
10254
+
10255
+ <li class="never" data-hits="" data-linenumber="49">
10256
+
10257
+
10222
10258
  <code class="ruby"> end</code>
10223
10259
  </li>
10224
10260
 
10225
- <li class="never" data-hits="" data-linenumber="44">
10261
+ <li class="never" data-hits="" data-linenumber="50">
10226
10262
 
10227
10263
 
10228
10264
  <code class="ruby"> end</code>
10229
10265
  </li>
10230
10266
 
10231
- <li class="never" data-hits="" data-linenumber="45">
10267
+ <li class="never" data-hits="" data-linenumber="51">
10232
10268
 
10233
10269
 
10234
10270
  <code class="ruby"> end</code>
10235
10271
  </li>
10236
10272
 
10237
- <li class="never" data-hits="" data-linenumber="46">
10273
+ <li class="never" data-hits="" data-linenumber="52">
10238
10274
 
10239
10275
 
10240
10276
  <code class="ruby">end</code>
10241
10277
  </li>
10242
10278
 
10243
- <li class="never" data-hits="" data-linenumber="47">
10279
+ <li class="never" data-hits="" data-linenumber="53">
10244
10280
 
10245
10281
 
10246
10282
  <code class="ruby"></code>
10247
10283
  </li>
10248
10284
 
10249
- <li class="covered" data-hits="1" data-linenumber="48">
10285
+ <li class="covered" data-hits="1" data-linenumber="54">
10250
10286
  <span class="hits">1</span>
10251
10287
 
10252
10288
  <code class="ruby">require &#39;rrj/process/event&#39;</code>
10253
10289
  </li>
10254
10290
 
10255
- <li class="covered" data-hits="1" data-linenumber="49">
10291
+ <li class="covered" data-hits="1" data-linenumber="55">
10256
10292
  <span class="hits">1</span>
10257
10293
 
10258
10294
  <code class="ruby">require &#39;rrj/process/event_admin&#39;</code>
@@ -10403,8 +10439,8 @@
10403
10439
  <code class="ruby"> def name_publisher</code>
10404
10440
  </li>
10405
10441
 
10406
- <li class="covered" data-hits="17" data-linenumber="22">
10407
- <span class="hits">17</span>
10442
+ <li class="covered" data-hits="20" data-linenumber="22">
10443
+ <span class="hits">20</span>
10408
10444
 
10409
10445
  <code class="ruby"> :pub_classic</code>
10410
10446
  </li>
@@ -10427,8 +10463,8 @@
10427
10463
  <code class="ruby"> def publisher</code>
10428
10464
  </li>
10429
10465
 
10430
- <li class="covered" data-hits="10" data-linenumber="26">
10431
- <span class="hits">10</span>
10466
+ <li class="covered" data-hits="8" data-linenumber="26">
10467
+ <span class="hits">8</span>
10432
10468
 
10433
10469
  <code class="ruby"> Rabbit::Listener::From.new(rabbit)</code>
10434
10470
  </li>
@@ -10632,8 +10668,8 @@
10632
10668
  <code class="ruby"> def name_publisher</code>
10633
10669
  </li>
10634
10670
 
10635
- <li class="covered" data-hits="20" data-linenumber="22">
10636
- <span class="hits">20</span>
10671
+ <li class="covered" data-hits="12" data-linenumber="22">
10672
+ <span class="hits">12</span>
10637
10673
 
10638
10674
  <code class="ruby"> :pub_admin</code>
10639
10675
  </li>
@@ -10656,8 +10692,8 @@
10656
10692
  <code class="ruby"> def publisher</code>
10657
10693
  </li>
10658
10694
 
10659
- <li class="covered" data-hits="10" data-linenumber="26">
10660
- <span class="hits">10</span>
10695
+ <li class="covered" data-hits="8" data-linenumber="26">
10696
+ <span class="hits">8</span>
10661
10697
 
10662
10698
  <code class="ruby"> Rabbit::Listener::FromAdmin.new(rabbit)</code>
10663
10699
  </li>
@@ -10849,14 +10885,14 @@
10849
10885
  <code class="ruby"> def initialize</code>
10850
10886
  </li>
10851
10887
 
10852
- <li class="covered" data-hits="18" data-linenumber="20">
10853
- <span class="hits">18</span>
10888
+ <li class="covered" data-hits="16" data-linenumber="20">
10889
+ <span class="hits">16</span>
10854
10890
 
10855
10891
  <code class="ruby"> super</code>
10856
10892
  </li>
10857
10893
 
10858
- <li class="covered" data-hits="36" data-linenumber="21">
10859
- <span class="hits">36</span>
10894
+ <li class="covered" data-hits="32" data-linenumber="21">
10895
+ <span class="hits">32</span>
10860
10896
 
10861
10897
  <code class="ruby"> @thread = Thread.new { initialize_thread }</code>
10862
10898
  </li>
@@ -10933,8 +10969,8 @@
10933
10969
  <code class="ruby"> def run(&amp;block)</code>
10934
10970
  </li>
10935
10971
 
10936
- <li class="covered" data-hits="17" data-linenumber="34">
10937
- <span class="hits">17</span>
10972
+ <li class="covered" data-hits="14" data-linenumber="34">
10973
+ <span class="hits">14</span>
10938
10974
 
10939
10975
  <code class="ruby"> raise_nil_block unless block</code>
10940
10976
  </li>
@@ -10945,26 +10981,26 @@
10945
10981
  <code class="ruby"></code>
10946
10982
  </li>
10947
10983
 
10948
- <li class="covered" data-hits="15" data-linenumber="36">
10949
- <span class="hits">15</span>
10984
+ <li class="covered" data-hits="12" data-linenumber="36">
10985
+ <span class="hits">12</span>
10950
10986
 
10951
10987
  <code class="ruby"> @thread.join</code>
10952
10988
  </li>
10953
10989
 
10954
- <li class="covered" data-hits="15" data-linenumber="37">
10955
- <span class="hits">15</span>
10990
+ <li class="covered" data-hits="12" data-linenumber="37">
10991
+ <span class="hits">12</span>
10956
10992
 
10957
10993
  <code class="ruby"> Thread.new do</code>
10958
10994
  </li>
10959
10995
 
10960
- <li class="covered" data-hits="15" data-linenumber="38">
10961
- <span class="hits">15</span>
10996
+ <li class="covered" data-hits="12" data-linenumber="38">
10997
+ <span class="hits">12</span>
10962
10998
 
10963
10999
  <code class="ruby"> loop do</code>
10964
11000
  </li>
10965
11001
 
10966
- <li class="covered" data-hits="15" data-linenumber="39">
10967
- <span class="hits">15</span>
11002
+ <li class="covered" data-hits="12" data-linenumber="39">
11003
+ <span class="hits">12</span>
10968
11004
 
10969
11005
  <code class="ruby"> @thread.thread_variable_get(name_publisher)</code>
10970
11006
  </li>
@@ -11029,8 +11065,8 @@
11029
11065
  <code class="ruby"> def transaction_running</code>
11030
11066
  </li>
11031
11067
 
11032
- <li class="covered" data-hits="18" data-linenumber="50">
11033
- <span class="hits">18</span>
11068
+ <li class="covered" data-hits="16" data-linenumber="50">
11069
+ <span class="hits">16</span>
11034
11070
 
11035
11071
  <code class="ruby"> @thread.thread_variable_set(name_publisher, publisher)</code>
11036
11072
  </li>
@@ -11222,20 +11258,20 @@
11222
11258
  <code class="ruby"> def initialize</code>
11223
11259
  </li>
11224
11260
 
11225
- <li class="covered" data-hits="20" data-linenumber="23">
11226
- <span class="hits">20</span>
11261
+ <li class="covered" data-hits="16" data-linenumber="23">
11262
+ <span class="hits">16</span>
11227
11263
 
11228
11264
  <code class="ruby"> @responses = []</code>
11229
11265
  </li>
11230
11266
 
11231
- <li class="covered" data-hits="20" data-linenumber="24">
11232
- <span class="hits">20</span>
11267
+ <li class="covered" data-hits="16" data-linenumber="24">
11268
+ <span class="hits">16</span>
11233
11269
 
11234
11270
  <code class="ruby"> @semaphore = Semaphore.new</code>
11235
11271
  </li>
11236
11272
 
11237
- <li class="covered" data-hits="20" data-linenumber="25">
11238
- <span class="hits">20</span>
11273
+ <li class="covered" data-hits="16" data-linenumber="25">
11274
+ <span class="hits">16</span>
11239
11275
 
11240
11276
  <code class="ruby"> @lock = Mutex.new</code>
11241
11277
  </li>
@@ -11368,11 +11404,11 @@
11368
11404
  <div class="source_table" id="6fd983c17228218f3f14345bef0ecb87dd4c4676">
11369
11405
  <div class="header">
11370
11406
  <h3>lib/rrj/rabbit/connect.rb</h3>
11371
- <h4><span class="yellow">81.48 %</span> covered</h4>
11407
+ <h4><span class="red">74.19 %</span> covered</h4>
11372
11408
  <div>
11373
- <b>27</b> relevant lines.
11374
- <span class="green"><b>22</b> lines covered</span> and
11375
- <span class="red"><b>5</b> lines missed.</span>
11409
+ <b>31</b> relevant lines.
11410
+ <span class="green"><b>23</b> lines covered</span> and
11411
+ <span class="red"><b>8</b> lines missed.</span>
11376
11412
  </div>
11377
11413
  </div>
11378
11414
 
@@ -11451,8 +11487,8 @@
11451
11487
  <code class="ruby"> def initialize</code>
11452
11488
  </li>
11453
11489
 
11454
- <li class="covered" data-hits="21" data-linenumber="13">
11455
- <span class="hits">21</span>
11490
+ <li class="covered" data-hits="19" data-linenumber="13">
11491
+ <span class="hits">19</span>
11456
11492
 
11457
11493
  <code class="ruby"> @rabbit = Bunny.new(bunny_conf)</code>
11458
11494
  </li>
@@ -11496,274 +11532,328 @@
11496
11532
  <li class="missed" data-hits="0" data-linenumber="20">
11497
11533
 
11498
11534
 
11499
- <code class="ruby"> response = transaction_long(&amp;block)</code>
11535
+ <code class="ruby"> response = nil</code>
11500
11536
  </li>
11501
11537
 
11502
- <li class="missed" data-hits="0" data-linenumber="21">
11538
+ <li class="never" data-hits="" data-linenumber="21">
11503
11539
 
11504
11540
 
11505
- <code class="ruby"> close</code>
11541
+ <code class="ruby"></code>
11506
11542
  </li>
11507
11543
 
11508
11544
  <li class="missed" data-hits="0" data-linenumber="22">
11509
11545
 
11510
11546
 
11547
+ <code class="ruby"> Timeout.timeout(5) do</code>
11548
+ </li>
11549
+
11550
+ <li class="missed" data-hits="0" data-linenumber="23">
11551
+
11552
+
11553
+ <code class="ruby"> response = transaction_long(&amp;block)</code>
11554
+ </li>
11555
+
11556
+ <li class="never" data-hits="" data-linenumber="24">
11557
+
11558
+
11559
+ <code class="ruby"> end</code>
11560
+ </li>
11561
+
11562
+ <li class="never" data-hits="" data-linenumber="25">
11563
+
11564
+
11565
+ <code class="ruby"> rescue Timeout::Error</code>
11566
+ </li>
11567
+
11568
+ <li class="missed" data-hits="0" data-linenumber="26">
11569
+
11570
+
11571
+ <code class="ruby"> ::Log.error &#39;The &quot;Short transaction&quot; have raised Timeout exception.&#39;</code>
11572
+ </li>
11573
+
11574
+ <li class="never" data-hits="" data-linenumber="27">
11575
+
11576
+
11577
+ <code class="ruby"> ensure</code>
11578
+ </li>
11579
+
11580
+ <li class="missed" data-hits="0" data-linenumber="28">
11581
+
11582
+
11583
+ <code class="ruby"> close</code>
11584
+ </li>
11585
+
11586
+ <li class="never" data-hits="" data-linenumber="29">
11587
+
11588
+
11511
11589
  <code class="ruby"> response</code>
11512
11590
  </li>
11513
11591
 
11514
- <li class="never" data-hits="" data-linenumber="23">
11592
+ <li class="missed" data-hits="0" data-linenumber="30">
11515
11593
 
11516
11594
 
11517
11595
  <code class="ruby"> end</code>
11518
11596
  </li>
11519
11597
 
11520
- <li class="never" data-hits="" data-linenumber="24">
11598
+ <li class="never" data-hits="" data-linenumber="31">
11521
11599
 
11522
11600
 
11523
11601
  <code class="ruby"></code>
11524
11602
  </li>
11525
11603
 
11526
- <li class="never" data-hits="" data-linenumber="25">
11604
+ <li class="never" data-hits="" data-linenumber="32">
11527
11605
 
11528
11606
 
11529
11607
  <code class="ruby"> # Create an transaction with rabbitmq and not close</code>
11530
11608
  </li>
11531
11609
 
11532
- <li class="covered" data-hits="1" data-linenumber="26">
11610
+ <li class="covered" data-hits="1" data-linenumber="33">
11533
11611
  <span class="hits">1</span>
11534
11612
 
11535
11613
  <code class="ruby"> def transaction_long</code>
11536
11614
  </li>
11537
11615
 
11538
- <li class="covered" data-hits="18" data-linenumber="27">
11539
- <span class="hits">18</span>
11616
+ <li class="covered" data-hits="16" data-linenumber="34">
11617
+ <span class="hits">16</span>
11540
11618
 
11541
11619
  <code class="ruby"> raise Errors::Rabbit::Connect::MissingAction unless block_given?</code>
11542
11620
  </li>
11543
11621
 
11544
- <li class="never" data-hits="" data-linenumber="28">
11622
+ <li class="never" data-hits="" data-linenumber="35">
11545
11623
 
11546
11624
 
11547
11625
  <code class="ruby"></code>
11548
11626
  </li>
11549
11627
 
11550
- <li class="covered" data-hits="18" data-linenumber="29">
11551
- <span class="hits">18</span>
11628
+ <li class="covered" data-hits="16" data-linenumber="36">
11629
+ <span class="hits">16</span>
11552
11630
 
11553
11631
  <code class="ruby"> Timeout.timeout(10) do</code>
11554
11632
  </li>
11555
11633
 
11556
- <li class="covered" data-hits="18" data-linenumber="30">
11557
- <span class="hits">18</span>
11634
+ <li class="covered" data-hits="16" data-linenumber="37">
11635
+ <span class="hits">16</span>
11558
11636
 
11559
11637
  <code class="ruby"> start</code>
11560
11638
  </li>
11561
11639
 
11562
- <li class="covered" data-hits="18" data-linenumber="31">
11563
- <span class="hits">18</span>
11640
+ <li class="covered" data-hits="16" data-linenumber="38">
11641
+ <span class="hits">16</span>
11564
11642
 
11565
11643
  <code class="ruby"> yield</code>
11566
11644
  </li>
11567
11645
 
11568
- <li class="never" data-hits="" data-linenumber="32">
11646
+ <li class="never" data-hits="" data-linenumber="39">
11569
11647
 
11570
11648
 
11571
11649
  <code class="ruby"> end</code>
11572
11650
  </li>
11573
11651
 
11574
- <li class="never" data-hits="" data-linenumber="33">
11652
+ <li class="never" data-hits="" data-linenumber="40">
11653
+
11654
+
11655
+ <code class="ruby"> rescue Timeout::Error</code>
11656
+ </li>
11657
+
11658
+ <li class="missed" data-hits="0" data-linenumber="41">
11659
+
11660
+
11661
+ <code class="ruby"> ::Log.error &#39;The &quot;Long transaction&quot; have raised Timeout exception.&#39;</code>
11662
+ </li>
11663
+
11664
+ <li class="never" data-hits="" data-linenumber="42">
11575
11665
 
11576
11666
 
11577
11667
  <code class="ruby"> end</code>
11578
11668
  </li>
11579
11669
 
11580
- <li class="never" data-hits="" data-linenumber="34">
11670
+ <li class="never" data-hits="" data-linenumber="43">
11581
11671
 
11582
11672
 
11583
11673
  <code class="ruby"></code>
11584
11674
  </li>
11585
11675
 
11586
- <li class="never" data-hits="" data-linenumber="35">
11676
+ <li class="never" data-hits="" data-linenumber="44">
11587
11677
 
11588
11678
 
11589
11679
  <code class="ruby"> # Opening a connection with RabbitMQ</code>
11590
11680
  </li>
11591
11681
 
11592
- <li class="covered" data-hits="1" data-linenumber="36">
11682
+ <li class="covered" data-hits="1" data-linenumber="45">
11593
11683
  <span class="hits">1</span>
11594
11684
 
11595
11685
  <code class="ruby"> def start</code>
11596
11686
  </li>
11597
11687
 
11598
- <li class="covered" data-hits="18" data-linenumber="37">
11599
- <span class="hits">18</span>
11688
+ <li class="covered" data-hits="16" data-linenumber="46">
11689
+ <span class="hits">16</span>
11600
11690
 
11601
11691
  <code class="ruby"> @rabbit.start</code>
11602
11692
  </li>
11603
11693
 
11604
- <li class="never" data-hits="" data-linenumber="38">
11694
+ <li class="never" data-hits="" data-linenumber="47">
11605
11695
 
11606
11696
 
11607
11697
  <code class="ruby"> end</code>
11608
11698
  </li>
11609
11699
 
11610
- <li class="never" data-hits="" data-linenumber="39">
11700
+ <li class="never" data-hits="" data-linenumber="48">
11611
11701
 
11612
11702
 
11613
11703
  <code class="ruby"></code>
11614
11704
  </li>
11615
11705
 
11616
- <li class="never" data-hits="" data-linenumber="40">
11706
+ <li class="never" data-hits="" data-linenumber="49">
11617
11707
 
11618
11708
 
11619
11709
  <code class="ruby"> # Close connection to server RabbitMQ</code>
11620
11710
  </li>
11621
11711
 
11622
- <li class="covered" data-hits="1" data-linenumber="41">
11712
+ <li class="covered" data-hits="1" data-linenumber="50">
11623
11713
  <span class="hits">1</span>
11624
11714
 
11625
11715
  <code class="ruby"> def close</code>
11626
11716
  </li>
11627
11717
 
11628
- <li class="missed" data-hits="0" data-linenumber="42">
11629
-
11718
+ <li class="covered" data-hits="16" data-linenumber="51">
11719
+ <span class="hits">16</span>
11630
11720
 
11631
11721
  <code class="ruby"> @rabbit.close</code>
11632
11722
  </li>
11633
11723
 
11634
- <li class="never" data-hits="" data-linenumber="43">
11724
+ <li class="never" data-hits="" data-linenumber="52">
11635
11725
 
11636
11726
 
11637
11727
  <code class="ruby"> end</code>
11638
11728
  </li>
11639
11729
 
11640
- <li class="never" data-hits="" data-linenumber="44">
11730
+ <li class="never" data-hits="" data-linenumber="53">
11641
11731
 
11642
11732
 
11643
11733
  <code class="ruby"></code>
11644
11734
  </li>
11645
11735
 
11646
- <li class="never" data-hits="" data-linenumber="45">
11736
+ <li class="never" data-hits="" data-linenumber="54">
11647
11737
 
11648
11738
 
11649
11739
  <code class="ruby"> # Create an channel</code>
11650
11740
  </li>
11651
11741
 
11652
- <li class="covered" data-hits="1" data-linenumber="46">
11742
+ <li class="covered" data-hits="1" data-linenumber="55">
11653
11743
  <span class="hits">1</span>
11654
11744
 
11655
11745
  <code class="ruby"> def channel</code>
11656
11746
  </li>
11657
11747
 
11658
- <li class="covered" data-hits="20" data-linenumber="47">
11659
- <span class="hits">20</span>
11748
+ <li class="covered" data-hits="16" data-linenumber="56">
11749
+ <span class="hits">16</span>
11660
11750
 
11661
11751
  <code class="ruby"> @rabbit.create_channel</code>
11662
11752
  </li>
11663
11753
 
11664
- <li class="never" data-hits="" data-linenumber="48">
11754
+ <li class="never" data-hits="" data-linenumber="57">
11665
11755
 
11666
11756
 
11667
11757
  <code class="ruby"> end</code>
11668
11758
  </li>
11669
11759
 
11670
- <li class="never" data-hits="" data-linenumber="49">
11760
+ <li class="never" data-hits="" data-linenumber="58">
11671
11761
 
11672
11762
 
11673
11763
  <code class="ruby"></code>
11674
11764
  </li>
11675
11765
 
11676
- <li class="covered" data-hits="1" data-linenumber="50">
11766
+ <li class="covered" data-hits="1" data-linenumber="59">
11677
11767
  <span class="hits">1</span>
11678
11768
 
11679
11769
  <code class="ruby"> private</code>
11680
11770
  </li>
11681
11771
 
11682
- <li class="never" data-hits="" data-linenumber="51">
11772
+ <li class="never" data-hits="" data-linenumber="60">
11683
11773
 
11684
11774
 
11685
11775
  <code class="ruby"></code>
11686
11776
  </li>
11687
11777
 
11688
- <li class="covered" data-hits="1" data-linenumber="52">
11778
+ <li class="covered" data-hits="1" data-linenumber="61">
11689
11779
  <span class="hits">1</span>
11690
11780
 
11691
11781
  <code class="ruby"> def bunny_conf</code>
11692
11782
  </li>
11693
11783
 
11694
- <li class="covered" data-hits="21" data-linenumber="53">
11695
- <span class="hits">21</span>
11784
+ <li class="covered" data-hits="19" data-linenumber="62">
11785
+ <span class="hits">19</span>
11696
11786
 
11697
11787
  <code class="ruby"> Tools::Config.instance.server_settings.merge(bunny_conf_static)</code>
11698
11788
  </li>
11699
11789
 
11700
- <li class="never" data-hits="" data-linenumber="54">
11790
+ <li class="never" data-hits="" data-linenumber="63">
11701
11791
 
11702
11792
 
11703
11793
  <code class="ruby"> end</code>
11704
11794
  </li>
11705
11795
 
11706
- <li class="never" data-hits="" data-linenumber="55">
11796
+ <li class="never" data-hits="" data-linenumber="64">
11707
11797
 
11708
11798
 
11709
11799
  <code class="ruby"></code>
11710
11800
  </li>
11711
11801
 
11712
- <li class="covered" data-hits="1" data-linenumber="56">
11802
+ <li class="covered" data-hits="1" data-linenumber="65">
11713
11803
  <span class="hits">1</span>
11714
11804
 
11715
11805
  <code class="ruby"> def bunny_conf_static</code>
11716
11806
  </li>
11717
11807
 
11718
- <li class="never" data-hits="" data-linenumber="57">
11808
+ <li class="never" data-hits="" data-linenumber="66">
11719
11809
 
11720
11810
 
11721
11811
  <code class="ruby"> {</code>
11722
11812
  </li>
11723
11813
 
11724
- <li class="covered" data-hits="21" data-linenumber="58">
11725
- <span class="hits">21</span>
11814
+ <li class="covered" data-hits="19" data-linenumber="67">
11815
+ <span class="hits">19</span>
11726
11816
 
11727
11817
  <code class="ruby"> connection_timeout: 5,</code>
11728
11818
  </li>
11729
11819
 
11730
- <li class="never" data-hits="" data-linenumber="59">
11820
+ <li class="never" data-hits="" data-linenumber="68">
11731
11821
 
11732
11822
 
11733
11823
  <code class="ruby"> connection_name: &quot;[#{rand(999)}] backend&quot;,</code>
11734
11824
  </li>
11735
11825
 
11736
- <li class="never" data-hits="" data-linenumber="60">
11826
+ <li class="never" data-hits="" data-linenumber="69">
11737
11827
 
11738
11828
 
11739
11829
  <code class="ruby"> recover_from_connection_close: false</code>
11740
11830
  </li>
11741
11831
 
11742
- <li class="never" data-hits="" data-linenumber="61">
11832
+ <li class="never" data-hits="" data-linenumber="70">
11743
11833
 
11744
11834
 
11745
11835
  <code class="ruby"> }</code>
11746
11836
  </li>
11747
11837
 
11748
- <li class="never" data-hits="" data-linenumber="62">
11838
+ <li class="never" data-hits="" data-linenumber="71">
11749
11839
 
11750
11840
 
11751
11841
  <code class="ruby"> end</code>
11752
11842
  </li>
11753
11843
 
11754
- <li class="never" data-hits="" data-linenumber="63">
11844
+ <li class="never" data-hits="" data-linenumber="72">
11755
11845
 
11756
11846
 
11757
11847
  <code class="ruby"> end</code>
11758
11848
  </li>
11759
11849
 
11760
- <li class="never" data-hits="" data-linenumber="64">
11850
+ <li class="never" data-hits="" data-linenumber="73">
11761
11851
 
11762
11852
 
11763
11853
  <code class="ruby"> end</code>
11764
11854
  </li>
11765
11855
 
11766
- <li class="never" data-hits="" data-linenumber="65">
11856
+ <li class="never" data-hits="" data-linenumber="74">
11767
11857
 
11768
11858
 
11769
11859
  <code class="ruby">end</code>
@@ -11866,20 +11956,20 @@
11866
11956
  <code class="ruby"> def initialize(rabbit)</code>
11867
11957
  </li>
11868
11958
 
11869
- <li class="covered" data-hits="20" data-linenumber="14">
11870
- <span class="hits">20</span>
11959
+ <li class="covered" data-hits="16" data-linenumber="14">
11960
+ <span class="hits">16</span>
11871
11961
 
11872
11962
  <code class="ruby"> super()</code>
11873
11963
  </li>
11874
11964
 
11875
- <li class="covered" data-hits="20" data-linenumber="15">
11876
- <span class="hits">20</span>
11965
+ <li class="covered" data-hits="16" data-linenumber="15">
11966
+ <span class="hits">16</span>
11877
11967
 
11878
11968
  <code class="ruby"> @rabbit = rabbit.channel</code>
11879
11969
  </li>
11880
11970
 
11881
- <li class="covered" data-hits="20" data-linenumber="16">
11882
- <span class="hits">20</span>
11971
+ <li class="covered" data-hits="16" data-linenumber="16">
11972
+ <span class="hits">16</span>
11883
11973
 
11884
11974
  <code class="ruby"> subscribe_queue</code>
11885
11975
  </li>
@@ -11908,8 +11998,8 @@
11908
11998
  <code class="ruby"> def listen_events</code>
11909
11999
  </li>
11910
12000
 
11911
- <li class="covered" data-hits="15" data-linenumber="21">
11912
- <span class="hits">15</span>
12001
+ <li class="covered" data-hits="12" data-linenumber="21">
12002
+ <span class="hits">12</span>
11913
12003
 
11914
12004
  <code class="ruby"> semaphore.wait</code>
11915
12005
  </li>
@@ -11992,8 +12082,8 @@
11992
12082
  <code class="ruby"> def binding</code>
11993
12083
  </li>
11994
12084
 
11995
- <li class="covered" data-hits="20" data-linenumber="35">
11996
- <span class="hits">20</span>
12085
+ <li class="covered" data-hits="16" data-linenumber="35">
12086
+ <span class="hits">16</span>
11997
12087
 
11998
12088
  <code class="ruby"> @rabbit.direct(&#39;amq.direct&#39;)</code>
11999
12089
  </li>
@@ -12016,8 +12106,8 @@
12016
12106
  <code class="ruby"> def opts_subs</code>
12017
12107
  </li>
12018
12108
 
12019
- <li class="covered" data-hits="20" data-linenumber="39">
12020
- <span class="hits">20</span>
12109
+ <li class="covered" data-hits="16" data-linenumber="39">
12110
+ <span class="hits">16</span>
12021
12111
 
12022
12112
  <code class="ruby"> { block: false, manual_ack: false, arguments: { &#39;x-priority&#39;: 2 } }</code>
12023
12113
  </li>
@@ -12118,14 +12208,14 @@
12118
12208
  <code class="ruby"> def subscribe_queue</code>
12119
12209
  </li>
12120
12210
 
12121
- <li class="covered" data-hits="20" data-linenumber="56">
12122
- <span class="hits">20</span>
12211
+ <li class="covered" data-hits="16" data-linenumber="56">
12212
+ <span class="hits">16</span>
12123
12213
 
12124
12214
  <code class="ruby"> rabbit.prefetch(1)</code>
12125
12215
  </li>
12126
12216
 
12127
- <li class="covered" data-hits="20" data-linenumber="57">
12128
- <span class="hits">20</span>
12217
+ <li class="covered" data-hits="16" data-linenumber="57">
12218
+ <span class="hits">16</span>
12129
12219
 
12130
12220
  <code class="ruby"> reply.bind(binding).subscribe(opts_subs) do |info, prop, payload|</code>
12131
12221
  </li>
@@ -12347,8 +12437,8 @@
12347
12437
  <code class="ruby"> def reply</code>
12348
12438
  </li>
12349
12439
 
12350
- <li class="covered" data-hits="10" data-linenumber="15">
12351
- <span class="hits">10</span>
12440
+ <li class="covered" data-hits="8" data-linenumber="15">
12441
+ <span class="hits">8</span>
12352
12442
 
12353
12443
  <code class="ruby"> rabbit.queue(Tools::Config.instance.queue_from)</code>
12354
12444
  </li>
@@ -12510,8 +12600,8 @@
12510
12600
  <code class="ruby"> def reply</code>
12511
12601
  </li>
12512
12602
 
12513
- <li class="covered" data-hits="10" data-linenumber="15">
12514
- <span class="hits">10</span>
12603
+ <li class="covered" data-hits="8" data-linenumber="15">
12604
+ <span class="hits">8</span>
12515
12605
 
12516
12606
  <code class="ruby"> rabbit.queue(Tools::Config.instance.queue_admin_from)</code>
12517
12607
  </li>
@@ -17135,8 +17225,8 @@
17135
17225
  <code class="ruby"> def queue_from</code>
17136
17226
  </li>
17137
17227
 
17138
- <li class="covered" data-hits="10" data-linenumber="13">
17139
- <span class="hits">10</span>
17228
+ <li class="covered" data-hits="8" data-linenumber="13">
17229
+ <span class="hits">8</span>
17140
17230
 
17141
17231
  <code class="ruby"> @options[&#39;queues&#39;][&#39;standard&#39;][&#39;from&#39;].to_s</code>
17142
17232
  </li>
@@ -17195,8 +17285,8 @@
17195
17285
  <code class="ruby"> def queue_admin_from</code>
17196
17286
  </li>
17197
17287
 
17198
- <li class="covered" data-hits="10" data-linenumber="23">
17199
- <span class="hits">10</span>
17288
+ <li class="covered" data-hits="8" data-linenumber="23">
17289
+ <span class="hits">8</span>
17200
17290
 
17201
17291
  <code class="ruby"> @options[&#39;queues&#39;][&#39;admin&#39;][&#39;from&#39;].to_s</code>
17202
17292
  </li>
@@ -17418,20 +17508,20 @@
17418
17508
  <code class="ruby"> def server_settings</code>
17419
17509
  </li>
17420
17510
 
17421
- <li class="covered" data-hits="21" data-linenumber="25">
17422
- <span class="hits">21</span>
17511
+ <li class="covered" data-hits="19" data-linenumber="25">
17512
+ <span class="hits">19</span>
17423
17513
 
17424
17514
  <code class="ruby"> Hash[%w[host port pass user vhost log_level].map do |value|</code>
17425
17515
  </li>
17426
17516
 
17427
- <li class="covered" data-hits="126" data-linenumber="26">
17428
- <span class="hits">126</span>
17517
+ <li class="covered" data-hits="114" data-linenumber="26">
17518
+ <span class="hits">114</span>
17429
17519
 
17430
17520
  <code class="ruby"> key = value.to_sym</code>
17431
17521
  </li>
17432
17522
 
17433
- <li class="covered" data-hits="126" data-linenumber="27">
17434
- <span class="hits">126</span>
17523
+ <li class="covered" data-hits="114" data-linenumber="27">
17524
+ <span class="hits">114</span>
17435
17525
 
17436
17526
  <code class="ruby"> j_value = @options[&#39;rabbit&#39;][rabbitmq_conf(value)]</code>
17437
17527
  </li>
@@ -17442,8 +17532,8 @@
17442
17532
  <code class="ruby"></code>
17443
17533
  </li>
17444
17534
 
17445
- <li class="covered" data-hits="126" data-linenumber="29">
17446
- <span class="hits">126</span>
17535
+ <li class="covered" data-hits="114" data-linenumber="29">
17536
+ <span class="hits">114</span>
17447
17537
 
17448
17538
  <code class="ruby"> raise Errors::Tools::Config::Rabbitmq value if j_value.blank?</code>
17449
17539
  </li>
@@ -17454,8 +17544,8 @@
17454
17544
  <code class="ruby"></code>
17455
17545
  </li>
17456
17546
 
17457
- <li class="covered" data-hits="126" data-linenumber="31">
17458
- <span class="hits">126</span>
17547
+ <li class="covered" data-hits="114" data-linenumber="31">
17548
+ <span class="hits">114</span>
17459
17549
 
17460
17550
  <code class="ruby"> [key, j_value]</code>
17461
17551
  </li>
@@ -17496,8 +17586,8 @@
17496
17586
  <code class="ruby"> def rabbitmq_conf(value)</code>
17497
17587
  </li>
17498
17588
 
17499
- <li class="covered" data-hits="126" data-linenumber="38">
17500
- <span class="hits">126</span>
17589
+ <li class="covered" data-hits="114" data-linenumber="38">
17590
+ <span class="hits">114</span>
17501
17591
 
17502
17592
  <code class="ruby"> value.eql?(&#39;log_level&#39;) ? &#39;level&#39; : value</code>
17503
17593
  </li>