rubysl-socket 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubysl/socket.rb +1 -1
- data/lib/rubysl/socket/error.rb +7 -7
- data/lib/rubysl/socket/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: 3216bf924734c539788a3de5709480bc861598bc
|
4
|
+
data.tar.gz: 148d6ef7902011a226b8b6d67c177d08256c0cb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 197042e69b6ff3af10b182143e39f47d376041c9c7661fcdfea0cfc8aa743ae632ce33abac09e5021e5e1a3fa7d3799fb03a00244deca2097e4f4380ad4689ac
|
7
|
+
data.tar.gz: 2f68f82f4e78cdb30a980b5a1a62035bae6fe4da2baba3bd356fd920f5d0fe64a93f21569ca4dc83e595ad388b95dfc61ccc3e148bc7a653eb267cb238c77000
|
data/lib/rubysl/socket.rb
CHANGED
data/lib/rubysl/socket/error.rb
CHANGED
@@ -30,27 +30,27 @@ module RubySL
|
|
30
30
|
def self.wrap_read_nonblock
|
31
31
|
yield
|
32
32
|
rescue Errno::EAGAIN => err
|
33
|
-
raise_wrapped_error(err, IO::EAGAINWaitReadable)
|
33
|
+
raise_wrapped_error(err, ::IO::EAGAINWaitReadable)
|
34
34
|
rescue Errno::EWOULDBLOCK => err
|
35
|
-
raise_wrapped_error(err, IO::EWOULDBLOCKWaitReadable)
|
35
|
+
raise_wrapped_error(err, ::IO::EWOULDBLOCKWaitReadable)
|
36
36
|
rescue Errno::EINPROGRESS => err
|
37
|
-
raise_wrapped_error(err, IO::EINPROGRESSWaitReadable)
|
37
|
+
raise_wrapped_error(err, ::IO::EINPROGRESSWaitReadable)
|
38
38
|
end
|
39
39
|
|
40
40
|
def self.wrap_write_nonblock
|
41
41
|
yield
|
42
42
|
rescue Errno::EAGAIN => err
|
43
|
-
raise_wrapped_error(err, IO::EAGAINWaitWritable)
|
43
|
+
raise_wrapped_error(err, ::IO::EAGAINWaitWritable)
|
44
44
|
rescue Errno::EWOULDBLOCK => err
|
45
|
-
raise_wrapped_error(err, IO::EWOULDBLOCKWaitWritable)
|
45
|
+
raise_wrapped_error(err, ::IO::EWOULDBLOCKWaitWritable)
|
46
46
|
rescue Errno::EINPROGRESS => err
|
47
|
-
raise_wrapped_error(err, IO::EINPROGRESSWaitWritable)
|
47
|
+
raise_wrapped_error(err, ::IO::EINPROGRESSWaitWritable)
|
48
48
|
end
|
49
49
|
|
50
50
|
# Wraps the error given in `original` in an instance of `error_class`.
|
51
51
|
#
|
52
52
|
# This can be used to wrap e.g. an Errno::EAGAIN error in an
|
53
|
-
# IO::EAGAINWaitReadable instance.
|
53
|
+
# ::IO::EAGAINWaitReadable instance.
|
54
54
|
def self.raise_wrapped_error(original, error_class)
|
55
55
|
error = error_class.new(original.message)
|
56
56
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubysl-socket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Shirai
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-01-
|
12
|
+
date: 2016-01-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|