ionian 0.6.7 → 0.6.8
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/doc/Ionian/Extension/IO.html +1 -1
- data/doc/Ionian/Extension/Socket.html +1 -1
- data/doc/Ionian/Extension.html +1 -1
- data/doc/Ionian/Server.html +1 -1
- data/doc/Ionian/Socket.html +53 -49
- data/doc/Ionian.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/file.license.html +1 -1
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +1 -1
- data/lib/ionian/socket.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f2c1057ff496da029cbdcd0d9967fccd9ab7c1b
|
4
|
+
data.tar.gz: 82f0e659ff947991b902b01bc535f80ef22a211d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68af34bda41fa4144b6b994250920e02306336ab3ecc61f63f98a98286cd0263eb65354924d2184181694c5a1a081d4b5a13b8e38d07938d280e5f0b983cf7f4
|
7
|
+
data.tar.gz: 5e0c5615b6029cc14a8ee60ebbdde22236786bf77b7e787b787c760f7c921d4ea95a2a2418e5f2d5079a2a182e8c8a04449cd567acbab48854ab03789b5b50b3
|
@@ -1138,7 +1138,7 @@ socket|). Passes kwargs to #read_match. This method SHOULD NOT be used if
|
|
1138
1138
|
</div>
|
1139
1139
|
|
1140
1140
|
<div id="footer">
|
1141
|
-
Generated on
|
1141
|
+
Generated on Mon Apr 14 18:43:33 2014 by
|
1142
1142
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1143
1143
|
0.8.7.4 (ruby-2.1.1).
|
1144
1144
|
</div>
|
@@ -2530,7 +2530,7 @@ true.</p>
|
|
2530
2530
|
</div>
|
2531
2531
|
|
2532
2532
|
<div id="footer">
|
2533
|
-
Generated on
|
2533
|
+
Generated on Mon Apr 14 18:43:33 2014 by
|
2534
2534
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2535
2535
|
0.8.7.4 (ruby-2.1.1).
|
2536
2536
|
</div>
|
data/doc/Ionian/Extension.html
CHANGED
@@ -119,7 +119,7 @@
|
|
119
119
|
</div>
|
120
120
|
|
121
121
|
<div id="footer">
|
122
|
-
Generated on
|
122
|
+
Generated on Mon Apr 14 18:43:33 2014 by
|
123
123
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
124
124
|
0.8.7.4 (ruby-2.1.1).
|
125
125
|
</div>
|
data/doc/Ionian/Server.html
CHANGED
@@ -930,7 +930,7 @@ connected client is passed to the block as an Ionain::Client.</p>
|
|
930
930
|
</div>
|
931
931
|
|
932
932
|
<div id="footer">
|
933
|
-
Generated on
|
933
|
+
Generated on Mon Apr 14 18:43:33 2014 by
|
934
934
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
935
935
|
0.8.7.4 (ruby-2.1.1).
|
936
936
|
</div>
|
data/doc/Ionian/Socket.html
CHANGED
@@ -661,7 +661,9 @@ expression: Overrides the #read_match regular expression for received data.</cod
|
|
661
661
|
105
|
662
662
|
106
|
663
663
|
107
|
664
|
-
108
|
664
|
+
108
|
665
|
+
109
|
666
|
+
110</pre>
|
665
667
|
</td>
|
666
668
|
<td>
|
667
669
|
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 42</span>
|
@@ -727,7 +729,9 @@ expression: Overrides the #read_match regular expression for received data.</cod
|
|
727
729
|
</span> <span class='comment'># nonpersistent sockets. When nonpersistent, the socket
|
728
730
|
</span> <span class='comment'># should remain open to send data in the buffer after
|
729
731
|
</span> <span class='comment'># close is called (typically right after write).
|
730
|
-
</span> <span class='
|
732
|
+
</span> <span class='comment'># @linger = kwargs.fetch :linger, @persistent ? false : true
|
733
|
+
</span> <span class='comment'># TODO: For some reason linger = true is causing tests to fail.
|
734
|
+
</span> <span class='ivar'>@linger</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'>:linger</span><span class='comma'>,</span> <span class='kw'>false</span>
|
731
735
|
|
732
736
|
|
733
737
|
<span class='id identifier rubyid_create_socket'>create_socket</span> <span class='kw'>if</span> <span class='ivar'>@persistent</span>
|
@@ -966,13 +970,13 @@ expression: Overrides the #read_match regular expression for received data.</cod
|
|
966
970
|
<pre class="lines">
|
967
971
|
|
968
972
|
|
969
|
-
173
|
970
|
-
174
|
971
973
|
175
|
972
|
-
176
|
974
|
+
176
|
975
|
+
177
|
976
|
+
178</pre>
|
973
977
|
</td>
|
974
978
|
<td>
|
975
|
-
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line
|
979
|
+
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 175</span>
|
976
980
|
|
977
981
|
<span class='kw'>def</span> <span class='id identifier rubyid_closed?'>closed?</span>
|
978
982
|
<span class='kw'>return</span> <span class='kw'>true</span> <span class='kw'>unless</span> <span class='ivar'>@socket</span>
|
@@ -1010,8 +1014,6 @@ Block yields received match. See Ionian::Extension::IO#read_match.</p>
|
|
1010
1014
|
<pre class="lines">
|
1011
1015
|
|
1012
1016
|
|
1013
|
-
130
|
1014
|
-
131
|
1015
1017
|
132
|
1016
1018
|
133
|
1017
1019
|
134
|
@@ -1020,10 +1022,12 @@ Block yields received match. See Ionian::Extension::IO#read_match.</p>
|
|
1020
1022
|
137
|
1021
1023
|
138
|
1022
1024
|
139
|
1023
|
-
140
|
1025
|
+
140
|
1026
|
+
141
|
1027
|
+
142</pre>
|
1024
1028
|
</td>
|
1025
1029
|
<td>
|
1026
|
-
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line
|
1030
|
+
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 132</span>
|
1027
1031
|
|
1028
1032
|
<span class='kw'>def</span> <span class='id identifier rubyid_cmd'>cmd</span> <span class='id identifier rubyid_string'>string</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_kwargs'>kwargs</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span>
|
1029
1033
|
<span class='id identifier rubyid_create_socket'>create_socket</span> <span class='kw'>unless</span> <span class='ivar'>@persistent</span>
|
@@ -1067,12 +1071,12 @@ Block yields received match. See Ionian::Extension::IO#read_match.</p>
|
|
1067
1071
|
<pre class="lines">
|
1068
1072
|
|
1069
1073
|
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1074
|
+
113
|
1075
|
+
114
|
1076
|
+
115</pre>
|
1073
1077
|
</td>
|
1074
1078
|
<td>
|
1075
|
-
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line
|
1079
|
+
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 113</span>
|
1076
1080
|
|
1077
1081
|
<span class='kw'>def</span> <span class='id identifier rubyid_expression'>expression</span>
|
1078
1082
|
<span class='ivar'>@expression</span> <span class='op'>||</span> <span class='ivar'>@socket</span><span class='period'>.</span><span class='id identifier rubyid_expression'>expression</span>
|
@@ -1108,13 +1112,13 @@ Block yields received match. See Ionian::Extension::IO#read_match.</p>
|
|
1108
1112
|
<pre class="lines">
|
1109
1113
|
|
1110
1114
|
|
1111
|
-
116
|
1112
|
-
117
|
1113
1115
|
118
|
1114
|
-
119
|
1116
|
+
119
|
1117
|
+
120
|
1118
|
+
121</pre>
|
1115
1119
|
</td>
|
1116
1120
|
<td>
|
1117
|
-
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line
|
1121
|
+
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 118</span>
|
1118
1122
|
|
1119
1123
|
<span class='kw'>def</span> <span class='id identifier rubyid_expression='>expression=</span> <span class='id identifier rubyid_exp'>exp</span>
|
1120
1124
|
<span class='ivar'>@expression</span> <span class='op'>=</span> <span class='id identifier rubyid_exp'>exp</span>
|
@@ -1152,12 +1156,12 @@ non-persistent sockets.</p>
|
|
1152
1156
|
<pre class="lines">
|
1153
1157
|
|
1154
1158
|
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1159
|
+
182
|
1160
|
+
183
|
1161
|
+
184</pre>
|
1158
1162
|
</td>
|
1159
1163
|
<td>
|
1160
|
-
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line
|
1164
|
+
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 182</span>
|
1161
1165
|
|
1162
1166
|
<span class='kw'>def</span> <span class='id identifier rubyid_flush'>flush</span>
|
1163
1167
|
<span class='ivar'>@socket</span><span class='period'>.</span><span class='id identifier rubyid_flush'>flush</span> <span class='kw'>if</span> <span class='ivar'>@persistent</span>
|
@@ -1209,13 +1213,13 @@ non-persistent sockets.</p>
|
|
1209
1213
|
<pre class="lines">
|
1210
1214
|
|
1211
1215
|
|
1212
|
-
167
|
1213
|
-
168
|
1214
1216
|
169
|
1215
|
-
170
|
1217
|
+
170
|
1218
|
+
171
|
1219
|
+
172</pre>
|
1216
1220
|
</td>
|
1217
1221
|
<td>
|
1218
|
-
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line
|
1222
|
+
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 169</span>
|
1219
1223
|
|
1220
1224
|
<span class='kw'>def</span> <span class='id identifier rubyid_has_data?'>has_data?</span> <span class='op'>**</span><span class='id identifier rubyid_kwargs'>kwargs</span>
|
1221
1225
|
<span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>unless</span> <span class='ivar'>@socket</span>
|
@@ -1265,12 +1269,12 @@ non-persistent sockets.</p>
|
|
1265
1269
|
<pre class="lines">
|
1266
1270
|
|
1267
1271
|
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1272
|
+
124
|
1273
|
+
125
|
1274
|
+
126</pre>
|
1271
1275
|
</td>
|
1272
1276
|
<td>
|
1273
|
-
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line
|
1277
|
+
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 124</span>
|
1274
1278
|
|
1275
1279
|
<span class='kw'>def</span> <span class='id identifier rubyid_persistent?'>persistent?</span>
|
1276
1280
|
<span class='ivar'>@persistent</span> <span class='op'>==</span> <span class='kw'>false</span> <span class='op'>||</span> <span class='ivar'>@persistent</span> <span class='op'>==</span> <span class='kw'>nil</span> <span class='op'>?</span> <span class='kw'>false</span> <span class='op'>:</span> <span class='kw'>true</span>
|
@@ -1307,12 +1311,12 @@ any string not already ending with one.</p>
|
|
1307
1311
|
<pre class="lines">
|
1308
1312
|
|
1309
1313
|
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1314
|
+
188
|
1315
|
+
189
|
1316
|
+
190</pre>
|
1313
1317
|
</td>
|
1314
1318
|
<td>
|
1315
|
-
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line
|
1319
|
+
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 188</span>
|
1316
1320
|
|
1317
1321
|
<span class='kw'>def</span> <span class='id identifier rubyid_puts'>puts</span> <span class='op'>*</span><span class='id identifier rubyid_string'>string</span>
|
1318
1322
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span> <span class='id identifier rubyid_string'>string</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_s'>s</span><span class='op'>|</span> <span class='id identifier rubyid_s'>s</span><span class='period'>.</span><span class='id identifier rubyid_chomp'>chomp</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span>
|
@@ -1354,14 +1358,14 @@ reference to the given block. block = ionian_socket.register_observer { … }</p
|
|
1354
1358
|
<pre class="lines">
|
1355
1359
|
|
1356
1360
|
|
1357
|
-
146
|
1358
|
-
147
|
1359
1361
|
148
|
1360
1362
|
149
|
1361
|
-
150
|
1363
|
+
150
|
1364
|
+
151
|
1365
|
+
152</pre>
|
1362
1366
|
</td>
|
1363
1367
|
<td>
|
1364
|
-
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line
|
1368
|
+
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 148</span>
|
1365
1369
|
|
1366
1370
|
<span class='kw'>def</span> <span class='id identifier rubyid_register_observer'>register_observer</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span>
|
1367
1371
|
<span class='ivar'>@ionian_listeners</span> <span class='op'><<</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>
|
@@ -1399,14 +1403,14 @@ reference to the given block. block = ionian_socket.register_observer { … }</p
|
|
1399
1403
|
<pre class="lines">
|
1400
1404
|
|
1401
1405
|
|
1402
|
-
155
|
1403
|
-
156
|
1404
1406
|
157
|
1405
1407
|
158
|
1406
|
-
159
|
1408
|
+
159
|
1409
|
+
160
|
1410
|
+
161</pre>
|
1407
1411
|
</td>
|
1408
1412
|
<td>
|
1409
|
-
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line
|
1413
|
+
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 157</span>
|
1410
1414
|
|
1411
1415
|
<span class='kw'>def</span> <span class='id identifier rubyid_unregister_observer'>unregister_observer</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span>
|
1412
1416
|
<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>
|
@@ -1448,8 +1452,6 @@ reference to the given block. block = ionian_socket.register_observer { … }</p
|
|
1448
1452
|
<pre class="lines">
|
1449
1453
|
|
1450
1454
|
|
1451
|
-
192
|
1452
|
-
193
|
1453
1455
|
194
|
1454
1456
|
195
|
1455
1457
|
196
|
@@ -1474,10 +1476,12 @@ reference to the given block. block = ionian_socket.register_observer { … }</p
|
|
1474
1476
|
215
|
1475
1477
|
216
|
1476
1478
|
217
|
1477
|
-
218
|
1479
|
+
218
|
1480
|
+
219
|
1481
|
+
220</pre>
|
1478
1482
|
</td>
|
1479
1483
|
<td>
|
1480
|
-
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line
|
1484
|
+
<pre class="code"><span class="info file"># File 'lib/ionian/socket.rb', line 194</span>
|
1481
1485
|
|
1482
1486
|
<span class='kw'>def</span> <span class='id identifier rubyid_write'>write</span> <span class='id identifier rubyid_string'>string</span>
|
1483
1487
|
<span class='id identifier rubyid_create_socket'>create_socket</span> <span class='kw'>unless</span> <span class='ivar'>@persistent</span>
|
@@ -1500,8 +1504,8 @@ reference to the given block. block = ionian_socket.register_observer { … }</p
|
|
1500
1504
|
<span class='comment'># TODO: Sleep added so that data can be read on the receiving
|
1501
1505
|
</span> <span class='comment'># end. Can this be changed to shutdown write?
|
1502
1506
|
</span> <span class='comment'># Why isn't so_linger taking care of this?
|
1503
|
-
</span> <span class='
|
1504
|
-
<span class='ivar'>@socket</span><span class='period'>.</span><span class='id identifier rubyid_close'>close</span>
|
1507
|
+
</span> <span class='comment'># sleep 0.01
|
1508
|
+
</span> <span class='ivar'>@socket</span><span class='period'>.</span><span class='id identifier rubyid_close'>close</span>
|
1505
1509
|
<span class='kw'>end</span>
|
1506
1510
|
|
1507
1511
|
<span class='id identifier rubyid_num_bytes'>num_bytes</span>
|
@@ -1516,7 +1520,7 @@ reference to the given block. block = ionian_socket.register_observer { … }</p
|
|
1516
1520
|
</div>
|
1517
1521
|
|
1518
1522
|
<div id="footer">
|
1519
|
-
Generated on
|
1523
|
+
Generated on Mon Apr 14 18:43:33 2014 by
|
1520
1524
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1521
1525
|
0.8.7.4 (ruby-2.1.1).
|
1522
1526
|
</div>
|
data/doc/Ionian.html
CHANGED
@@ -123,7 +123,7 @@ Features regular expression matching and notification of received data.</p>
|
|
123
123
|
</div>
|
124
124
|
|
125
125
|
<div id="footer">
|
126
|
-
Generated on
|
126
|
+
Generated on Mon Apr 14 18:43:33 2014 by
|
127
127
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
128
128
|
0.8.7.4 (ruby-2.1.1).
|
129
129
|
</div>
|
data/doc/_index.html
CHANGED
@@ -155,7 +155,7 @@
|
|
155
155
|
</div>
|
156
156
|
|
157
157
|
<div id="footer">
|
158
|
-
Generated on
|
158
|
+
Generated on Mon Apr 14 18:43:33 2014 by
|
159
159
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
160
160
|
0.8.7.4 (ruby-2.1.1).
|
161
161
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -137,7 +137,7 @@
|
|
137
137
|
</div></div>
|
138
138
|
|
139
139
|
<div id="footer">
|
140
|
-
Generated on
|
140
|
+
Generated on Mon Apr 14 18:43:33 2014 by
|
141
141
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
142
142
|
0.8.7.4 (ruby-2.1.1).
|
143
143
|
</div>
|
data/doc/file.license.html
CHANGED
@@ -64,7 +64,7 @@
|
|
64
64
|
<div id="content"><div id='filecontents'>The MIT License (MIT)<br/><br/>Copyright (c) 2013 Alex McLain<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<br/>all 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<br/>THE SOFTWARE.
|
65
65
|
|
66
66
|
<div id="footer">
|
67
|
-
Generated on
|
67
|
+
Generated on Mon Apr 14 18:43:33 2014 by
|
68
68
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
69
69
|
0.8.7.4 (ruby-2.1.1).
|
70
70
|
</div>
|
data/doc/index.html
CHANGED
@@ -137,7 +137,7 @@
|
|
137
137
|
</div></div>
|
138
138
|
|
139
139
|
<div id="footer">
|
140
|
-
Generated on
|
140
|
+
Generated on Mon Apr 14 18:43:33 2014 by
|
141
141
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
142
142
|
0.8.7.4 (ruby-2.1.1).
|
143
143
|
</div>
|
@@ -103,7 +103,7 @@
|
|
103
103
|
</div>
|
104
104
|
|
105
105
|
<div id="footer">
|
106
|
-
Generated on
|
106
|
+
Generated on Mon Apr 14 18:43:33 2014 by
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
108
108
|
0.8.7.4 (ruby-2.1.1).
|
109
109
|
</div>
|
data/lib/ionian/socket.rb
CHANGED
@@ -100,7 +100,9 @@ module Ionian
|
|
100
100
|
# nonpersistent sockets. When nonpersistent, the socket
|
101
101
|
# should remain open to send data in the buffer after
|
102
102
|
# close is called (typically right after write).
|
103
|
-
@linger = kwargs.fetch :linger, @persistent ? false : true
|
103
|
+
# @linger = kwargs.fetch :linger, @persistent ? false : true
|
104
|
+
# TODO: For some reason linger = true is causing tests to fail.
|
105
|
+
@linger = kwargs.fetch :linger, false
|
104
106
|
|
105
107
|
|
106
108
|
create_socket if @persistent
|
@@ -210,7 +212,7 @@ module Ionian
|
|
210
212
|
# TODO: Sleep added so that data can be read on the receiving
|
211
213
|
# end. Can this be changed to shutdown write?
|
212
214
|
# Why isn't so_linger taking care of this?
|
213
|
-
sleep 0.01
|
215
|
+
# sleep 0.01
|
214
216
|
@socket.close
|
215
217
|
end
|
216
218
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ionian
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex McLain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|