sip2 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -4
- data/lib/sip2/non_blocking_socket.rb +2 -4
- data/lib/sip2/version.rb +1 -1
- 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: 426aa3286377738536f3308fe3031e27103f6fe6
|
4
|
+
data.tar.gz: 03aa7d489c2ba5089bf5a961dc045c8c6682b8db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6acd6b54ecf7e553ce2cbc05257ea2721bcc3b5203166b755316cd4165e02e13003f1ffed164e4896883d3a6900bc45106864cffa753b68c46eceec1837965f6
|
7
|
+
data.tar.gz: 71f3609d27e6a0c6eda9541900b9982034359306cd967820db39cbd4f4411907dbfb465d842d81e712bab5a1301bf8638f6bea81a69cefb991c8428fc5ecfdbc
|
data/.travis.yml
CHANGED
@@ -10,6 +10,8 @@ module Sip2
|
|
10
10
|
DEFAULT_TIMEOUT = 5
|
11
11
|
SEPARATOR = "\r".freeze
|
12
12
|
|
13
|
+
attr_accessor :connection_timeout
|
14
|
+
|
13
15
|
def send_with_timeout(message, separator = SEPARATOR)
|
14
16
|
::Timeout.timeout (connection_timeout || DEFAULT_TIMEOUT), WriteTimeout do
|
15
17
|
send message + separator, 0
|
@@ -62,9 +64,5 @@ module Sip2
|
|
62
64
|
end
|
63
65
|
end
|
64
66
|
# rubocop:enable Metrics/AbcSize, Metrics/MethodLength
|
65
|
-
|
66
|
-
private
|
67
|
-
|
68
|
-
attr_accessor :connection_timeout
|
69
67
|
end
|
70
68
|
end
|
data/lib/sip2/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sip2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- abrom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|