ezmq 0.3.5 → 0.3.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84d37d09781072d12731c75c17ef3bbdc203ae10
4
- data.tar.gz: 76147c83421a34a26c80869b60460a345d390693
3
+ metadata.gz: 781daac7e68b2fed1dde07f9ae4ef822fd0ace3b
4
+ data.tar.gz: 11b07e2b25f322278cfa8c73254e90d652d91f91
5
5
  SHA512:
6
- metadata.gz: 89d4d72849550714498d1bb659cd3b20f886b5e5d8ead751066107783f5d168ce0adc0a140b1f47875a86010fbc50428c4a7d3b86fa5d2930b66c95792bcbda0
7
- data.tar.gz: 6ac46a7342a97f99bee176157c8752d557a10ae7e3f76d3e33eca89220c86b9aac2a8bd8454979c5b897dba3a9e74292e84a22480a9dd50aa885684765cb86f8
6
+ metadata.gz: 814754da7bb07a0a913df8b4cd11fe576352047d430f9f2cc0637039b706247761646e5939f2b068be2012baa26819c9f4f123576aee30911f12e1a3b5acc621
7
+ data.tar.gz: f91fae0a7de7176e1da8d9f412f0413b8e5f60a292881ee367df307a14825b14d8075e8dada6d5a6598679044e22c00134534c8fab505704ea813e798075cfbc
data/doc/EZMQ.html CHANGED
@@ -119,7 +119,7 @@
119
119
  </div>
120
120
 
121
121
  <div id="footer">
122
- Generated on Wed Jan 28 09:40:16 2015 by
122
+ Generated on Sat Jan 31 17:36:28 2015 by
123
123
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
124
124
  0.8.7.6 (ruby-2.0.0).
125
125
  </div>
data/doc/EZMQ/Client.html CHANGED
@@ -405,7 +405,7 @@
405
405
  </div>
406
406
 
407
407
  <div id="footer">
408
- Generated on Wed Jan 28 09:40:16 2015 by
408
+ Generated on Sat Jan 31 17:36:29 2015 by
409
409
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
410
410
  0.8.7.6 (ruby-2.0.0).
411
411
  </div>
@@ -196,12 +196,12 @@ protocol.</p>
196
196
  <pre class="lines">
197
197
 
198
198
 
199
- 16
200
- 17
201
- 18</pre>
199
+ 18
200
+ 19
201
+ 20</pre>
202
202
  </td>
203
203
  <td>
204
- <pre class="code"><span class="info file"># File 'lib/ezmq/context.rb', line 16</span>
204
+ <pre class="code"><span class="info file"># File 'lib/ezmq/context.rb', line 18</span>
205
205
 
206
206
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
207
207
  <span class='kw'>super</span>
@@ -217,7 +217,7 @@ protocol.</p>
217
217
  </div>
218
218
 
219
219
  <div id="footer">
220
- Generated on Wed Jan 28 09:40:16 2015 by
220
+ Generated on Sat Jan 31 17:36:29 2015 by
221
221
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
222
222
  0.8.7.6 (ruby-2.0.0).
223
223
  </div>
@@ -420,7 +420,7 @@
420
420
  </div>
421
421
 
422
422
  <div id="footer">
423
- Generated on Wed Jan 28 09:40:16 2015 by
423
+ Generated on Sat Jan 31 17:36:29 2015 by
424
424
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
425
425
  0.8.7.6 (ruby-2.0.0).
426
426
  </div>
data/doc/EZMQ/Puller.html CHANGED
@@ -267,7 +267,7 @@
267
267
  </div>
268
268
 
269
269
  <div id="footer">
270
- Generated on Wed Jan 28 09:40:16 2015 by
270
+ Generated on Sat Jan 31 17:36:28 2015 by
271
271
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
272
272
  0.8.7.6 (ruby-2.0.0).
273
273
  </div>
data/doc/EZMQ/Pusher.html CHANGED
@@ -267,7 +267,7 @@
267
267
  </div>
268
268
 
