notifyhub 0.0.2 → 0.0.3
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 +7 -0
- data/CHANGELOG.rdoc +3 -0
- data/README.rdoc +7 -7
- data/doc/Notify.html +18 -18
- data/doc/NotifyHub/NotFound.html +2 -2
- data/doc/NotifyHub/Redefining.html +2 -2
- data/doc/NotifyHub.html +171 -100
- data/doc/NotifySet.html +52 -52
- data/doc/_index.html +1 -1
- data/doc/file.CHANGELOG.html +5 -2
- data/doc/file.README.html +11 -11
- data/doc/index.html +11 -11
- data/doc/method_list.html +16 -10
- data/doc/top-level-namespace.html +1 -1
- data/lib/notifyhub.rb +55 -46
- data/test/test_notifyhub.rb +11 -47
- metadata +26 -36
- data/Rakefile +0 -28
data/doc/NotifySet.html
CHANGED
@@ -102,7 +102,7 @@
|
|
102
102
|
<h2>Overview</h2><div class="docstring">
|
103
103
|
<div class="discussion">
|
104
104
|
|
105
|
-
<p>Notify object that includes disable/enable features.</p>
|
105
|
+
<p><span class='object_link'><a href="Notify.html" title="Notify (class)">Notify</a></span> object container that includes disable/enable features.</p>
|
106
106
|
|
107
107
|
|
108
108
|
</div>
|
@@ -138,7 +138,7 @@
|
|
138
138
|
|
139
139
|
|
140
140
|
<span class="summary_desc"><div class='inline'>
|
141
|
-
<p>Enable/disable
|
141
|
+
<p>Enable/disable <span class='object_link'><a href="" title="NotifySet (class)">NotifySet</a></span>.</p>
|
142
142
|
</div></span>
|
143
143
|
|
144
144
|
</li>
|
@@ -175,7 +175,7 @@
|
|
175
175
|
|
176
176
|
|
177
177
|
<span class="summary_desc"><div class='inline'>
|
178
|
-
<p>Get Notify by index.</p>
|
178
|
+
<p>Get <span class='object_link'><a href="Notify.html" title="Notify (class)">Notify</a></span> by index.</p>
|
179
179
|
</div></span>
|
180
180
|
|
181
181
|
</li>
|
@@ -201,7 +201,7 @@
|
|
201
201
|
|
202
202
|
|
203
203
|
<span class="summary_desc"><div class='inline'>
|
204
|
-
<p>Register Notify
|
204
|
+
<p>Register <span class='object_link'><a href="Notify.html" title="Notify (class)">Notify</a></span>.</p>
|
205
205
|
</div></span>
|
206
206
|
|
207
207
|
</li>
|
@@ -275,7 +275,7 @@
|
|
275
275
|
|
276
276
|
|
277
277
|
<span class="summary_desc"><div class='inline'>
|
278
|
-
<p>Run all notifiers in
|
278
|
+
<p>Run all notifiers in <span class='object_link'><a href="" title="NotifySet (class)">NotifySet</a></span>.</p>
|
279
279
|
</div></span>
|
280
280
|
|
281
281
|
</li>
|
@@ -359,14 +359,14 @@
|
|
359
359
|
<pre class="lines">
|
360
360
|
|
361
361
|
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
362
|
+
251
|
363
|
+
252
|
364
|
+
253
|
365
|
+
254
|
366
|
+
255</pre>
|
367
367
|
</td>
|
368
368
|
<td>
|
369
|
-
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line
|
369
|
+
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 251</span>
|
370
370
|
|
371
371
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_id'>id</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
372
372
|
<span class='ivar'>@id</span> <span class='op'>=</span> <span class='id identifier rubyid_id'>id</span>
|
@@ -397,7 +397,7 @@
|
|
397
397
|
</h3><div class="docstring">
|
398
398
|
<div class="discussion">
|
399
399
|
|
400
|
-
<p>Enable/disable
|
400
|
+
<p>Enable/disable <span class='object_link'><a href="" title="NotifySet (class)">NotifySet</a></span>.</p>
|
401
401
|
|
402
402
|
|
403
403
|
</div>
|
@@ -431,12 +431,12 @@
|
|
431
431
|
<pre class="lines">
|
432
432
|
|
433
433
|
|
434
|
-
|
435
|
-
|
436
|
-
|
434
|
+
245
|
435
|
+
246
|
436
|
+
247</pre>
|
437
437
|
</td>
|
438
438
|
<td>
|
439
|
-
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line
|
439
|
+
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 245</span>
|
440
440
|
|
441
441
|
<span class='kw'>def</span> <span class='id identifier rubyid_enable'>enable</span>
|
442
442
|
<span class='ivar'>@enable</span>
|
@@ -465,7 +465,7 @@
|
|
465
465
|
</h3><div class="docstring">
|
466
466
|
<div class="discussion">
|
467
467
|
|
468
|
-
<p>Get Notify by index.</p>
|
468
|
+
<p>Get <span class='object_link'><a href="Notify.html" title="Notify (class)">Notify</a></span> by index.</p>
|
469
469
|
|
470
470
|
|
471
471
|
</div>
|
@@ -479,12 +479,12 @@
|
|
479
479
|
<pre class="lines">
|
480
480
|
|
481
481
|
|
482
|
-
|
483
|
-
|
484
|
-
|
482
|
+
321
|
483
|
+
322
|
484
|
+
323</pre>
|
485
485
|
</td>
|
486
486
|
<td>
|
487
|
-
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line
|
487
|
+
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 321</span>
|
488
488
|
|
489
489
|
<span class='kw'>def</span> <span class='op'>[]</span><span class='lparen'>(</span> <span class='id identifier rubyid_idx'>idx</span> <span class='rparen'>)</span>
|
490
490
|
<span class='ivar'>@list</span><span class='lbracket'>[</span> <span class='id identifier rubyid_idx'>idx</span> <span class='rbracket'>]</span>
|
@@ -510,7 +510,7 @@
|
|
510
510
|
</h3><div class="docstring">
|
511
511
|
<div class="discussion">
|
512
512
|
|
513
|
-
<p>Register Notify
|
513
|
+
<p>Register <span class='object_link'><a href="Notify.html" title="Notify (class)">Notify</a></span>.</p>
|
514
514
|
|
515
515
|
|
516
516
|
</div>
|
@@ -530,7 +530,7 @@
|
|
530
530
|
|
531
531
|
—
|
532
532
|
<div class='inline'>
|
533
|
-
<p>Notify action.</p>
|
533
|
+
<p><span class='object_link'><a href="Notify.html" title="Notify (class)">Notify</a></span> action.</p>
|
534
534
|
</div>
|
535
535
|
|
536
536
|
</li>
|
@@ -544,14 +544,14 @@
|
|
544
544
|
<pre class="lines">
|
545
545
|
|
546
546
|
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
547
|
+
269
|
548
|
+
270
|
549
|
+
271
|
550
|
+
272
|
551
|
+
273</pre>
|
552
552
|
</td>
|
553
553
|
<td>
|
554
|
-
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line
|
554
|
+
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 269</span>
|
555
555
|
|
556
556
|
<span class='kw'>def</span> <span class='id identifier rubyid_action'>action</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_action'>action</span> <span class='rparen'>)</span>
|
557
557
|
<span class='id identifier rubyid_n'>n</span> <span class='op'>=</span> <span class='const'>Notify</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_action'>action</span> <span class='rparen'>)</span>
|
@@ -589,14 +589,14 @@
|
|
589
589
|
<pre class="lines">
|
590
590
|
|
591
591
|
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
592
|
+
313
|
593
|
+
314
|
594
|
+
315
|
595
|
+
316
|
596
|
+
317</pre>
|
597
597
|
</td>
|
598
598
|
<td>
|
599
|
-
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line
|
599
|
+
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 313</span>
|
600
600
|
|
601
601
|
<span class='kw'>def</span> <span class='id identifier rubyid_each'>each</span>
|
602
602
|
<span class='ivar'>@list</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_n'>n</span><span class='op'>|</span>
|
@@ -620,7 +620,7 @@
|
|
620
620
|
</h3><div class="docstring">
|
621
621
|
<div class="discussion">
|
622
622
|
|
623
|
-
<p>Run all notifiers in
|
623
|
+
<p>Run all notifiers in <span class='object_link'><a href="" title="NotifySet (class)">NotifySet</a></span>.</p>
|
624
624
|
|
625
625
|
|
626
626
|
</div>
|
@@ -672,11 +672,6 @@
|
|
672
672
|
<pre class="lines">
|
673
673
|
|
674
674
|
|
675
|
-
289
|
676
|
-
290
|
677
|
-
291
|
678
|
-
292
|
679
|
-
293
|
680
675
|
294
|
681
676
|
295
|
682
677
|
296
|
@@ -687,10 +682,15 @@
|
|
687
682
|
301
|
688
683
|
302
|
689
684
|
303
|
690
|
-
304
|
685
|
+
304
|
686
|
+
305
|
687
|
+
306
|
688
|
+
307
|
689
|
+
308
|
690
|
+
309</pre>
|
691
691
|
</td>
|
692
692
|
<td>
|
693
|
-
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line
|
693
|
+
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 294</span>
|
694
694
|
|
695
695
|
<span class='kw'>def</span> <span class='id identifier rubyid_notify'>notify</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
696
696
|
<span class='id identifier rubyid_ret'>ret</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -747,7 +747,7 @@
|
|
747
747
|
|
748
748
|
—
|
749
749
|
<div class='inline'>
|
750
|
-
<p>Notify to remove (all if not given).</p>
|
750
|
+
<p><span class='object_link'><a href="Notify.html" title="Notify (class)">Notify</a></span> to remove (all if not given).</p>
|
751
751
|
</div>
|
752
752
|
|
753
753
|
</li>
|
@@ -761,16 +761,16 @@
|
|
761
761
|
<pre class="lines">
|
762
762
|
|
763
763
|
|
764
|
-
277
|
765
|
-
278
|
766
|
-
279
|
767
|
-
280
|
768
|
-
281
|
769
764
|
282
|
770
|
-
283
|
765
|
+
283
|
766
|
+
284
|
767
|
+
285
|
768
|
+
286
|
769
|
+
287
|
770
|
+
288</pre>
|
771
771
|
</td>
|
772
772
|
<td>
|
773
|
-
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line
|
773
|
+
<pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 282</span>
|
774
774
|
|
775
775
|
<span class='kw'>def</span> <span class='id identifier rubyid_remove'>remove</span><span class='lparen'>(</span> <span class='id identifier rubyid_notify'>notify</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
776
776
|
<span class='kw'>if</span> <span class='id identifier rubyid_notify'>notify</span>
|
@@ -789,7 +789,7 @@
|
|
789
789
|
</div>
|
790
790
|
|
791
791
|
<div id="footer">
|
792
|
-
Generated on
|
792
|
+
Generated on Sun Nov 23 14:59:06 2014 by
|
793
793
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
794
794
|
0.8.6.1 (ruby-1.9.3).
|
795
795
|
</div>
|
data/doc/_index.html
CHANGED
@@ -136,7 +136,7 @@
|
|
136
136
|
</div>
|
137
137
|
|
138
138
|
<div id="footer">
|
139
|
-
Generated on
|
139
|
+
Generated on Sun Nov 23 14:59:06 2014 by
|
140
140
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
141
141
|
0.8.6.1 (ruby-1.9.3).
|
142
142
|
</div>
|
data/doc/file.CHANGELOG.html
CHANGED
@@ -63,7 +63,10 @@
|
|
63
63
|
|
64
64
|
<div id="content"><div id='filecontents'>
|
65
65
|
<h1>Version history</h1>
|
66
|
-
<dl class="rdoc-list"><dt>0.0.
|
66
|
+
<dl class="rdoc-list"><dt>0.0.3</dt>
|
67
|
+
<dd>
|
68
|
+
<p>Added version method. Documentation improvements.</p>
|
69
|
+
</dd><dt>0.0.2</dt>
|
67
70
|
<dd>
|
68
71
|
<p>Added Notify#ids to get list of NotifySet. NotifySet#notify returns a
|
69
72
|
single value with one Notify and an array of return values if multiple
|
@@ -75,7 +78,7 @@ Notify.</p>
|
|
75
78
|
</div></div>
|
76
79
|
|
77
80
|
<div id="footer">
|
78
|
-
Generated on
|
81
|
+
Generated on Sun Nov 23 14:59:06 2014 by
|
79
82
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
80
83
|
0.8.6.1 (ruby-1.9.3).
|
81
84
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -66,25 +66,25 @@
|
|
66
66
|
|
67
67
|
<h2>Description</h2>
|
68
68
|
|
69
|
-
<p>NotifyHub is a callback facility. NotifyHub is used by the informer to
|
70
|
-
notify clients about arbitrary events in the informer. NotifyHub contains
|
71
|
-
notification sets (NotifySet).</p>
|
69
|
+
<p><span class='object_link'><a href="NotifyHub.html" title="NotifyHub (class)">NotifyHub</a></span> is a callback facility. <span class='object_link'><a href="NotifyHub.html" title="NotifyHub (class)">NotifyHub</a></span> is used by the informer to
|
70
|
+
notify clients about arbitrary events in the informer. <span class='object_link'><a href="NotifyHub.html" title="NotifyHub (class)">NotifyHub</a></span> contains
|
71
|
+
notification sets (<span class='object_link'><a href="NotifySet.html" title="NotifySet (class)">NotifySet</a></span>).</p>
|
72
72
|
|
73
|
-
<p>NotifySet is identified by set ID and it can include one or many
|
74
|
-
notifications (Notify). Client defines the action performed at
|
75
|
-
(callback). Informer activates the notification when
|
76
|
-
occur.</p>
|
73
|
+
<p><span class='object_link'><a href="NotifySet.html" title="NotifySet (class)">NotifySet</a></span> is identified by set ID and it can include one or many
|
74
|
+
notifications (<span class='object_link'><a href="Notify.html" title="Notify (class)">Notify</a></span>). Client defines the action performed at
|
75
|
+
notification (callback). Informer activates the notification when
|
76
|
+
notification events occur.</p>
|
77
77
|
|
78
|
-
<p>Notifications can be enabled/disabled on different levels (NotifyHub
|
79
|
-
NotifySet
|
78
|
+
<p>Notifications can be enabled/disabled on different levels (<span class='object_link'><a href="NotifyHub.html" title="NotifyHub (class)">NotifyHub</a></span>,
|
79
|
+
<span class='object_link'><a href="NotifySet.html" title="NotifySet (class)">NotifySet</a></span>, and <span class='object_link'><a href="Notify.html" title="Notify (class)">Notify</a></span>).</p>
|
80
80
|
|
81
81
|
<h2>Documentation</h2>
|
82
82
|
|
83
|
-
<p>Main documentation is generated from NotifyHub source.</p>
|
83
|
+
<p>Main documentation is generated from <span class='object_link'><a href="NotifyHub.html" title="NotifyHub (class)">NotifyHub</a></span> source.</p>
|
84
84
|
</div></div>
|
85
85
|
|
86
86
|
<div id="footer">
|
87
|
-
Generated on
|
87
|
+
Generated on Sun Nov 23 14:59:06 2014 by
|
88
88
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
89
89
|
0.8.6.1 (ruby-1.9.3).
|
90
90
|
</div>
|
data/doc/index.html
CHANGED
@@ -66,25 +66,25 @@
|
|
66
66
|
|
67
67
|
<h2>Description</h2>
|
68
68
|
|
69
|
-
<p>NotifyHub is a callback facility. NotifyHub is used by the informer to
|
70
|
-
notify clients about arbitrary events in the informer. NotifyHub contains
|
71
|
-
notification sets (NotifySet).</p>
|
69
|
+
<p><span class='object_link'><a href="NotifyHub.html" title="NotifyHub (class)">NotifyHub</a></span> is a callback facility. <span class='object_link'><a href="NotifyHub.html" title="NotifyHub (class)">NotifyHub</a></span> is used by the informer to
|
70
|
+
notify clients about arbitrary events in the informer. <span class='object_link'><a href="NotifyHub.html" title="NotifyHub (class)">NotifyHub</a></span> contains
|
71
|
+
notification sets (<span class='object_link'><a href="NotifySet.html" title="NotifySet (class)">NotifySet</a></span>).</p>
|
72
72
|
|
73
|
-
<p>NotifySet is identified by set ID and it can include one or many
|
74
|
-
notifications (Notify). Client defines the action performed at
|
75
|
-
(callback). Informer activates the notification when
|
76
|
-
occur.</p>
|
73
|
+
<p><span class='object_link'><a href="NotifySet.html" title="NotifySet (class)">NotifySet</a></span> is identified by set ID and it can include one or many
|
74
|
+
notifications (<span class='object_link'><a href="Notify.html" title="Notify (class)">Notify</a></span>). Client defines the action performed at
|
75
|
+
notification (callback). Informer activates the notification when
|
76
|
+
notification events occur.</p>
|
77
77
|
|
78
|
-
<p>Notifications can be enabled/disabled on different levels (NotifyHub
|
79
|
-
NotifySet
|
78
|
+
<p>Notifications can be enabled/disabled on different levels (<span class='object_link'><a href="NotifyHub.html" title="NotifyHub (class)">NotifyHub</a></span>,
|
79
|
+
<span class='object_link'><a href="NotifySet.html" title="NotifySet (class)">NotifySet</a></span>, and <span class='object_link'><a href="Notify.html" title="Notify (class)">Notify</a></span>).</p>
|
80
80
|
|
81
81
|
<h2>Documentation</h2>
|
82
82
|
|
83
|
-
<p>Main documentation is generated from NotifyHub source.</p>
|
83
|
+
<p>Main documentation is generated from <span class='object_link'><a href="NotifyHub.html" title="NotifyHub (class)">NotifyHub</a></span> source.</p>
|
84
84
|
</div></div>
|
85
85
|
|
86
86
|
<div id="footer">
|
87
|
-
Generated on
|
87
|
+
Generated on Sun Nov 23 14:59:06 2014 by
|
88
88
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
89
89
|
0.8.6.1 (ruby-1.9.3).
|
90
90
|
</div>
|
data/doc/method_list.html
CHANGED
@@ -137,32 +137,32 @@
|
|
137
137
|
|
138
138
|
|
139
139
|
<li class="r2 ">
|
140
|
-
<span class='object_link'><a href="
|
141
|
-
<small>
|
140
|
+
<span class='object_link'><a href="NotifyHub.html#initialize-instance_method" title="NotifyHub#initialize (method)">#initialize</a></span>
|
141
|
+
<small>NotifyHub</small>
|
142
142
|
</li>
|
143
143
|
|
144
144
|
|
145
145
|
<li class="r1 ">
|
146
|
-
<span class='object_link'><a href="
|
147
|
-
<small>
|
146
|
+
<span class='object_link'><a href="Notify.html#initialize-instance_method" title="Notify#initialize (method)">#initialize</a></span>
|
147
|
+
<small>Notify</small>
|
148
148
|
</li>
|
149
149
|
|
150
150
|
|
151
151
|
<li class="r2 ">
|
152
|
-
<span class='object_link'><a href="
|
153
|
-
<small>
|
152
|
+
<span class='object_link'><a href="NotifySet.html#notify-instance_method" title="NotifySet#notify (method)">#notify</a></span>
|
153
|
+
<small>NotifySet</small>
|
154
154
|
</li>
|
155
155
|
|
156
156
|
|
157
157
|
<li class="r1 ">
|
158
|
-
<span class='object_link'><a href="
|
159
|
-
<small>
|
158
|
+
<span class='object_link'><a href="Notify.html#notify-instance_method" title="Notify#notify (method)">#notify</a></span>
|
159
|
+
<small>Notify</small>
|
160
160
|
</li>
|
161
161
|
|
162
162
|
|
163
163
|
<li class="r2 ">
|
164
|
-
<span class='object_link'><a href="
|
165
|
-
<small>
|
164
|
+
<span class='object_link'><a href="NotifyHub.html#notify-instance_method" title="NotifyHub#notify (method)">#notify</a></span>
|
165
|
+
<small>NotifyHub</small>
|
166
166
|
</li>
|
167
167
|
|
168
168
|
|
@@ -178,6 +178,12 @@
|
|
178
178
|
</li>
|
179
179
|
|
180
180
|
|
181
|
+
<li class="r1 ">
|
182
|
+
<span class='object_link'><a href="NotifyHub.html#version-class_method" title="NotifyHub.version (method)">version</a></span>
|
183
|
+
<small>NotifyHub</small>
|
184
|
+
</li>
|
185
|
+
|
186
|
+
|
181
187
|
</ul>
|
182
188
|
</div>
|
183
189
|
</body>
|
@@ -103,7 +103,7 @@
|
|
103
103
|
</div>
|
104
104
|
|
105
105
|
<div id="footer">
|
106
|
-
Generated on
|
106
|
+
Generated on Sun Nov 23 14:59:06 2014 by
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
108
108
|
0.8.6.1 (ruby-1.9.3).
|
109
109
|
</div>
|