ionian 0.6.6 → 0.6.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1cb36e7af34abe393cc46d7f30ce072f409a5c9b
4
- data.tar.gz: d65cc6850c15fc177751cd29a9594ae47cdd4d8a
3
+ metadata.gz: 95ac61e4a16848fa09157e5f6de7f9481b7063e6
4
+ data.tar.gz: 7da05109ffd20a04f51e26874cf993124a7bb405
5
5
  SHA512:
6
- metadata.gz: 1dfb53195818fe11aedad450bafdaefe9c72e34ee2394e5aed5fa78db750a2a417bc88151534da055f1395d70eea8e46d0e7dc4fd3020fa7b86ad622a761fa39
7
- data.tar.gz: 287ba033ae14c028c1c58b9ca7ca838341a61181ef078f4c1914f4908abc17b0b519e030a2cb10ce83c934176b0047fb5e2103485da615eb2f4e38636457f2bf
6
+ metadata.gz: e3d86b5bc9d85cc350949bf1d8eb54fd9dcc4a054f35d00ee58a0721d12454c60d739c95a520acdac237ee838424f37732b1f6df32e765161adecb368b12437a
7
+ data.tar.gz: c9bc819e31ef1c8d71f8f365a1f9b06beeee17af9ec94d87cf0538b1bc469bfa4586415dbc84df244ecc7296a63e54af337eab321e10d962bc5774c2690804c3
@@ -302,7 +302,7 @@ implement the standard library IO class. my_socket.extend Ionian::IO</p>
302
302
  <li class="public ">
303
303
  <span class="summary_signature">
304
304
 
305
- <a href="#read_all-instance_method" title="#read_all (instance method)">- (Object) <strong>read_all</strong> </a>
305
+ <a href="#read_all-instance_method" title="#read_all (instance method)">- (Object) <strong>read_all</strong>(nonblocking: false) </a>
306
306
 
307
307
 
308
308
 
@@ -458,12 +458,12 @@ standard library IO::select.</p>
458
458
  <pre class="lines">
459
459
 
460
460
 
461
- 12
462
- 13
463
- 14</pre>
461
+ 14
462
+ 15
463
+ 16</pre>
464
464
  </td>
465
465
  <td>
466
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 12</span>
466
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 14</span>
467
467
 
468
468
  <span class='kw'>def</span> <span class='id identifier rubyid_ionian_timeout'>ionian_timeout</span>
469
469
  <span class='ivar'>@ionian_timeout</span>
@@ -506,12 +506,12 @@ standard library IO::select.</p>
506
506
  <pre class="lines">
507
507
 
508
508
 
509
- 15
510
- 16
511
- 17</pre>
509
+ 17
510
+ 18
511
+ 19</pre>
512
512
  </td>
513
513
  <td>
514
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 15</span>
514
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 17</span>
515
515
 
516
516
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_extended'>extended</span> <span class='id identifier rubyid_obj'>obj</span>
517
517
  <span class='id identifier rubyid_obj'>obj</span><span class='period'>.</span><span class='id identifier rubyid_initialize_ionian'>initialize_ionian</span>
@@ -553,12 +553,12 @@ standard library IO::select.</p>
553
553
  <pre class="lines">
554
554
 
555
555
 
556
- 39
557
- 40
558
- 41</pre>
556
+ 41
557
+ 42
558
+ 43</pre>
559
559
  </td>
560
560
  <td>
561
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 39</span>
561
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 41</span>
562
562
 
563
563
  <span class='kw'>def</span> <span class='id identifier rubyid_expression'>expression</span>
564
564
  <span class='ivar'>@ionian_expression</span>
@@ -598,13 +598,13 @@ href=":parameter">match</a>.</p>
598
598
  <pre class="lines">
599
599
 
600
600
 
601
- 49
602
- 50
603
601
  51
604
- 52</pre>
602
+ 52
603
+ 53
604
+ 54</pre>
605
605
  </td>
606
606
  <td>
607
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 49</span>
607
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 51</span>
608
608
 
609
609
  <span class='kw'>def</span> <span class='id identifier rubyid_expression='>expression=</span> <span class='id identifier rubyid_exp'>exp</span>
610
610
  <span class='ivar'>@ionian_expression</span> <span class='op'>=</span> <span class='id identifier rubyid_exp'>exp</span>
@@ -657,14 +657,14 @@ href=":parameter">match</a>.</p>
657
657
  <pre class="lines">