269
269
  <div id="footer">
270
- Generated on Wed Jan 28 09:40:16 2015 by
270
+ Generated on Sat Jan 31 17:36:28 2015 by
271
271
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
272
272
  0.8.7.6 (ruby-2.0.0).
273
273
  </div>
data/doc/EZMQ/Server.html CHANGED
@@ -390,7 +390,7 @@
390
390
  </div>
391
391
 
392
392
  <div id="footer">
393
- Generated on Wed Jan 28 09:40:16 2015 by
393
+ Generated on Sat Jan 31 17:36:28 2015 by
394
394
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
395
395
  0.8.7.6 (ruby-2.0.0).
396
396
  </div>
data/doc/EZMQ/Socket.html CHANGED
@@ -804,7 +804,8 @@ address instead.</p>
804
804
  <div class="note notetag">
805
805
  <strong>Note:</strong>
806
806
  <div class='inline'>
807
- <p>port is ignored unless protocol is either &#39;tcp&#39; or &#39;udp&#39;.</p>
807
+ <p>port is ignored unless protocol is one of &#39;tcp&#39;, &#39;pgm&#39; or
808
+ &#39;epgm&#39;.</p>
808
809
  </div>
809
810
  </div>
810
811
 
@@ -904,7 +905,7 @@ address instead.</p>
904
905
 
905
906
  <span class='kw'>def</span> <span class='id identifier rubyid_connect'>connect</span><span class='lparen'>(</span><span class='label'>protocol:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>tcp</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='label'>address:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>127.0.0.1</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='label'>port:</span> <span class='int'>5555</span><span class='rparen'>)</span>
906
907
  <span class='id identifier rubyid_endpoint'>endpoint</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span> <span class='id identifier rubyid_protocol'>protocol</span> <span class='embexpr_end'>}</span><span class='tstring_content'>://</span><span class='embexpr_beg'>#{</span> <span class='id identifier rubyid_address'>address</span> <span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
