istox 0.1.124 → 0.1.125
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/.idea/istox-gem.iml +107 -107
- data/Gemfile.lock +14 -14
- data/lib/istox/helpers/bunny_boot.rb +69 -6
- data/lib/istox/helpers/publisher.rb +39 -50
- data/lib/istox/helpers/redis.rb +2 -2
- 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: a87d2354e3c45bd81b09b6c5e1b5e6b60f32765910e7dfe7e3d5c28bcd43f078
|
|
4
|
+
data.tar.gz: 031f09b347ac17b5181afb1462c2184181c4324cd3b0445ea069a4091a73c09e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d4744df1978965b50574a5bf8249587afc8aa59866b56c1869f21b43d37b02024f7b7d34134ebccabdb69b09011d3564e559a1608a131182598ffed08b905eee
|
|
7
|
+
data.tar.gz: a1addb0759120e22afd1d6ecbe98064d9361ea424f33419604f690cc338036676bfb5bffe764599495ecb57598d2a1c77ec834999a56740503c7d3ccf44e7e3d
|
data/.idea/istox-gem.iml
CHANGED
|
@@ -213,15 +213,15 @@
|
|
|
213
213
|
</library>
|
|
214
214
|
</orderEntry>
|
|
215
215
|
<orderEntry type="module-library">
|
|
216
|
-
<library name="aws-sigv4 (vbundled(1.1.
|
|
216
|
+
<library name="aws-sigv4 (vbundled(1.1.1)) [path][gem]" type="rubylib">
|
|
217
217
|
<properties>
|
|
218
218
|
<option name="version" value="4" />
|
|
219
219
|
</properties>
|
|
220
220
|
<CLASSES>
|
|
221
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/aws-sigv4-1.1.
|
|
221
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/aws-sigv4-1.1.1/lib" />
|
|
222
222
|
</CLASSES>
|
|
223
223
|
<SOURCES>
|
|
224
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/aws-sigv4-1.1.
|
|
224
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/aws-sigv4-1.1.1/lib" />
|
|
225
225
|
</SOURCES>
|
|
226
226
|
</library>
|
|
227
227
|
</orderEntry>
|
|
@@ -301,53 +301,53 @@
|
|
|
301
301
|
</library>
|
|
302
302
|
</orderEntry>
|
|
303
303
|
<orderEntry type="module-library">
|
|
304
|
-
<library name="bunny (vbundled(2.14.
|
|
304
|
+
<library name="bunny (vbundled(2.14.4)) [path][gem]" type="rubylib">
|
|
305
305
|
<properties>
|
|
306
306
|
<option name="version" value="4" />
|
|
307
307
|
</properties>
|
|
308
308
|
<CLASSES>
|
|
309
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.
|
|
310
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.
|
|
311
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.
|
|
312
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.
|
|
313
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.
|
|
314
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.
|
|
315
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.
|
|
309
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.4/lib" />
|
|
310
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.4/spec" />
|
|
311
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.4/docker" />
|
|
312
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.4/.github" />
|
|
313
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.4/examples" />
|
|
314
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.4/profiling" />
|
|
315
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.4/benchmarks" />
|
|
316
316
|
</CLASSES>
|
|
317
317
|
<SOURCES>
|
|
318
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.
|
|
319
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.
|
|
320
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.
|
|
321
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.
|
|
322
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.
|
|
323
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.
|
|
324
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.
|
|
318
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.4/lib" />
|
|
319
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.4/spec" />
|
|
320
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.4/docker" />
|
|
321
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.4/.github" />
|
|
322
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.4/examples" />
|
|
323
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.4/profiling" />
|
|
324
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.4/benchmarks" />
|
|
325
325
|
</SOURCES>
|
|
326
326
|
<excluded>
|
|
327
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.
|
|
328
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.
|
|
329
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.
|
|
330
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.
|
|
331
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.
|
|
332
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.
|
|
327
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.4/spec" />
|
|
328
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.4/docker" />
|
|
329
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.4/.github" />
|
|
330
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.4/examples" />
|
|
331
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.4/profiling" />
|
|
332
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/bunny-2.14.4/benchmarks" />
|
|
333
333
|
</excluded>
|
|
334
334
|
</library>
|
|
335
335
|
</orderEntry>
|
|
336
336
|
<orderEntry type="module-library">
|
|
337
|
-
<library name="concurrent-ruby (vbundled(1.1.
|
|
337
|
+
<library name="concurrent-ruby (vbundled(1.1.6)) [path][gem]" type="rubylib">
|
|
338
338
|
<properties>
|
|
339
339
|
<option name="version" value="4" />
|
|
340
340
|
</properties>
|
|
341
341
|
<CLASSES>
|
|
342
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.
|
|
343
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.
|
|
342
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.6/ext" />
|
|
343
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.6/lib" />
|
|
344
344
|
</CLASSES>
|
|
345
345
|
<SOURCES>
|
|
346
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.
|
|
347
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.
|
|
346
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.6/ext" />
|
|
347
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.6/lib" />
|
|
348
348
|
</SOURCES>
|
|
349
349
|
<excluded>
|
|
350
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.
|
|
350
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.6/ext" />
|
|
351
351
|
</excluded>
|
|
352
352
|
</library>
|
|
353
353
|
</orderEntry>
|
|
@@ -600,23 +600,23 @@
|
|
|
600
600
|
</library>
|
|
601
601
|
</orderEntry>
|
|
602
602
|
<orderEntry type="module-library">
|
|
603
|
-
<library name="google-protobuf (vbundled(3.11.
|
|
603
|
+
<library name="google-protobuf (vbundled(3.11.4)) [path][gem]" type="rubylib">
|
|
604
604
|
<properties>
|
|
605
605
|
<option name="version" value="4" />
|
|
606
606
|
</properties>
|
|
607
607
|
<CLASSES>
|
|
608
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/google-protobuf-3.11.
|
|
609
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/google-protobuf-3.11.
|
|
610
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/google-protobuf-3.11.
|
|
608
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/google-protobuf-3.11.4-universal-darwin/ext" />
|
|
609
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/google-protobuf-3.11.4-universal-darwin/lib" />
|
|
610
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/google-protobuf-3.11.4-universal-darwin/tests" />
|
|
611
611
|
</CLASSES>
|
|
612
612
|
<SOURCES>
|
|
613
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/google-protobuf-3.11.
|
|
614
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/google-protobuf-3.11.
|
|
615
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/google-protobuf-3.11.
|
|
613
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/google-protobuf-3.11.4-universal-darwin/ext" />
|
|
614
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/google-protobuf-3.11.4-universal-darwin/lib" />
|
|
615
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/google-protobuf-3.11.4-universal-darwin/tests" />
|
|
616
616
|
</SOURCES>
|
|
617
617
|
<excluded>
|
|
618
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/google-protobuf-3.11.
|
|
619
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/google-protobuf-3.11.
|
|
618
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/google-protobuf-3.11.4-universal-darwin/ext" />
|
|
619
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/google-protobuf-3.11.4-universal-darwin/tests" />
|
|
620
620
|
</excluded>
|
|
621
621
|
</library>
|
|
622
622
|
</orderEntry>
|
|
@@ -652,15 +652,15 @@
|
|
|
652
652
|
</library>
|
|
653
653
|
</orderEntry>
|
|
654
654
|
<orderEntry type="module-library">
|
|
655
|
-
<library name="graphql (vbundled(1.10.
|
|
655
|
+
<library name="graphql (vbundled(1.10.3)) [path][gem]" type="rubylib">
|
|
656
656
|
<properties>
|
|
657
657
|
<option name="version" value="4" />
|
|
658
658
|
</properties>
|
|
659
659
|
<CLASSES>
|
|
660
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/graphql-1.10.
|
|
660
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/graphql-1.10.3/lib" />
|
|
661
661
|
</CLASSES>
|
|
662
662
|
<SOURCES>
|
|
663
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/graphql-1.10.
|
|
663
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/graphql-1.10.3/lib" />
|
|
664
664
|
</SOURCES>
|
|
665
665
|
</library>
|
|
666
666
|
</orderEntry>
|
|
@@ -678,55 +678,55 @@
|
|
|
678
678
|
</library>
|
|
679
679
|
</orderEntry>
|
|
680
680
|
<orderEntry type="module-library">
|
|
681
|
-
<library name="grpc (vbundled(1.
|
|
681
|
+
<library name="grpc (vbundled(1.27.0)) [path][gem]" type="rubylib">
|
|
682
682
|
<properties>
|
|
683
683
|
<option name="version" value="4" />
|
|
684
684
|
</properties>
|
|
685
685
|
<CLASSES>
|
|
686
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/grpc-1.
|
|
687
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/grpc-1.
|
|
686
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/grpc-1.27.0-universal-darwin/etc" />
|
|
687
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/grpc-1.27.0-universal-darwin/src" />
|
|
688
688
|
</CLASSES>
|
|
689
689
|
<SOURCES>
|
|
690
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/grpc-1.
|
|
691
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/grpc-1.
|
|
690
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/grpc-1.27.0-universal-darwin/etc" />
|
|
691
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/grpc-1.27.0-universal-darwin/src" />
|
|
692
692
|
</SOURCES>
|
|
693
693
|
<excluded>
|
|
694
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/grpc-1.
|
|
695
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/grpc-1.
|
|
694
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/grpc-1.27.0-universal-darwin/etc" />
|
|
695
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/grpc-1.27.0-universal-darwin/src" />
|
|
696
696
|
</excluded>
|
|
697
697
|
</library>
|
|
698
698
|
</orderEntry>
|
|
699
699
|
<orderEntry type="module-library">
|
|
700
|
-
<library name="grpc-tools (vbundled(1.
|
|
700
|
+
<library name="grpc-tools (vbundled(1.27.0)) [path][gem]" type="rubylib">
|
|
701
701
|
<properties>
|
|
702
702
|
<option name="version" value="4" />
|
|
703
703
|
</properties>
|
|
704
704
|
<CLASSES>
|
|
705
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/grpc-tools-1.
|
|
705
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/grpc-tools-1.27.0/bin" />
|
|
706
706
|
</CLASSES>
|
|
707
707
|
<SOURCES>
|
|
708
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/grpc-tools-1.
|
|
708
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/grpc-tools-1.27.0/bin" />
|
|
709
709
|
</SOURCES>
|
|
710
710
|
<excluded>
|
|
711
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/grpc-tools-1.
|
|
711
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/grpc-tools-1.27.0/bin" />
|
|
712
712
|
</excluded>
|
|
713
713
|
</library>
|
|
714
714
|
</orderEntry>
|
|
715
715
|
<orderEntry type="module-library">
|
|
716
|
-
<library name="gruf (vbundled(2.
|
|
716
|
+
<library name="gruf (vbundled(2.8.0)) [path][gem]" type="rubylib">
|
|
717
717
|
<properties>
|
|
718
718
|
<option name="version" value="4" />
|
|
719
719
|
</properties>
|
|
720
720
|
<CLASSES>
|
|
721
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/gruf-2.
|
|
722
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/gruf-2.
|
|
721
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/gruf-2.8.0/bin" />
|
|
722
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/gruf-2.8.0/lib" />
|
|
723
723
|
</CLASSES>
|
|
724
724
|
<SOURCES>
|
|
725
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/gruf-2.
|
|
726
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/gruf-2.
|
|
725
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/gruf-2.8.0/bin" />
|
|
726
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/gruf-2.8.0/lib" />
|
|
727
727
|
</SOURCES>
|
|
728
728
|
<excluded>
|
|
729
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/gruf-2.
|
|
729
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/gruf-2.8.0/bin" />
|
|
730
730
|
</excluded>
|
|
731
731
|
</library>
|
|
732
732
|
</orderEntry>
|
|
@@ -997,26 +997,26 @@
|
|
|
997
997
|
</library>
|
|
998
998
|
</orderEntry>
|
|
999
999
|
<orderEntry type="module-library">
|
|
1000
|
-
<library name="nokogiri (vbundled(1.10.
|
|
1000
|
+
<library name="nokogiri (vbundled(1.10.8)) [path][gem]" type="rubylib">
|
|
1001
1001
|
<properties>
|
|
1002
1002
|
<option name="version" value="4" />
|
|
1003
1003
|
</properties>
|
|
1004
1004
|
<CLASSES>
|
|
1005
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.
|
|
1006
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.
|
|
1007
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.
|
|
1008
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.
|
|
1005
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.8/bin" />
|
|
1006
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.8/ext" />
|
|
1007
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.8/lib" />
|
|
1008
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.8/patches" />
|
|
1009
1009
|
</CLASSES>
|
|
1010
1010
|
<SOURCES>
|
|
1011
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.
|
|
1012
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.
|
|
1013
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.
|
|
1014
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.
|
|
1011
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.8/bin" />
|
|
1012
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.8/ext" />
|
|
1013
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.8/lib" />
|
|
1014
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.8/patches" />
|
|
1015
1015
|
</SOURCES>
|
|
1016
1016
|
<excluded>
|
|
1017
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.
|
|
1018
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.
|
|
1019
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.
|
|
1017
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.8/bin" />
|
|
1018
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.8/ext" />
|
|
1019
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/nokogiri-1.10.8/patches" />
|
|
1020
1020
|
</excluded>
|
|
1021
1021
|
</library>
|
|
1022
1022
|
</orderEntry>
|
|
@@ -1081,26 +1081,26 @@
|
|
|
1081
1081
|
</library>
|
|
1082
1082
|
</orderEntry>
|
|
1083
1083
|
<orderEntry type="module-library">
|
|
1084
|
-
<library name="rack (vbundled(2.
|
|
1084
|
+
<library name="rack (vbundled(2.2.2)) [path][gem]" type="rubylib">
|
|
1085
1085
|
<properties>
|
|
1086
1086
|
<option name="version" value="4" />
|
|
1087
1087
|
</properties>
|
|
1088
1088
|
<CLASSES>
|
|
1089
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.
|
|
1090
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.
|
|
1091
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.
|
|
1092
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.
|
|
1089
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.2.2/bin" />
|
|
1090
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.2.2/lib" />
|
|
1091
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.2.2/contrib" />
|
|
1092
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.2.2/example" />
|
|
1093
1093
|
</CLASSES>
|
|
1094
1094
|
<SOURCES>
|
|
1095
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.
|
|
1096
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.
|
|
1097
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.
|
|
1098
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.
|
|
1095
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.2.2/bin" />
|
|
1096
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.2.2/lib" />
|
|
1097
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.2.2/contrib" />
|
|
1098
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.2.2/example" />
|
|
1099
1099
|
</SOURCES>
|
|
1100
1100
|
<excluded>
|
|
1101
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.
|
|
1102
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.
|
|
1103
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.
|
|
1101
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.2.2/bin" />
|
|
1102
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.2.2/contrib" />
|
|
1103
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/rack-2.2.2/example" />
|
|
1104
1104
|
</excluded>
|
|
1105
1105
|
</library>
|
|
1106
1106
|
</orderEntry>
|
|
@@ -1326,26 +1326,26 @@
|
|
|
1326
1326
|
</library>
|
|
1327
1327
|
</orderEntry>
|
|
1328
1328
|
<orderEntry type="module-library">
|
|
1329
|
-
<library name="redis-rack (vbundled(2.1.
|
|
1329
|
+
<library name="redis-rack (vbundled(2.1.2)) [path][gem]" type="rubylib">
|
|
1330
1330
|
<properties>
|
|
1331
1331
|
<option name="version" value="4" />
|
|
1332
1332
|
</properties>
|
|
1333
1333
|
<CLASSES>
|
|
1334
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.
|
|
1335
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.
|
|
1336
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.
|
|
1337
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.
|
|
1334
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.2/bin" />
|
|
1335
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.2/lib" />
|
|
1336
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.2/test" />
|
|
1337
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.2/.github" />
|
|
1338
1338
|
</CLASSES>
|
|
1339
1339
|
<SOURCES>
|
|
1340
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.
|
|
1341
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.
|
|
1342
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.
|
|
1343
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.
|
|
1340
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.2/bin" />
|
|
1341
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.2/lib" />
|
|
1342
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.2/test" />
|
|
1343
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.2/.github" />
|
|
1344
1344
|
</SOURCES>
|
|
1345
1345
|
<excluded>
|
|
1346
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.
|
|
1347
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.
|
|
1348
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.
|
|
1346
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.2/bin" />
|
|
1347
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.2/test" />
|
|
1348
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-rack-2.1.2/.github" />
|
|
1349
1349
|
</excluded>
|
|
1350
1350
|
</library>
|
|
1351
1351
|
</orderEntry>
|
|
@@ -1368,26 +1368,26 @@
|
|
|
1368
1368
|
</library>
|
|
1369
1369
|
</orderEntry>
|
|
1370
1370
|
<orderEntry type="module-library">
|
|
1371
|
-
<library name="redis-store (vbundled(1.8.
|
|
1371
|
+
<library name="redis-store (vbundled(1.8.2)) [path][gem]" type="rubylib">
|
|
1372
1372
|
<properties>
|
|
1373
1373
|
<option name="version" value="4" />
|
|
1374
1374
|
</properties>
|
|
1375
1375
|
<CLASSES>
|
|
1376
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.
|
|
1377
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.
|
|
1378
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.
|
|
1379
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.
|
|
1376
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.2/lib" />
|
|
1377
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.2/test" />
|
|
1378
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.2/.github" />
|
|
1379
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.2/gemfiles" />
|
|
1380
1380
|
</CLASSES>
|
|
1381
1381
|
<SOURCES>
|
|
1382
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.
|
|
1383
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.
|
|
1384
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.
|
|
1385
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.
|
|
1382
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.2/lib" />
|
|
1383
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.2/test" />
|
|
1384
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.2/.github" />
|
|
1385
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.2/gemfiles" />
|
|
1386
1386
|
</SOURCES>
|
|
1387
1387
|
<excluded>
|
|
1388
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.
|
|
1389
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.
|
|
1390
|
-
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.
|
|
1388
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.2/test" />
|
|
1389
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.2/.github" />
|
|
1390
|
+
<root url="file://$MODULE_DIR$/vendor/ruby/2.5.0/gems/redis-store-1.8.2/gemfiles" />
|
|
1391
1391
|
</excluded>
|
|
1392
1392
|
</library>
|
|
1393
1393
|
</orderEntry>
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
istox (0.1.
|
|
4
|
+
istox (0.1.125)
|
|
5
5
|
awesome_print
|
|
6
6
|
binding_of_caller
|
|
7
7
|
bunny (>= 2.12.0)
|
|
@@ -65,7 +65,7 @@ GEM
|
|
|
65
65
|
arel (9.0.0)
|
|
66
66
|
awesome_print (1.8.0)
|
|
67
67
|
aws-eventstream (1.0.3)
|
|
68
|
-
aws-sigv4 (1.1.
|
|
68
|
+
aws-sigv4 (1.1.1)
|
|
69
69
|
aws-eventstream (~> 1.0, >= 1.0.2)
|
|
70
70
|
binding_of_caller (0.8.0)
|
|
71
71
|
debug_inspector (>= 0.0.1)
|
|
@@ -73,9 +73,9 @@ GEM
|
|
|
73
73
|
bullet (5.7.6)
|
|
74
74
|
activesupport (>= 3.0.0)
|
|
75
75
|
uniform_notifier (~> 1.11.0)
|
|
76
|
-
bunny (2.14.
|
|
76
|
+
bunny (2.14.4)
|
|
77
77
|
amq-protocol (~> 2.3, >= 2.3.0)
|
|
78
|
-
concurrent-ruby (1.1.
|
|
78
|
+
concurrent-ruby (1.1.6)
|
|
79
79
|
crass (1.0.6)
|
|
80
80
|
database_cleaner (1.6.2)
|
|
81
81
|
debug_inspector (0.0.3)
|
|
@@ -97,22 +97,22 @@ GEM
|
|
|
97
97
|
ffi (1.12.2)
|
|
98
98
|
globalid (0.4.2)
|
|
99
99
|
activesupport (>= 4.2.0)
|
|
100
|
-
google-protobuf (3.11.
|
|
100
|
+
google-protobuf (3.11.4-universal-darwin)
|
|
101
101
|
googleapis-common-protos-types (1.0.4)
|
|
102
102
|
google-protobuf (~> 3.0)
|
|
103
103
|
graphlient (0.3.7)
|
|
104
104
|
faraday
|
|
105
105
|
faraday_middleware
|
|
106
106
|
graphql-client
|
|
107
|
-
graphql (1.10.
|
|
107
|
+
graphql (1.10.3)
|
|
108
108
|
graphql-client (0.16.0)
|
|
109
109
|
activesupport (>= 3.0)
|
|
110
110
|
graphql (~> 1.8)
|
|
111
|
-
grpc (1.
|
|
112
|
-
google-protobuf (~> 3.
|
|
111
|
+
grpc (1.27.0-universal-darwin)
|
|
112
|
+
google-protobuf (~> 3.11)
|
|
113
113
|
googleapis-common-protos-types (~> 1.0)
|
|
114
|
-
grpc-tools (1.
|
|
115
|
-
gruf (2.
|
|
114
|
+
grpc-tools (1.27.0)
|
|
115
|
+
gruf (2.8.0)
|
|
116
116
|
activesupport (> 4)
|
|
117
117
|
concurrent-ruby (> 1)
|
|
118
118
|
grpc (~> 1.10)
|
|
@@ -144,14 +144,14 @@ GEM
|
|
|
144
144
|
minitest (5.14.0)
|
|
145
145
|
multipart-post (2.1.1)
|
|
146
146
|
nio4r (2.3.1)
|
|
147
|
-
nokogiri (1.10.
|
|
147
|
+
nokogiri (1.10.8)
|
|
148
148
|
mini_portile2 (~> 2.4.0)
|
|
149
149
|
oj (3.10.2)
|
|
150
150
|
ougai (1.8.2)
|
|
151
151
|
oj (~> 3.4)
|
|
152
152
|
paranoia (2.4.2)
|
|
153
153
|
activerecord (>= 4.0, < 6.1)
|
|
154
|
-
rack (2.
|
|
154
|
+
rack (2.2.2)
|
|
155
155
|
rack-test (1.1.0)
|
|
156
156
|
rack (>= 1.0, < 3)
|
|
157
157
|
rails (5.2.2)
|
|
@@ -192,14 +192,14 @@ GEM
|
|
|
192
192
|
redis-store (>= 1.3, < 2)
|
|
193
193
|
redis-namespace (1.7.0)
|
|
194
194
|
redis (>= 3.0.4)
|
|
195
|
-
redis-rack (2.1.
|
|
195
|
+
redis-rack (2.1.2)
|
|
196
196
|
rack (>= 2.0.8, < 3)
|
|
197
197
|
redis-store (>= 1.2, < 2)
|
|
198
198
|
redis-rails (5.0.2)
|
|
199
199
|
redis-actionpack (>= 5.0, < 6)
|
|
200
200
|
redis-activesupport (>= 5.0, < 6)
|
|
201
201
|
redis-store (>= 1.2, < 2)
|
|
202
|
-
redis-store (1.8.
|
|
202
|
+
redis-store (1.8.2)
|
|
203
203
|
redis (>= 4, < 5)
|
|
204
204
|
rspec (3.8.0)
|
|
205
205
|
rspec-core (~> 3.8.0)
|
|
@@ -37,7 +37,7 @@ module Istox
|
|
|
37
37
|
def exchange(eid)
|
|
38
38
|
type = data[:exchanges][eid][:type]
|
|
39
39
|
name = eid
|
|
40
|
-
settings = { durable:
|
|
40
|
+
settings = { durable: exchange_durable?(eid) }
|
|
41
41
|
confirm = data[:exchanges][eid][:confirm] || -1
|
|
42
42
|
[type, name, settings, confirm]
|
|
43
43
|
rescue
|
|
@@ -70,7 +70,9 @@ module Istox
|
|
|
70
70
|
|
|
71
71
|
# Default for exchange durable attr: true
|
|
72
72
|
def exchange_durable?(exchange_name)
|
|
73
|
-
exchange_config!(exchange_name)['durable']
|
|
73
|
+
durable = exchange_config!(exchange_name)['durable']
|
|
74
|
+
durable = true if durable.nil?
|
|
75
|
+
durable
|
|
74
76
|
rescue => e
|
|
75
77
|
raise e
|
|
76
78
|
end
|
|
@@ -169,14 +171,19 @@ module Istox
|
|
|
169
171
|
end
|
|
170
172
|
|
|
171
173
|
def publish(e, message, options = {})
|
|
172
|
-
|
|
174
|
+
eid = eid e
|
|
175
|
+
persistent = e.durable?
|
|
173
176
|
mandatory = false
|
|
174
177
|
# Set Mandatory & Persistent flag for non-DLX and non-manual msg
|
|
175
178
|
unless ['dlx', 'manual'].include? options[:type]
|
|
176
|
-
|
|
177
|
-
|
|
179
|
+
if options[:routing_key].present?
|
|
180
|
+
v1 = data['publish'][eid]
|
|
181
|
+
v1 = v1[options[:routing_key]] unless v1.nil?
|
|
182
|
+
persistent = v1['persistent'] unless v1.nil?
|
|
183
|
+
mandatory = v1['mandatory'] unless v1.nil?
|
|
184
|
+
end
|
|
178
185
|
end
|
|
179
|
-
options.merge!(persistent: persistent)
|
|
186
|
+
options.merge!(persistent: persistent)
|
|
180
187
|
options.merge!(mandatory: mandatory)
|
|
181
188
|
|
|
182
189
|
# message.merge!(locale: I18n.locale)
|
|
@@ -211,6 +218,58 @@ module Istox
|
|
|
211
218
|
end
|
|
212
219
|
end
|
|
213
220
|
|
|
221
|
+
def create_tracker(channel_id, delivery_tag, eid, message_id, options, payload)
|
|
222
|
+
log.debug "Create track: channel_id: #{channel_id}, delivery_tag: #{delivery_tag}, message_id: #{message_id}"
|
|
223
|
+
# combination of channel_id & delivery_tag can uniquely identify a msg
|
|
224
|
+
id = "#{channel_id.to_s}:#{delivery_tag.to_s}"
|
|
225
|
+
|
|
226
|
+
::Istox::RedisBoot.sets("#{id}:messageid", message_id)
|
|
227
|
+
::Istox::RedisBoot.sets("#{id}:retry", 0)
|
|
228
|
+
::Istox::RedisBoot.sets("#{id}:payload", payload.to_s)
|
|
229
|
+
::Istox::RedisBoot.sets("#{id}:eid", eid.to_s)
|
|
230
|
+
::Istox::RedisBoot.sets("#{id}:options", options.to_s)
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
def find_tracker_on_channel(channel_id, delivery_tag)
|
|
234
|
+
id = "#{channel_id.to_s}:#{delivery_tag.to_s}"
|
|
235
|
+
keys = ::Istox::RedisBoot.keys("#{id}:p")
|
|
236
|
+
keys.each do |k|
|
|
237
|
+
# payload =
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
def del_tracker_on_channel(channel_id)
|
|
242
|
+
trackers = find_trackers_from_channelId channel_id
|
|
243
|
+
trackers.each do |k|
|
|
244
|
+
::Istox::RedisBoot.del k
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
def find_trackers(key)
|
|
249
|
+
a = ::Istox::RedisBoot.keys("#{key}")
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
def update_tracker_by_status(key, status)
|
|
253
|
+
::Istox::RedisBoot.set(key, status)
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
def update_tracker_incr_retry(key)
|
|
257
|
+
::Istox::RedisBoot.incr(key)
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
def eid(ex)
|
|
261
|
+
eid = ex.name
|
|
262
|
+
if eid.empty?
|
|
263
|
+
eid = :default
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
eid
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
def etype(ex)
|
|
270
|
+
ex.type
|
|
271
|
+
end
|
|
272
|
+
|
|
214
273
|
private
|
|
215
274
|
|
|
216
275
|
def data
|
|
@@ -240,6 +299,10 @@ module Istox
|
|
|
240
299
|
def channel_config(consumer_key)
|
|
241
300
|
queue_config_from_consumer_key!(consumer_key)['channel']
|
|
242
301
|
end
|
|
302
|
+
|
|
303
|
+
def find_trackers_from_channelId(channel_id)
|
|
304
|
+
::Istox::RedisBoot.keys("#{channel_id}*")
|
|
305
|
+
end
|
|
243
306
|
end
|
|
244
307
|
end
|
|
245
308
|
end
|
|
@@ -12,24 +12,27 @@ module Istox
|
|
|
12
12
|
# extra publish options: {
|
|
13
13
|
# publish_confirm: true/false
|
|
14
14
|
# }
|
|
15
|
-
def publish(exchange: nil, routing_key: nil, message:)
|
|
15
|
+
def publish(exchange: nil, routing_key: nil, message:, options: {})
|
|
16
16
|
raise 'Exchange and routing key cannot be nil at the same time.' if exchange.nil? && routing_key.nil?
|
|
17
17
|
|
|
18
18
|
exchange = ::Istox::BunnyBoot.search_exchange_of_routing_key!(routing_key) if routing_key.present? && exchange.nil?
|
|
19
19
|
ex = exchange(exchange)
|
|
20
|
+
options[:routing_key] = routing_key unless routing_key.nil?
|
|
20
21
|
|
|
21
|
-
do_publish ex,
|
|
22
|
+
do_publish ex, options, message
|
|
22
23
|
end
|
|
23
24
|
|
|
24
25
|
# publish without defining exchange and queue in amqp.yml
|
|
25
26
|
def manual_publish(exchange:, routing_key: nil, message:, exchange_type: 'direct', exchange_durable: true, options: {})
|
|
26
27
|
ex = exchange(exchange, type: exchange_type, durable: exchange_durable, options: options)
|
|
27
28
|
# TODO: Implement mandatory & persistent flag for manual publish
|
|
28
|
-
|
|
29
|
+
options[:routing_key] = routing_key unless routing_key.nil?
|
|
30
|
+
options[:type] = 'manual'
|
|
31
|
+
do_publish ex, options, message
|
|
29
32
|
end
|
|
30
33
|
|
|
31
34
|
def re_publish
|
|
32
|
-
|
|
35
|
+
do_publish ex, options, message
|
|
33
36
|
end
|
|
34
37
|
|
|
35
38
|
private
|
|
@@ -77,12 +80,13 @@ module Istox
|
|
|
77
80
|
loop do
|
|
78
81
|
success = @channel[threadId]['confirm-1'].wait_for_confirms
|
|
79
82
|
if success
|
|
80
|
-
::Istox::
|
|
83
|
+
# ::Istox::BunnyBoot.del_tracker_on_channel @channel[threadId]['confirm-1'].id
|
|
81
84
|
else
|
|
82
85
|
@channel[threadId]['confirm-1'].nacked_set.each do |n|
|
|
83
86
|
log.debug "[Async #{threadId}] Confirm mode UnAcked Delivery Tag: #{n}"
|
|
84
|
-
::Istox::RedisBoot.incr("confirm:#{n.to_s}")
|
|
85
|
-
|
|
87
|
+
# ::Istox::RedisBoot.incr("confirm:#{n.to_s}")
|
|
88
|
+
# message = ::Istox::BunnyBoot.find_tracker_on_channel @channel[threadId]['confirm-1'].id, delivery_tag
|
|
89
|
+
# publish(exchange: ()::Istox::BunnyBoot.eid ex), routing_key: routing_key, message: message)
|
|
86
90
|
end
|
|
87
91
|
end
|
|
88
92
|
|
|
@@ -136,10 +140,12 @@ module Istox
|
|
|
136
140
|
def exchange(id, type: nil, durable: nil, options: nil)
|
|
137
141
|
return exchanges[id] if exchanges[id].present?
|
|
138
142
|
|
|
139
|
-
log.info "Declare exchange #{id} on channel"
|
|
143
|
+
log.info "Declare exchange #{id} on channel #{options}"
|
|
140
144
|
e = ::Istox::BunnyBoot.exchange(id)
|
|
141
|
-
|
|
142
|
-
|
|
145
|
+
if e.nil?
|
|
146
|
+
durable = true if durable.nil?
|
|
147
|
+
e = [type, id, { durable: durable }, options[:confirm] || 1]
|
|
148
|
+
end
|
|
143
149
|
c = channel_from_mode e.pop
|
|
144
150
|
ex = c.send *e
|
|
145
151
|
|
|
@@ -154,11 +160,11 @@ module Istox
|
|
|
154
160
|
log.debug "Got a returned message properties: #{properties}"
|
|
155
161
|
log.debug "Got a returned message content: #{content}"
|
|
156
162
|
|
|
157
|
-
find_trackers("message_id:#{properties[:message_id]}").each do |key|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
end
|
|
163
|
+
# ::Istox::BunnyBoot.find_trackers("message_id:#{properties[:message_id]}").each do |key|
|
|
164
|
+
# log.debug("On_return, update key #{key} in redis on status and retry counter")
|
|
165
|
+
# ::Istox::BunnyBoot.update_tracker_by_status(key, 2)
|
|
166
|
+
# ::Istox::BunnyBoot.update_tracker_incr_retry(key)
|
|
167
|
+
# end
|
|
162
168
|
|
|
163
169
|
# publish(return_info[:exchange], return_info[:routing_key], content)
|
|
164
170
|
end
|
|
@@ -174,31 +180,34 @@ module Istox
|
|
|
174
180
|
ch.next_publish_seq_no
|
|
175
181
|
end
|
|
176
182
|
|
|
177
|
-
def do_publish(ex,
|
|
183
|
+
def do_publish(ex, options = {}, message)
|
|
184
|
+
eid = ::Istox::BunnyBoot.eid ex
|
|
178
185
|
ch = ex.channel
|
|
179
|
-
|
|
186
|
+
channel_id = ch.id
|
|
187
|
+
confirm = channel_confirm? ch
|
|
188
|
+
mode = confirm_mode eid
|
|
189
|
+
|
|
190
|
+
if confirm
|
|
180
191
|
delivery_tag = channel_next_tag ch
|
|
181
|
-
message_id
|
|
182
|
-
|
|
192
|
+
if options[:message_id].nil?
|
|
193
|
+
options[:message_id] = SecureRandom.hex
|
|
194
|
+
# ::Istox::BunnyBoot.create_tracker channel_id, delivery_tag, eid, options[:message_id], options, message
|
|
195
|
+
end
|
|
183
196
|
end
|
|
184
197
|
|
|
185
|
-
create_tracker message_id, delivery_tag, 0, message if ex.channel.using_publisher_confirmations?
|
|
186
|
-
options = {}
|
|
187
|
-
options[:routing_key] = routing_key unless routing_key.nil?
|
|
188
|
-
options[:message_id] = message_id unless message_id.nil?
|
|
189
|
-
options[:type] = 'manual'
|
|
190
198
|
::Istox::BunnyBoot.publish(ex, message, options)
|
|
191
|
-
|
|
192
|
-
if ex.channel.using_publisher_confirmations? && confirm_mode(ex.name) == 0
|
|
199
|
+
if confirm && mode == 0
|
|
193
200
|
success = ex.channel.wait_for_confirms
|
|
194
201
|
if success
|
|
195
|
-
#
|
|
196
|
-
|
|
202
|
+
# ::Istox::BunnyBoot.del_tracker_on_channel channel_id
|
|
203
|
+
0
|
|
197
204
|
else
|
|
198
205
|
ex.channel.nacked_set.each do |n|
|
|
199
|
-
|
|
200
|
-
|
|
206
|
+
log.debug("UnAck delivery tag is #{n}")
|
|
207
|
+
#::Istox::RedisBoot.incr("confirm:#{n.to_s}")
|
|
208
|
+
# publish(exchange: eid, routing_key: routing_key, message: message, )
|
|
201
209
|
end
|
|
210
|
+
-1
|
|
202
211
|
end
|
|
203
212
|
end
|
|
204
213
|
rescue Bunny::ConnectionClosedError => e
|
|
@@ -206,26 +215,6 @@ module Istox
|
|
|
206
215
|
rescue => e
|
|
207
216
|
log.debug "Timeout error happens #{e}"
|
|
208
217
|
end
|
|
209
|
-
|
|
210
|
-
def create_tracker(message_id, delivery_tag, status, payload)
|
|
211
|
-
log.debug "Create track: message_id #{message_id}, delivery_tag #{delivery_tag}, status #{status}"
|
|
212
|
-
|
|
213
|
-
::Istox::RedisBoot.set("status:delivery_tag:#{delivery_tag.to_s}:message_id:#{message_id}", status)
|
|
214
|
-
::Istox::RedisBoot.set("payload:delivery_tag:#{delivery_tag.to_s}:message_id:#{message_id}", payload.to_s)
|
|
215
|
-
::Istox::RedisBoot.set("retry:delivery_tag:#{delivery_tag.to_s}:message_id:#{message_id}", 0)
|
|
216
|
-
end
|
|
217
|
-
|
|
218
|
-
def find_trackers(key)
|
|
219
|
-
::Istox::RedisBoot.keys("status:*#{key}*")
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
def update_tracker_by_status(key, status)
|
|
223
|
-
::Istox::RedisBoot.set(key, status)
|
|
224
|
-
end
|
|
225
|
-
|
|
226
|
-
def update_tracker_incr_retry(key)
|
|
227
|
-
::Istox::RedisBoot.incr(key)
|
|
228
|
-
end
|
|
229
218
|
end
|
|
230
219
|
end
|
|
231
220
|
end
|
data/lib/istox/helpers/redis.rb
CHANGED
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.
|
|
4
|
+
version: 0.1.125
|
|
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-02
|
|
11
|
+
date: 2020-03-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: awesome_print
|