isimud 0.7.0 → 1.3.1
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/.gitignore +1 -0
- data/.rspec +1 -2
- data/.ruby-version +1 -1
- data/.yardoc/checksums +10 -10
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/Gemfile +2 -1
- data/Gemfile.lock +63 -73
- data/LICENSE.txt +19 -0
- data/README.md +51 -3
- data/Rakefile +5 -0
- data/doc/Isimud/BunnyClient.html +882 -179
- data/doc/Isimud/Client.html +236 -18
- data/doc/Isimud/Event.html +211 -95
- data/doc/Isimud/EventListener.html +325 -307
- data/doc/Isimud/EventObserver/ClassMethods.html +14 -14
- data/doc/Isimud/EventObserver.html +418 -36
- data/doc/Isimud/Generators/ConfigGenerator.html +2 -2
- data/doc/Isimud/Generators/InitializerGenerator.html +2 -2
- data/doc/Isimud/Generators.html +2 -2
- data/doc/Isimud/Logging.html +3 -3
- data/doc/Isimud/ModelWatcher/ClassMethods.html +3 -3
- data/doc/Isimud/ModelWatcher.html +2 -2
- data/doc/Isimud/Railtie.html +2 -2
- data/doc/Isimud/TestClient/Queue.html +374 -71
- data/doc/Isimud/TestClient.html +169 -161
- data/doc/Isimud.html +80 -76
- data/doc/_index.html +5 -2
- data/doc/file.LICENSE.html +73 -0
- data/doc/file.README.html +131 -7
- data/doc/file_list.html +3 -0
- data/doc/index.html +131 -7
- data/doc/method_list.html +183 -105
- data/doc/top-level-namespace.html +2 -2
- data/isimud.gemspec +18 -16
- data/lib/isimud/bunny_client.rb +85 -32
- data/lib/isimud/client.rb +23 -7
- data/lib/isimud/event.rb +11 -14
- data/lib/isimud/event_listener.rb +123 -65
- data/lib/isimud/event_observer.rb +70 -10
- data/lib/isimud/model_watcher.rb +1 -1
- data/lib/isimud/test_client.rb +54 -26
- data/lib/isimud/version.rb +1 -1
- data/lib/isimud.rb +1 -1
- data/spec/internal/app/models/company.rb +8 -10
- data/spec/internal/app/models/user.rb +11 -1
- data/spec/internal/db/schema.rb +5 -0
- data/spec/isimud/bunny_client_spec.rb +21 -9
- data/spec/isimud/client_spec.rb +40 -0
- data/spec/isimud/event_listener_spec.rb +50 -22
- data/spec/isimud/event_observer_spec.rb +107 -16
- data/spec/isimud/model_watcher_spec.rb +18 -23
- data/spec/isimud/test_client_spec.rb +43 -8
- data/spec/isimud_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -0
- metadata +19 -35
- checksums.yaml.gz.sig +0 -0
- data/certs/gfeil.pem +0 -21
- data/release +0 -31
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -2
data/doc/Isimud.html
CHANGED
@@ -95,6 +95,10 @@
|
|
95
95
|
|
96
96
|
<p>Module for attaching and listening to events</p>
|
97
97
|
|
98
|
+
<p>Note: the following columns must be defined in your model:</p>
|
99
|
+
|
100
|
+
<pre class="code ruby"><code class="ruby">:exchange_routing_keys text</code></pre>
|
101
|
+
|
98
102
|
|
99
103
|
</div>
|
100
104
|
</div>
|
@@ -121,7 +125,7 @@
|
|
121
125
|
<dt id="VERSION-constant" class="">VERSION =
|
122
126
|
|
123
127
|
</dt>
|
124
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>
|
128
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>1.3.1</span><span class='tstring_end'>'</span></span></pre></dd>
|
125
129
|
|
126
130
|
</dl>
|
127
131
|
|
@@ -696,12 +700,12 @@ href="Rails.env">Rails.configuration.database_configuration</a>['database
|
|
696
700
|
<pre class="lines">
|
697
701
|
|
698
702
|
|
699
|
-
|
700
|
-
|
701
|
-
|
703
|
+
32
|
704
|
+
33
|
705
|
+
34</pre>
|
702
706
|
</td>
|
703
707
|
<td>
|
704
|
-
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line
|
708
|
+
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line 32</span>
|
705
709
|
|
706
710
|
<span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
|
707
711
|
<span class='symbol'>:bunny</span>
|
@@ -757,12 +761,12 @@ href="Rails.env">Rails.configuration.database_configuration</a>['database
|
|
757
761
|
<pre class="lines">
|
758
762
|
|
759
763
|
|
760
|
-
|
761
|
-
|
762
|
-
|
764
|
+
32
|
765
|
+
33
|
766
|
+
34</pre>
|
763
767
|
</td>
|
764
768
|
<td>
|
765
|
-
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line
|
769
|
+
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line 32</span>
|
766
770
|
|
767
771
|
<span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
|
768
772
|
<span class='symbol'>:bunny</span>
|
@@ -818,12 +822,12 @@ href="Rails.env">Rails.configuration.database_configuration</a>['database
|
|
818
822
|
<pre class="lines">
|
819
823
|
|
820
824
|
|
821
|
-
|
822
|
-
|
823
|
-
|
825
|
+
32
|
826
|
+
33
|
827
|
+
34</pre>
|
824
828
|
</td>
|
825
829
|
<td>
|
826
|
-
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line
|
830
|
+
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line 32</span>
|
827
831
|
|
828
832
|
<span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
|
829
833
|
<span class='symbol'>:bunny</span>
|
@@ -879,12 +883,12 @@ href="Rails.env">Rails.configuration.database_configuration</a>['database
|
|
879
883
|
<pre class="lines">
|
880
884
|
|
881
885
|
|
882
|
-
|
883
|
-
|
884
|
-
|
886
|
+
32
|
887
|
+
33
|
888
|
+
34</pre>
|
885
889
|
</td>
|
886
890
|
<td>
|
887
|
-
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line
|
891
|
+
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line 32</span>
|
888
892
|
|
889
893
|
<span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
|
890
894
|
<span class='symbol'>:bunny</span>
|
@@ -940,12 +944,12 @@ href="Rails.env">Rails.configuration.database_configuration</a>['database
|
|
940
944
|
<pre class="lines">
|
941
945
|
|
942
946
|
|
943
|
-
|
944
|
-
|
945
|
-
|
947
|
+
32
|
948
|
+
33
|
949
|
+
34</pre>
|
946
950
|
</td>
|
947
951
|
<td>
|
948
|
-
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line
|
952
|
+
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line 32</span>
|
949
953
|
|
950
954
|
<span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
|
951
955
|
<span class='symbol'>:bunny</span>
|
@@ -1003,12 +1007,12 @@ down (100)</p>
|
|
1003
1007
|
<pre class="lines">
|
1004
1008
|
|
1005
1009
|
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1010
|
+
32
|
1011
|
+
33
|
1012
|
+
34</pre>
|
1009
1013
|
</td>
|
1010
1014
|
<td>
|
1011
|
-
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line
|
1015
|
+
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line 32</span>
|
1012
1016
|
|
1013
1017
|
<span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
|
1014
1018
|
<span class='symbol'>:bunny</span>
|
@@ -1064,12 +1068,12 @@ down (100)</p>
|
|
1064
1068
|
<pre class="lines">
|
1065
1069
|
|
1066
1070
|
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1071
|
+
32
|
1072
|
+
33
|
1073
|
+
34</pre>
|
1070
1074
|
</td>
|
1071
1075
|
<td>
|
1072
|
-
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line
|
1076
|
+
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line 32</span>
|
1073
1077
|
|
1074
1078
|
<span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
|
1075
1079
|
<span class='symbol'>:bunny</span>
|
@@ -1125,12 +1129,12 @@ down (100)</p>
|
|
1125
1129
|
<pre class="lines">
|
1126
1130
|
|
1127
1131
|
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1132
|
+
32
|
1133
|
+
33
|
1134
|
+
34</pre>
|
1131
1135
|
</td>
|
1132
1136
|
<td>
|
1133
|
-
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line
|
1137
|
+
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line 32</span>
|
1134
1138
|
|
1135
1139
|
<span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
|
1136
1140
|
<span class='symbol'>:bunny</span>
|
@@ -1186,12 +1190,12 @@ down (100)</p>
|
|
1186
1190
|
<pre class="lines">
|
1187
1191
|
|
1188
1192
|
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1193
|
+
32
|
1194
|
+
33
|
1195
|
+
34</pre>
|
1192
1196
|
</td>
|
1193
1197
|
<td>
|
1194
|
-
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line
|
1198
|
+
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line 32</span>
|
1195
1199
|
|
1196
1200
|
<span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
|
1197
1201
|
<span class='symbol'>:bunny</span>
|
@@ -1249,12 +1253,12 @@ href="Rails.env">Rails.configuration.database_configuration</a>['database
|
|
1249
1253
|
<pre class="lines">
|
1250
1254
|
|
1251
1255
|
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1256
|
+
32
|
1257
|
+
33
|
1258
|
+
34</pre>
|
1255
1259
|
</td>
|
1256
1260
|
<td>
|
1257
|
-
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line
|
1261
|
+
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line 32</span>
|
1258
1262
|
|
1259
1263
|
<span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
|
1260
1264
|
<span class='symbol'>:bunny</span>
|
@@ -1310,12 +1314,12 @@ href="Rails.env">Rails.configuration.database_configuration</a>['database
|
|
1310
1314
|
<pre class="lines">
|
1311
1315
|
|
1312
1316
|
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1317
|
+
32
|
1318
|
+
33
|
1319
|
+
34</pre>
|
1316
1320
|
</td>
|
1317
1321
|
<td>
|
1318
|
-
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line
|
1322
|
+
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line 32</span>
|
1319
1323
|
|
1320
1324
|
<span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
|
1321
1325
|
<span class='symbol'>:bunny</span>
|
@@ -1372,12 +1376,12 @@ it</p>
|
|
1372
1376
|
<pre class="lines">
|
1373
1377
|
|
1374
1378
|
|
1375
|
-
|
1376
|
-
|
1377
|
-
|
1379
|
+
32
|
1380
|
+
33
|
1381
|
+
34</pre>
|
1378
1382
|
</td>
|
1379
1383
|
<td>
|
1380
|
-
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line
|
1384
|
+
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line 32</span>
|
1381
1385
|
|
1382
1386
|
<span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
|
1383
1387
|
<span class='symbol'>:bunny</span>
|
@@ -1433,12 +1437,12 @@ it</p>
|
|
1433
1437
|
<pre class="lines">
|
1434
1438
|
|
1435
1439
|
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1440
|
+
32
|
1441
|
+
33
|
1442
|
+
34</pre>
|
1439
1443
|
</td>
|
1440
1444
|
<td>
|
1441
|
-
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line
|
1445
|
+
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line 32</span>
|
1442
1446
|
|
1443
1447
|
<span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
|
1444
1448
|
<span class='symbol'>:bunny</span>
|
@@ -1499,12 +1503,12 @@ it</p>
|
|
1499
1503
|
<pre class="lines">
|
1500
1504
|
|
1501
1505
|
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1506
|
+
65
|
1507
|
+
66
|
1508
|
+
67</pre>
|
1505
1509
|
</td>
|
1506
1510
|
<td>
|
1507
|
-
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line
|
1511
|
+
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line 65</span>
|
1508
1512
|
|
1509
1513
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_client'>client</span>
|
1510
1514
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_default_client'>default_client</span> <span class='op'>||=</span> <span class='id identifier rubyid_client_class'>client_class</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_server'>server</span><span class='comma'>,</span> <span class='id identifier rubyid_client_options'>client_options</span> <span class='op'>||</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
@@ -1529,13 +1533,13 @@ it</p>
|
|
1529
1533
|
<pre class="lines">
|
1530
1534
|
|
1531
1535
|
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1536
|
+
58
|
1537
|
+
59
|
1538
|
+
60
|
1539
|
+
61</pre>
|
1536
1540
|
</td>
|
1537
1541
|
<td>
|
1538
|
-
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line
|
1542
|
+
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line 58</span>
|
1539
1543
|
|
1540
1544
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_client_class'>client_class</span>
|
1541
1545
|
<span class='id identifier rubyid_type'>type</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_client_type'>client_type</span><span class='embexpr_end'>}</span><span class='tstring_content'>_client</span><span class='tstring_end'>"</span></span><span class='period'>.</span><span class='id identifier rubyid_classify'>classify</span>
|
@@ -1572,12 +1576,12 @@ it</p>
|
|
1572
1576
|
<pre class="lines">
|
1573
1577
|
|
1574
1578
|
|
1575
|
-
|
1576
|
-
|
1577
|
-
|
1579
|
+
70
|
1580
|
+
71
|
1581
|
+
72</pre>
|
1578
1582
|
</td>
|
1579
1583
|
<td>
|
1580
|
-
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line
|
1584
|
+
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line 70</span>
|
1581
1585
|
|
1582
1586
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_connect'>connect</span>
|
1583
1587
|
<span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_connect'>connect</span>
|
@@ -1626,12 +1630,12 @@ it</p>
|
|
1626
1630
|
<pre class="lines">
|
1627
1631
|
|
1628
1632
|
|
1629
|
-
|
1630
|
-
|
1631
|
-
|
1633
|
+
75
|
1634
|
+
76
|
1635
|
+
77</pre>
|
1632
1636
|
</td>
|
1633
1637
|
<td>
|
1634
|
-
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line
|
1638
|
+
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line 75</span>
|
1635
1639
|
|
1636
1640
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_model_watcher_enabled?'>model_watcher_enabled?</span>
|
1637
1641
|
<span class='id identifier rubyid_enable_model_watcher'>enable_model_watcher</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span> <span class='id identifier rubyid_enable_model_watcher'>enable_model_watcher</span>
|
@@ -1667,12 +1671,12 @@ it</p>
|
|
1667
1671
|
<pre class="lines">
|
1668
1672
|
|
1669
1673
|
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1674
|
+
80
|
1675
|
+
81
|
1676
|
+
82</pre>
|
1673
1677
|
</td>
|
1674
1678
|
<td>
|
1675
|
-
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line
|
1679
|
+
<pre class="code"><span class="info file"># File 'lib/isimud.rb', line 80</span>
|
1676
1680
|
|
1677
1681
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_reconnect'>reconnect</span>
|
1678
1682
|
<span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_reconnect'>reconnect</span>
|
@@ -1687,9 +1691,9 @@ it</p>
|
|
1687
1691
|
</div>
|
1688
1692
|
|
1689
1693
|
<div id="footer">
|
1690
|
-
Generated on
|
1694
|
+
Generated on Wed Jan 13 16:27:29 2016 by
|
1691
1695
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1692
|
-
0.8.7.6 (ruby-2.2.
|
1696
|
+
0.8.7.6 (ruby-2.2.3).
|
1693
1697
|
</div>
|
1694
1698
|
|
1695
1699
|
</body>
|
data/doc/_index.html
CHANGED
@@ -67,6 +67,9 @@
|
|
67
67
|
<li class="r1"><a href="index.html" title="README">README</a></li>
|
68
68
|
|
69
69
|
|
70
|
+
<li class="r2"><a href="file.LICENSE.html" title="LICENSE">LICENSE</a></li>
|
71
|
+
|
72
|
+
|
70
73
|
</ul>
|
71
74
|
|
72
75
|
<div class="clear"></div>
|
@@ -281,9 +284,9 @@
|
|
281
284
|
</div>
|
282
285
|
|
283
286
|
<div id="footer">
|
284
|
-
Generated on
|
287
|
+
Generated on Wed Jan 13 16:27:28 2016 by
|
285
288
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
286
|
-
0.8.7.6 (ruby-2.2.
|
289
|
+
0.8.7.6 (ruby-2.2.3).
|
287
290
|
</div>
|
288
291
|
|
289
292
|
</body>
|
@@ -0,0 +1,73 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
+
<title>
|
7
|
+
File: LICENSE
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '';
|
20
|
+
framesUrl = "frames.html#!file.LICENSE.html";
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="_index.html">Index</a> »
|
35
|
+
<span class="title">File: LICENSE</span>
|
36
|
+
|
37
|
+
|
38
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div id="search">
|
42
|
+
|
43
|
+
<a class="full_list_link" id="class_list_link"
|
44
|
+
href="class_list.html">
|
45
|
+
Class List
|
46
|
+
</a>
|
47
|
+
|
48
|
+
<a class="full_list_link" id="method_list_link"
|
49
|
+
href="method_list.html">
|
50
|
+
Method List
|
51
|
+
</a>
|
52
|
+
|
53
|
+
<a class="full_list_link" id="file_list_link"
|
54
|
+
href="file_list.html">
|
55
|
+
File List
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<iframe id="search_frame"></iframe>
|
63
|
+
|
64
|
+
<div id="content"><div id='filecontents'>Copyright (c) 2016 Keas Inc.<br/><br/>Permission is hereby granted, free of charge, to any person obtaining a copy<br/>of this software and associated documentation files (the "Software"), to deal<br/>in the Software without restriction, including without limitation the rights<br/>to use, copy, modify, merge, publish, distribute, sublicense, and/or sell<br/>copies of the Software, and to permit persons to whom the Software is<br/>furnished to do so, subject to the following conditions:<br/><br/>The above copyright notice and this permission notice shall be included in all<br/>copies or substantial portions of the Software.<br/><br/>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br/>IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br/>FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE<br/>AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br/>LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,<br/>OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE<br/>SOFTWARE.</div></div>
|
65
|
+
|
66
|
+
<div id="footer">
|
67
|
+
Generated on Wed Jan 13 16:27:28 2016 by
|
68
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
69
|
+
0.8.7.6 (ruby-2.2.3).
|
70
|
+
</div>
|
71
|
+
|
72
|
+
</body>
|
73
|
+
</html>
|
data/doc/file.README.html
CHANGED
@@ -62,7 +62,7 @@
|
|
62
62
|
<iframe id="search_frame"></iframe>
|
63
63
|
|
64
64
|
<div id="content"><div id='filecontents'>
|
65
|
-
<h1 id="label-Isimud-3A+AMQP+based+Messaging+
|
65
|
+
<h1 id="label-Isimud-3A+AMQP+based+Messaging+and+Event+Processing+Abstraction+Component.">Isimud: AMQP based Messaging and Event Processing Abstraction Component.</h1>
|
66
66
|
|
67
67
|
<blockquote>
|
68
68
|
<p>Isimud is a minor god, the messenger of the god Enki in Sumerian mythology.
|
@@ -87,7 +87,8 @@ whenever an ActiveRecord instance is created, modified, or destroyed.</p>
|
|
87
87
|
<p>An Event Observer mixin for registering ActiveRecord models and instances
|
88
88
|
with the EventListener for receiving messages.</p>
|
89
89
|
</li><li>
|
90
|
-
<p>An Event Listener daemon process which manages queues
|
90
|
+
<p>An Event Listener daemon process which manages queues and dispatches
|
91
|
+
messages for Event Observers.</p>
|
91
92
|
</li></ul>
|
92
93
|
|
93
94
|
<h2 id="label-Installation">Installation</h2>
|
@@ -161,9 +162,132 @@ messages. Named queues are automatically created if they do not exist.</p>
|
|
161
162
|
|
162
163
|
<h2 id="label-Changes">Changes</h2>
|
163
164
|
|
164
|
-
<h3 id="label-
|
165
|
+
<h3 id="label-1.3.1">1.3.1</h3>
|
165
166
|
<ul><li>
|
166
|
-
<p>
|
167
|
+
<p>Add EventObserver#deactivate_observer to trigger queue deletion for an
|
168
|
+
observer instance.</p>
|
169
|
+
</li></ul>
|
170
|
+
|
171
|
+
<h3 id="label-1.3.0">1.3.0</h3>
|
172
|
+
<ul><li>
|
173
|
+
<p>Added a new method, EventListener#bind_event_queues() for registering
|
174
|
+
custom event handlers. Override this method instead of bind_queues() to
|
175
|
+
bind custom queues not handled by EventObserver instances.</p>
|
176
|
+
</li><li>
|
177
|
+
<p>Add local host name to the EventListener observer queue to avoid possible
|
178
|
+
collisions caused by processes on different hosts sharing the same PID.</p>
|
179
|
+
</li><li>
|
180
|
+
<p>Added lots of documentation.</p>
|
181
|
+
</li></ul>
|
182
|
+
|
183
|
+
<h3 id="label-1.2.1">1.2.1</h3>
|
184
|
+
<ul><li>
|
185
|
+
<p>Include attributes in ModelWatcher destroy message</p>
|
186
|
+
</li></ul>
|
187
|
+
|
188
|
+
<h3 id="label-1.2.0">1.2.0</h3>
|
189
|
+
<ul><li>
|
190
|
+
<p>EventObserver#update_queue now always binds current routing keys. This
|
191
|
+
ensures that when an enable_listener? changes state from false to true
|
192
|
+
during an update, all bindings for the queue are established.</p>
|
193
|
+
</li><li>
|
194
|
+
<p>Add EventObserver#activate_observer(), which creates and binds a queue for
|
195
|
+
an observer instance on demand.</p>
|
196
|
+
</li><li>
|
197
|
+
<p>Add declaration for Client#find_queue, and normalize the method signature
|
198
|
+
for subclasses.</p>
|
199
|
+
</li></ul>
|
200
|
+
|
201
|
+
<h3 id="label-1.1.0">1.1.0</h3>
|
202
|
+
<ul><li>
|
203
|
+
<p>Clients now support multiple exception handlers. Each call to
|
204
|
+
Client#on_exception will add a new block to the exception handlers list</p>
|
205
|
+
</li></ul>
|
206
|
+
|
207
|
+
<h3 id="label-1.0.2">1.0.2</h3>
|
208
|
+
|
209
|
+
<h4 id="label-Breaking+Changes-3A">Breaking Changes:</h4>
|
210
|
+
<ul><li>
|
211
|
+
<p>EventObserver instances are now required to have the persistent attribute
|
212
|
+
/exchange_routing_keys/. These are used to store the current value of
|
213
|
+
routing keys assoicated with an instance. The queue associated with an
|
214
|
+
EventObserver is now created and updated at the same time the
|
215
|
+
EventObserver is updated, rather than relying on the EventListener to
|
216
|
+
create it.</p>
|
217
|
+
</li><li>
|
218
|
+
<p>EventObserver#observe_events now has only one parameter, the Isimud::Client
|
219
|
+
instance. No queue bindings are done within this method.</p>
|
220
|
+
</li><li>
|
221
|
+
<p>Client#bind has been refactored in order to separate concerns. A new
|
222
|
+
method, #subscribe, is now used for subscribing to messages by linking a
|
223
|
+
Proc.</p>
|
224
|
+
</li><li>
|
225
|
+
<p>Client#create_queue no longer accepts a block parameter and does not
|
226
|
+
subscribe to messages.</p>
|
227
|
+
</li><li>
|
228
|
+
<p>Removed Client#rebind.</p>
|
229
|
+
</li></ul>
|
230
|
+
|
231
|
+
<h4 id="label-Other+Changes-3A">Other Changes:</h4>
|
232
|
+
<ul><li>
|
233
|
+
<p>TestClient::Queue now responds to bind() and unbind() in the same manner as
|
234
|
+
Bunny::Queue.</p>
|
235
|
+
</li><li>
|
236
|
+
<p>BunnyClient#create_queue now may be called without a block to instantiate
|
237
|
+
an AMQP queue without subscribing to messages</p>
|
238
|
+
</li></ul>
|
239
|
+
|
240
|
+
<h3 id="label-0.6.0+-28broken-29">0.6.0 (broken)</h3>
|
241
|
+
<ul><li>
|
242
|
+
<p>Added Client#rebind to change the exchange and routing keys for a durable
|
243
|
+
named queue.</p>
|
244
|
+
</li><li>
|
245
|
+
<p>Changed BunnyClient#delete_queue to make it more reliable.</p>
|
246
|
+
</li><li>
|
247
|
+
<p>EventListener now uses a shared, durable queue for monitoring events on
|
248
|
+
modified EventObserver instances.</p>
|
249
|
+
</li></ul>
|
250
|
+
|
251
|
+
<h3 id="label-0.5.2">0.5.2</h3>
|
252
|
+
<ul><li>
|
253
|
+
<p>Fixed regexp bug in TestClient affecting message delivery</p>
|
254
|
+
</li><li>
|
255
|
+
<p>Add more logging for EventObserver binding</p>
|
256
|
+
</li></ul>
|
257
|
+
|
258
|
+
<h3 id="label-0.5.1">0.5.1</h3>
|
259
|
+
<ul><li>
|
260
|
+
<p>Added Event#attributes</p>
|
261
|
+
</li></ul>
|
262
|
+
|
263
|
+
<h3 id="label-0.5.0">0.5.0</h3>
|
264
|
+
<ul><li>
|
265
|
+
<p>Allow EventObserver classes to override the exchange for listening to
|
266
|
+
events</p>
|
267
|
+
</li><li>
|
268
|
+
<p>Corrected initialization of EventListener for handling defaults</p>
|
269
|
+
</li><li>
|
270
|
+
<p>Create an explicit name for EventListener model queues for EventObserver
|
271
|
+
instances</p>
|
272
|
+
</li><li>
|
273
|
+
<p>Fixed a bug in EventObserver that caused ModelWatcher to not send update
|
274
|
+
events appropriately when default columns are watched</p>
|
275
|
+
</li><li>
|
276
|
+
<p>Moved requires for Isimud below config attribute declarations</p>
|
277
|
+
</li></ul>
|
278
|
+
|
279
|
+
<h3 id="label-0.4.10">0.4.10</h3>
|
280
|
+
<ul><li>
|
281
|
+
<p>Corrected trap of INT and TERM signals</p>
|
282
|
+
</li><li>
|
283
|
+
<p>Added error counter mutex and cleaned up logging</p>
|
284
|
+
</li><li>
|
285
|
+
<p>Corrected race condition for registering EventObserver classes</p>
|
286
|
+
</li></ul>
|
287
|
+
|
288
|
+
<h3 id="label-0.4.5">0.4.5</h3>
|
289
|
+
<ul><li>
|
290
|
+
<p>Fixed issues with exception handling</p>
|
167
291
|
</li></ul>
|
168
292
|
|
169
293
|
<h3 id="label-0.4.1">0.4.1</h3>
|
@@ -314,7 +438,7 @@ synchronization. Override to activate.</p>
|
|
314
438
|
<h2 id="label-Contributing">Contributing</h2>
|
315
439
|
<ol><li>
|
316
440
|
<p>Fork it ( <a
|
317
|
-
href="https://github.com/
|
441
|
+
href="https://github.com/KeasInc/isimud/fork">github.com/KeasInc/isimud/fork</a>
|
318
442
|
)</p>
|
319
443
|
</li><li>
|
320
444
|
<p>Create your feature branch (<code>git checkout -b my-new-feature</code>)</p>
|
@@ -329,9 +453,9 @@ feature'</code>)</p>
|
|
329
453
|
</div></div>
|
330
454
|
|
331
455
|
<div id="footer">
|
332
|
-
Generated on
|
456
|
+
Generated on Wed Jan 13 16:27:28 2016 by
|
333
457
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
334
|
-
0.8.7.6 (ruby-2.2.
|
458
|
+
0.8.7.6 (ruby-2.2.3).
|
335
459
|
</div>
|
336
460
|
|
337
461
|
</body>
|
data/doc/file_list.html
CHANGED