658
658
 
659
659
 
660
- 34
661
- 35
662
- 36</pre>
660
+ 36
661
+ 37
662
+ 38</pre>
663
663
  </td>
664
664
  <td>
665
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 34</span>
665
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 36</span>
666
666
 
667
- <span class='kw'>def</span> <span class='id identifier rubyid_has_data?'>has_data?</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='int'>0</span><span class='rparen'>)</span>
667
+ <span class='kw'>def</span> <span class='id identifier rubyid_has_data?'>has_data?</span> <span class='label'>timeout:</span> <span class='int'>0</span>
668
668
  <span class='op'>::</span><span class='const'>IO</span><span class='period'>.</span><span class='id identifier rubyid_select'>select</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='kw'>self</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='kw'>true</span> <span class='op'>:</span> <span class='kw'>false</span>
669
669
  <span class='kw'>end</span></pre>
670
670
  </td>
@@ -699,17 +699,17 @@ href=":parameter">match</a>.</p>
699
699
  <pre class="lines">
700
700
 
701
701
 
702
- 21
703
- 22
704
702
  23
705
703
  24
706
704
  25
707
705
  26
708
706
  27
709
- 28</pre>
707
+ 28
708
+ 29
709
+ 30</pre>
710
710
  </td>
711
711
  <td>
712
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 21</span>
712
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 23</span>
713
713
 
714
714
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize_ionian'>initialize_ionian</span>
715
715
  <span class='ivar'>@ionian_listeners</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
@@ -751,14 +751,14 @@ automatically.</p>
751
751
  <pre class="lines">
752
752
 
753
753
 
754
- 157
755
- 158
756
- 159
757
- 160
758
- 161</pre>
754
+ 162
755
+ 163
756
+ 164
757
+ 165
758
+ 166</pre>
759
759
  </td>
760
760
  <td>
761
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 157</span>
761
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 162</span>
762
762
 
763
763
  <span class='kw'>def</span> <span class='id identifier rubyid_purge'>purge</span>
764
764
  <span class='comment'># Erase IO buffer.
@@ -773,7 +773,7 @@ automatically.</p>
773
773
  <div class="method_details ">
774
774
  <h3 class="signature " id="read_all-instance_method">
775
775
 
776
- - (<tt>Object</tt>) <strong>read_all</strong>
776
+ - (<tt>Object</tt>) <strong>read_all</strong>(nonblocking: false)
777
777
 
778
778
 
779
779
 
@@ -783,7 +783,8 @@ automatically.</p>
783
783
  <div class="discussion">
784
784
 
785
785
  <p>Read all data in the buffer. An alternative to using #readpartial with a
786
- large length. Blocks until data is available.</p>
786
+ large length. Blocks until data is available unless nonblocking: true. If
787
+ nonblocking, returns nil if no data available.</p>
787
788
 
788
789
 
789
790
  </div>
@@ -797,18 +798,22 @@ large length. Blocks until data is available.</p>
797
798
  <pre class="lines">
798
799
 
799
800
 
800
- 57
801
- 58
802
- 59
803
801
  60
804
802
  61
805
803
  62
806
- 63</pre>
804
+ 63
805
+ 64
806
+ 65
807
+ 66
808
+ 67
809
+ 68</pre>
807
810
  </td>
808
811
  <td>
809
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 57</span>
812
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 60</span>
810
813
 
811
- <span class='kw'>def</span> <span class='id identifier rubyid_read_all'>read_all</span>
814
+ <span class='kw'>def</span> <span class='id identifier rubyid_read_all'>read_all</span> <span class='label'>nonblocking:</span> <span class='kw'>false</span>
815
+ <span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='id identifier rubyid_nonblocking'>nonblocking</span> <span class='kw'>and</span> <span class='kw'>not</span> <span class='id identifier rubyid_has_data?'>has_data?</span>
816
+
812
817
  <span class='comment'># Block until data has arrived.
813
818
  </span> <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='id identifier rubyid_readpartial'>readpartial</span> <span class='int'>0xFFFF</span>
814
819
  <span class='comment'># If there is more data in the buffer, retrieve it nonblocking.
@@ -872,11 +877,6 @@ build_methods: Build accessor methods from named capture groups.
872
877
  <pre class="lines">
873
878
 
874
879
 
875
- 91
876
- 92
877
- 93
878
- 94
879
- 95
880
880
  96
