xelnex 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/xelnex +1 -0
- data/lib/xelnex.rb +3 -1
- data/lib/xelnex/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9115d5bb5b0d97fcc17cdbcc6fca5c96eddefcc
|
4
|
+
data.tar.gz: 6123079c64b6ca8af20b2087cb2638954cf3d6f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18449f125a49fa033a0584172865fa971e0196f4d0b111400c2ff9c163154cbead28690b4ced5d6ea34588219387e471cf7957e017ad0597c483168f67322da8
|
7
|
+
data.tar.gz: 46c45ec8bb67de6133db3548a9382587fc298df5466e3825e44869f06bb995de44caadfab75b3b018837ce8dd4ecab34f837cdc788ffe740a125fb77df7388ee
|
data/bin/xelnex
CHANGED
data/lib/xelnex.rb
CHANGED
@@ -4,6 +4,8 @@ require "timeout"
|
|
4
4
|
|
5
5
|
module Xelnex
|
6
6
|
class Handler
|
7
|
+
attr_accessor :timeout
|
8
|
+
|
7
9
|
def handle(input)
|
8
10
|
if connected
|
9
11
|
send_line(input)
|
@@ -39,7 +41,7 @@ module Xelnex
|
|
39
41
|
"".tap do |result|
|
40
42
|
begin
|
41
43
|
loop do
|
42
|
-
Timeout::timeout(1
|
44
|
+
Timeout::timeout(self.timeout || 0.1) do
|
43
45
|
ans = recv_con.gets
|
44
46
|
result << ans
|
45
47
|
end
|
data/lib/xelnex/version.rb
CHANGED