907
- <span class='id identifier rubyid_endpoint'>endpoint</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span> <span class='id identifier rubyid_endpoint'>endpoint</span> <span class='embexpr_end'>}</span><span class='tstring_content'>:</span><span class='embexpr_beg'>#{</span> <span class='id identifier rubyid_port'>port</span> <span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='qwords_beg'>%w(</span><span class='tstring_content'>tcp</span><span class='words_sep'> </span><span class='tstring_content'>udp</span><span class='words_sep'>)</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_protocol'>protocol</span>
908
+ <span class='id identifier rubyid_endpoint'>endpoint</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span> <span class='id identifier rubyid_endpoint'>endpoint</span> <span class='embexpr_end'>}</span><span class='tstring_content'>:</span><span class='embexpr_beg'>#{</span> <span class='id identifier rubyid_port'>port</span> <span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='qwords_beg'>%w(</span><span class='tstring_content'>tcp</span><span class='words_sep'> </span><span class='tstring_content'>pgm</span><span class='words_sep'> </span><span class='tstring_content'>epgm</span><span class='words_sep'>)</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_protocol'>protocol</span>
908
909
  <span class='ivar'>@socket</span><span class='period'>.</span><span class='id identifier rubyid_method'>method</span><span class='lparen'>(</span><span class='id identifier rubyid___callee__'>__callee__</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_endpoint'>endpoint</span><span class='rparen'>)</span> <span class='op'>==</span> <span class='int'>0</span>
909
910
  <span class='kw'>end</span></pre>
910
911
  </td>
@@ -1300,7 +1301,7 @@ address instead.</p>
1300
1301
  </div>
1301
1302
 
1302
1303
  <div id="footer">
1303
- Generated on Wed Jan 28 09:40:16 2015 by
1304
+ Generated on Sat Jan 31 17:36:29 2015 by
1304
1305
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1305
1306
  0.8.7.6 (ruby-2.0.0).
1306
1307
  </div>
@@ -116,41 +116,9 @@
116
116
 
117
117
 
118
118
 
119
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
120
- <ul class="summary">
121
-
122
- <li class="public ">
123
- <span class="summary_signature">
124
-
125
- <a href="#action-instance_method" title="#action (instance method)">- (Object) <strong>action</strong> </a>
126
-
127
-
128
-
129
- </span>
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
- <span class="summary_desc"><div class='inline'>
143
- <p>Returns the value of attribute action.</p>
144
- </div></span>
145
-
146
- </li>
147
-
148
-
149
- </ul>
150
119
 
151
120
 
152
-
153
-
121
+ <h2>Instance Attribute Summary</h2>
154
122
 
155
123
  <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Socket.html" title="EZMQ::Socket (class)">Socket</a></span></h3>
156
124
  <p class="inherited"><span class='object_link'><a href="Socket.html#context-instance_method" title="EZMQ::Socket#context (method)">#context</a></span>, <span class='object_link'><a href="Socket.html#decode-instance_method" title="EZMQ::Socket#decode (method)">#decode</a></span>, <span class='object_link'><a href="Socket.html#encode-instance_method" title="EZMQ::Socket#encode (method)">#encode</a></span>, <span class='object_link'><a href="Socket.html#socket-instance_method" title="EZMQ::Socket#socket (method)">#socket</a></span></p>
@@ -386,13 +354,13 @@
386
354
  <pre class="lines">
387
355
 
388
356
 
357
+ 17
358
+ 18
389
359
  19
390
- 20
391
- 21
392
- 22</pre>
360
+ 20</pre>
393
361
  </td>
394
362
  <td>
395
- <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 19</span>
363
+ <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 17</span>
396
364
 
397
365
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>**</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
398
366
  <span class='kw'>super</span> <span class='symbol'>:connect</span><span class='comma'>,</span> <span class='const'>ZMQ</span><span class='op'>::</span><span class='const'>SUB</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span>
@@ -405,54 +373,6 @@
405
373
 
406
374
  </div>
407
375
 
408
- <div id="instance_attr_details" class="attr_details">
409
- <h2>Instance Attribute Details</h2>
410
-
411
-
412
- <span id="action=-instance_method"></span>
413
- <div class="method_details first">
414
- <h3 class="signature first" id="action-instance_method">
415
-
416
- - (<tt>Object</tt>) <strong>action</strong>
417
-
418
-
419
-
420
-
421
-
422
- </h3><div class="docstring">
423
- <div class="discussion">
424
-
425
- <p>Returns the value of attribute action</p>
426
-
427
-
428
- </div>
429
- </div>
430
- <div class="tags">
431
-
432
-
433
- </div><table class="source_code">
434
- <tr>
435
- <td>
436
- <pre class="lines">
437
-
438
-
439
- 7
440
- 8
441
- 9</pre>
442
- </td>
443
- <td>
444
- <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 7</span>
445
-
446
- <span class='kw'>def</span> <span class='id identifier rubyid_action'>action</span>
447
- <span class='ivar'>@action</span>
448
- <span class='kw'>end</span></pre>
449
- </td>
450
- </tr>
451
- </table>
452
- </div>
453
-
454
- </div>
455
-
456
376
 
457
377
  <div id="instance_method_details" class="method_details_list">
458
378
  <h2>Instance Method Details</h2>
@@ -538,6 +458,8 @@
538
458
  <pre class="lines">
539
459
 
540
460
 
461
+ 57
462
+ 58
541
463
  59
542
464
  60
543
465
  61
@@ -545,12 +467,10 @@
545
467
  63
546
468
  64
547
469
  65
548
- 66
549
- 67
550
- 68</pre>
470
+ 66</pre>
551
471
  </td>
552
472
  <td>
553
- <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 59</span>
473
+ <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 57</span>
554
474
 
555
475
  <span class='kw'>def</span> <span class='id identifier rubyid_listen'>listen</span>
556
476
  <span class='id identifier rubyid_loop'>loop</span> <span class='kw'>do</span>
@@ -715,6 +635,8 @@
715
635
  <pre class="lines">
716
636
 
717
637
 
638
+ 35
639
+ 36
718
640
  37
719
641
  38
720
642
  39
@@ -725,12 +647,10 @@
725
647
  44
726
648
  45
727
649
  46
728
- 47
729
- 48
730
- 49</pre>
650
+ 47</pre>
731
651
  </td>
732
652
  <td>
733
- <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 37</span>
653
+ <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 35</span>
734
654
 
735
655
  <span class='kw'>def</span> <span class='id identifier rubyid_receive'>receive</span><span class='lparen'>(</span><span class='op'>**</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
736
656
  <span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
@@ -827,12 +747,12 @@ provided, #initialize calls #subscribe automatically.</p>
827
747
  <pre class="lines">
828
748
 
829
749
 
830
- 81
831
- 82
832
- 83</pre>
750
+ 79
751
+ 80
752
+ 81</pre>
833
753
  </td>
834
754
  <td>
835
- <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 81</span>
755
+ <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 79</span>
836
756
 
837
757
  <span class='kw'>def</span> <span class='id identifier rubyid_subscribe'>subscribe</span><span class='lparen'>(</span><span class='id identifier rubyid_topic'>topic</span><span class='rparen'>)</span>
838
758
  <span class='ivar'>@socket</span><span class='period'>.</span><span class='id identifier rubyid_setsockopt'>setsockopt</span><span class='lparen'>(</span><span class='const'>ZMQ</span><span class='op'>::</span><span class='const'>SUBSCRIBE</span><span class='comma'>,</span> <span class='id identifier rubyid_topic'>topic</span><span class='rparen'>)</span> <span class='op'>==</span> <span class='int'>0</span>
@@ -907,12 +827,12 @@ set, this will only remove one.</p>
907
827
  <pre class="lines">
908
828
 
909
829
 
910
- 92
911
- 93
912
- 94</pre>
830
+ 90
831
+ 91
832
+ 92</pre>
913
833
  </td>
914
834
  <td>
915
- <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 92</span>
835
+ <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 90</span>
916
836
 
917
837
  <span class='kw'>def</span> <span class='id identifier rubyid_unsubscribe'>unsubscribe</span><span class='lparen'>(</span><span class='id identifier rubyid_topic'>topic</span><span class='rparen'>)</span>
918
838
  <span class='ivar'>@socket</span><span class='period'>.</span><span class='id identifier rubyid_setsockopt'>setsockopt</span><span class='lparen'>(</span><span class='const'>ZMQ</span><span class='op'>::</span><span class='const'>UNSUBSCRIBE</span><span class='comma'>,</span> <span class='id identifier rubyid_topic'>topic</span><span class='rparen'>)</span> <span class='op'>==</span> <span class='int'>0</span>
@@ -927,7 +847,7 @@ set, this will only remove one.</p>
927
847
  </div>
928
848
 
929
849
  <div id="footer">
930
- Generated on Wed Jan 28 09:40:17 2015 by
850
+ Generated on Sat Jan 31 17:36:29 2015 by
931
851
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
932
852
  0.8.7.6 (ruby-2.0.0).
933
853
  </div>
data/doc/_index.html CHANGED
@@ -181,7 +181,7 @@
181
181
  </div>
182
182
 
183
183
  <div id="footer">
184
- Generated on Wed Jan 28 09:40:16 2015 by
184
+ Generated on Sat Jan 31 17:36:28 2015 by
185
185
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
186
186
  0.8.7.6 (ruby-2.0.0).
187
187
  </div>
data/doc/file.README.html CHANGED
@@ -230,7 +230,7 @@ sudo aptitude install libzmq3-dev
230
230
  </div></div>
231
231
 
232
232
  <div id="footer">
233
- Generated on Wed Jan 28 09:40:16 2015 by
233
+ Generated on Sat Jan 31 17:36:28 2015 by
234
234
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
235
235
  0.8.7.6 (ruby-2.0.0).
236
236
  </div>
data/doc/index.html CHANGED
@@ -230,7 +230,7 @@ sudo aptitude install libzmq3-dev
230
230
  </div></div>
231
231
 
232
232
  <div id="footer">
233
- Generated on Wed Jan 28 09:40:16 2015 by
233
+ Generated on Sat Jan 31 17:36:28 2015 by
234
234
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
235
235
  0.8.7.6 (ruby-2.0.0).
236
236
  </div>
data/doc/method_list.html CHANGED
@@ -52,50 +52,50 @@
52
52
 
53
53
 
54
54
  <li class="r1 ">
55
- <span class='object_link'><a href="EZMQ/Subscriber.html#action-instance_method" title="EZMQ::Subscriber#action (method)">#action</a></span>
56
- <small>EZMQ::Subscriber</small>
55
+ <span class='object_link'><a href="EZMQ/Socket.html#connect-instance_method" title="EZMQ::Socket#connect (method)">#connect</a></span>
56
+ <small>EZMQ::Socket</small>
57
57
  </li>
58
58
 
59
59
 
60
60
  <li class="r2 ">
61
- <span class='object_link'><a href="EZMQ/Socket.html#connect-instance_method" title="EZMQ::Socket#connect (method)">#connect</a></span>
61
+ <span class='object_link'><a href="EZMQ/Socket.html#context-instance_method" title="EZMQ::Socket#context (method)">#context</a></span>
62
62
  <small>EZMQ::Socket</small>
63
63
  </li>
64
64
 
65
65
 
66
66
  <li class="r1 ">
67
- <span class='object_link'><a href="EZMQ/Socket.html#context-instance_method" title="EZMQ::Socket#context (method)">#context</a></span>
67
+ <span class='object_link'><a href="EZMQ/Socket.html#decode-instance_method" title="EZMQ::Socket#decode (method)">#decode</a></span>
68
68
  <small>EZMQ::Socket</small>
69
69
  </li>
70
70
 
71
71
 
72
72
  <li class="r2 ">
73
- <span class='object_link'><a href="EZMQ/Socket.html#decode-instance_method" title="EZMQ::Socket#decode (method)">#decode</a></span>
73
+ <span class='object_link'><a href="EZMQ/Socket.html#encode-instance_method" title="EZMQ::Socket#encode (method)">#encode</a></span>
74
74
  <small>EZMQ::Socket</small>
75
75
  </li>
76
76
 
77
77
 
78
78
  <li class="r1 ">
79
- <span class='object_link'><a href="EZMQ/Socket.html#encode-instance_method" title="EZMQ::Socket#encode (method)">#encode</a></span>
80
- <small>EZMQ::Socket</small>
79
+ <span class='object_link'><a href="EZMQ/Pusher.html#initialize-instance_method" title="EZMQ::Pusher#initialize (method)">#initialize</a></span>
80
+ <small>EZMQ::Pusher</small>
81
81
  </li>
82
82
 
83
83
 
84
84
  <li class="r2 ">
85
- <span class='object_link'><a href="EZMQ/Pusher.html#initialize-instance_method" title="EZMQ::Pusher#initialize (method)">#initialize</a></span>
86
- <small>EZMQ::Pusher</small>
85
+ <span class='object_link'><a href="EZMQ/Client.html#initialize-instance_method" title="EZMQ::Client#initialize (method)">#initialize</a></span>
86
+ <small>EZMQ::Client</small>
87
87
  </li>
88
88
 
89
89
 
90
90
  <li class="r1 ">
91
- <span class='object_link'><a href="EZMQ/Context.html#initialize-instance_method" title="EZMQ::Context#initialize (method)">#initialize</a></span>
92
- <small>EZMQ::Context</small>
91
+ <span class='object_link'><a href="EZMQ/Server.html#initialize-instance_method" title="EZMQ::Server#initialize (method)">#initialize</a></span>
92
+ <small>EZMQ::Server</small>
93
93
  </li>
94
94
 
95
95
 
96
96
  <li class="r2 ">
97
- <span class='object_link'><a href="EZMQ/Publisher.html#initialize-instance_method" title="EZMQ::Publisher#initialize (method)">#initialize</a></span>
98
- <small>EZMQ::Publisher</small>
97
+ <span class='object_link'><a href="EZMQ/Puller.html#initialize-instance_method" title="EZMQ::Puller#initialize (method)">#initialize</a></span>
98
+ <small>EZMQ::Puller</small>
99
99
  </li>
100
100
 
101
101
 
@@ -106,25 +106,25 @@
106
106
 
107
107
 
108
108
  <li class="r2 ">
109
- <span class='object_link'><a href="EZMQ/Subscriber.html#initialize-instance_method" title="EZMQ::Subscriber#initialize (method)">#initialize</a></span>
110
- <small>EZMQ::Subscriber</small>
109
+ <span class='object_link'><a href="EZMQ/Context.html#initialize-instance_method" title="EZMQ::Context#initialize (method)">#initialize</a></span>
110
+ <small>EZMQ::Context</small>
111
111
  </li>
112
112
 
113
113
 
114
114
  <li class="r1 ">
115
- <span class='object_link'><a href="EZMQ/Client.html#initialize-instance_method" title="EZMQ::Client#initialize (method)">#initialize</a></span>
116
- <small>EZMQ::Client</small>
115
+ <span class='object_link'><a href="EZMQ/Publisher.html#initialize-instance_method" title="EZMQ::Publisher#initialize (method)">#initialize</a></span>
116
+ <small>EZMQ::Publisher</small>
117
117
  </li>
118
118
 
119
119
 
120
120
  <li class="r2 ">
121
- <span class='object_link'><a href="EZMQ/Puller.html#initialize-instance_method" title="EZMQ::Puller#initialize (method)">#initialize</a></span>
122
- <small>EZMQ::Puller</small>
121
+ <span class='object_link'><a href="EZMQ/Subscriber.html#initialize-instance_method" title="EZMQ::Subscriber#initialize (method)">#initialize</a></span>
122
+ <small>EZMQ::Subscriber</small>
123
123
  </li>
124
124
 
125
125
 
126
126
  <li class="r1 ">
127
- <span class='object_link'><a href="EZMQ/Server.html#initialize-instance_method" title="EZMQ::Server#initialize (method)">#initialize</a></span>
127
+ <span class='object_link'><a href="EZMQ/Server.html#listen-instance_method" title="EZMQ::Server#listen (method)">#listen</a></span>
128
128
  <small>EZMQ::Server</small>
129
129
  </li>
130
130
 
@@ -136,13 +136,13 @@
136
136
 
137
137
 
138
138
  <li class="r1 ">
139
- <span class='object_link'><a href="EZMQ/Server.html#listen-instance_method" title="EZMQ::Server#listen (method)">#listen</a></span>
140
- <small>EZMQ::Server</small>
139
+ <span class='object_link'><a href="EZMQ/Socket.html#listen-instance_method" title="EZMQ::Socket#listen (method)">#listen</a></span>
140
+ <small>EZMQ::Socket</small>
141
141
  </li>
142
142
 
143
143
 
144
144
  <li class="r2 ">
145
- <span class='object_link'><a href="EZMQ/Socket.html#listen-instance_method" title="EZMQ::Socket#listen (method)">#listen</a></span>
145
+ <span class='object_link'><a href="EZMQ/Socket.html#receive-instance_method" title="EZMQ::Socket#receive (method)">#receive</a></span>
146
146
  <small>EZMQ::Socket</small>
147
147
  </li>
148
148
 
@@ -154,42 +154,36 @@
154
154
 
155
155
 
156
156
  <li class="r2 ">
157
- <span class='object_link'><a href="EZMQ/Socket.html#receive-instance_method" title="EZMQ::Socket#receive (method)">#receive</a></span>
158
- <small>EZMQ::Socket</small>
159
- </li>
160
-
161
-
162
- <li class="r1 ">
163
157
  <span class='object_link'><a href="EZMQ/Client.html#request-instance_method" title="EZMQ::Client#request (method)">#request</a></span>
164
158
  <small>EZMQ::Client</small>
165
159
  </li>
166
160
 
167
161
 
168
- <li class="r2 ">
162
+ <li class="r1 ">
169
163
  <span class='object_link'><a href="EZMQ/Socket.html#send-instance_method" title="EZMQ::Socket#send (method)">#send</a></span>
170
164
  <small>EZMQ::Socket</small>
171
165
  </li>
172
166
 
173
167
 
174
- <li class="r1 ">
168
+ <li class="r2 ">
175
169
  <span class='object_link'><a href="EZMQ/Publisher.html#send-instance_method" title="EZMQ::Publisher#send (method)">#send</a></span>
176
170
  <small>EZMQ::Publisher</small>
177
171
  </li>
178
172
 
179
173
 
180
- <li class="r2 ">
174
+ <li class="r1 ">
181
175
  <span class='object_link'><a href="EZMQ/Socket.html#socket-instance_method" title="EZMQ::Socket#socket (method)">#socket</a></span>
182
176
  <small>EZMQ::Socket</small>
183
177
  </li>
184
178
 
185
179
 
186
- <li class="r1 ">
180
+ <li class="r2 ">
187
181
  <span class='object_link'><a href="EZMQ/Subscriber.html#subscribe-instance_method" title="EZMQ::Subscriber#subscribe (method)">#subscribe</a></span>
188
182
  <small>EZMQ::Subscriber</small>
189
183
  </li>
190
184
 
191
185
 
192
- <li class="r2 ">
186
+ <li class="r1 ">
193
187
  <span class='object_link'><a href="EZMQ/Subscriber.html#unsubscribe-instance_method" title="EZMQ::Subscriber#unsubscribe (method)">#unsubscribe</a></span>
194
188
  <small>EZMQ::Subscriber</small>
195
189
  </li>
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Wed Jan 28 09:40:16 2015 by
106
+ Generated on Sat Jan 31 17:36:28 2015 by
107
107
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
108
  0.8.7.6 (ruby-2.0.0).
109
109
  </div>
data/ezmq.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'ezmq'
3
- gem.version = '0.3.5'
3
+ gem.version = '0.3.6'
4
4
  gem.licenses = 'MIT'
5
5
  gem.authors = ['Chris Olstrom']
6
6
  gem.email = 'chris@olstrom.com'
data/lib/ezmq/socket.rb CHANGED
@@ -81,13 +81,13 @@ module EZMQ
81
81
  # @note Binding to 'localhost' is not consistent on all platforms.
82
82
  # Prefer '127.0.0.1' instead.
83
83
  # @param [Fixnum] port (5555) port for endpoint.
84
- # @note port is ignored unless protocol is either 'tcp' or 'udp'.
84
+ # @note port is ignored unless protocol is one of 'tcp', 'pgm' or 'epgm'.
85
85
  #
86
86
  # @return [Boolean] was connection successful?
87
87
  #
88
88
  def connect(protocol: 'tcp', address: '127.0.0.1', port: 5555)
89
89
  endpoint = "#{ protocol }://#{ address }"
90
- endpoint = "#{ endpoint }:#{ port }" if %w(tcp udp).include? protocol
90
+ endpoint = "#{ endpoint }:#{ port }" if %w(tcp pgm epgm).include? protocol
91
91
  @socket.method(__callee__).call(endpoint) == 0
92
92
  end
93
93
 
@@ -4,8 +4,6 @@ require_relative 'socket'
4
4
  module EZMQ
5
5
  # Subscribe socket that listens for messages with an optional topic.
6
6
  class Subscriber < EZMQ::Socket
7
- attr_accessor :action
8
-
9
7
  # Creates a new Subscriber socket.
10
8
  #
11
9
  # @note The default behaviour is to output and messages received to STDOUT.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ezmq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Olstrom
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-29 00:00:00.000000000 Z
11
+ date: 2015-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi-rzmq