881
881
  97
882
882
  98
@@ -916,10 +916,15 @@ build_methods: Build accessor methods from named capture groups.
916
916
  132
917
917
  133
918
918
  134
919
- 135</pre>
919
+ 135
920
+ 136
921
+ 137
922
+ 138
923
+ 139
924
+ 140</pre>
920
925
  </td>
921
926
  <td>
922
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 91</span>
927
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 96</span>
923
928
 
924
929
  <span class='kw'>def</span> <span class='id identifier rubyid_read_match'>read_match</span> <span class='op'>**</span><span class='id identifier rubyid_kwargs'>kwargs</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span>
925
930
  <span class='id identifier rubyid_timeout'>timeout</span> <span class='op'>=</span> <span class='id identifier rubyid_kwargs'>kwargs</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='symbol'>:timeout</span><span class='comma'>,</span> <span class='ivar'>@ionian_timeout</span>
@@ -1003,13 +1008,13 @@ reference to the given block. block = ionian_socket.register_observer { … }</p
1003
1008
  <pre class="lines">
1004
1009
 
1005
1010
 
1006
- 167
1007
- 168
1008
- 169
1009
- 170</pre>
1011
+ 172
1012
+ 173
1013
+ 174
1014
+ 175</pre>
1010
1015
  </td>
1011
1016
  <td>
1012
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 167</span>
1017
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 172</span>
1013
1018
 
1014
1019
  <span class='kw'>def</span> <span class='id identifier rubyid_register_observer'>register_observer</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span>
1015
1020
  <span class='ivar'>@ionian_listeners</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_block'>block</span> <span class='kw'>unless</span> <span class='ivar'>@ionian_listeners</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_block'>block</span>
@@ -1048,11 +1053,6 @@ socket|). Passes kwargs to #read_match. This method SHOULD NOT be used if
1048
1053
  <pre class="lines">
1049
1054
 
1050
1055
 
1051
- 140
1052
- 141
1053
- 142
1054
- 143
1055
- 144
1056
1056
  145
1057
1057
  146
1058
1058
  147
@@ -1061,10 +1061,15 @@ socket|). Passes kwargs to #read_match. This method SHOULD NOT be used if
1061
1061
  150
1062
1062
  151
1063
1063
  152
1064
- 153</pre>
1064
+ 153
1065
+ 154
1066
+ 155
1067
+ 156
1068
+ 157
1069
+ 158</pre>
1065
1070
  </td>
1066
1071
  <td>
1067
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 140</span>
1072
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 145</span>
1068
1073
 
1069
1074
  <span class='kw'>def</span> <span class='id identifier rubyid_run_match'>run_match</span> <span class='op'>**</span><span class='id identifier rubyid_kwargs'>kwargs</span>
1070
1075
  <span class='ivar'>@match_listener</span> <span class='op'>||=</span> <span class='const'>Thread</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='kw'>do</span>
@@ -1111,13 +1116,13 @@ socket|). Passes kwargs to #read_match. This method SHOULD NOT be used if
1111
1116
  <pre class="lines">
1112
1117
 
1113
1118
 
1114
- 175
1115
- 176
1116
- 177
1117
- 178</pre>
1119
+ 180
1120
+ 181
1121
+ 182
1122
+ 183</pre>
1118
1123
  </td>
1119
1124
  <td>
1120
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 175</span>
1125
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/io.rb', line 180</span>
1121
1126
 
1122
1127
  <span class='kw'>def</span> <span class='id identifier rubyid_unregister_observer'>unregister_observer</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span>
1123
1128
  <span class='ivar'>@ionian_listeners</span><span class='period'>.</span><span class='id identifier rubyid_delete_if'>delete_if</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_o'>o</span><span class='op'>|</span> <span class='id identifier rubyid_o'>o</span> <span class='op'>==</span> <span class='id identifier rubyid_block'>block</span> <span class='rbrace'>}</span>
@@ -1133,7 +1138,7 @@ socket|). Passes kwargs to #read_match. This method SHOULD NOT be used if
1133
1138
  </div>
1134
1139
 
1135
1140
  <div id="footer">
1136
- Generated on Sat Apr 12 13:24:31 2014 by
1141
+ Generated on Sun Apr 13 09:26:35 2014 by
1137
1142
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1138
1143
  0.8.7.4 (ruby-2.1.1).
1139
1144
  </div>