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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 562ed559cd440cd82723928244bf9c0cf26ce180
4
- data.tar.gz: 38e38e4237bad622ab117187d81d8110be7d674a
3
+ metadata.gz: 3216bf924734c539788a3de5709480bc861598bc
4
+ data.tar.gz: 148d6ef7902011a226b8b6d67c177d08256c0cb1
5
5
  SHA512:
6
- metadata.gz: 90d29f351d1005511ba0c1127dd2e51f3a25e4b74084f7e77e8af847a26fefb24c62b5ec0cae6307cedea1e44196ff4911791534eb464742f4fb890c3731229a
7
- data.tar.gz: 9d161931b8bf02aeffd1f6e5325e9eec9b26bb6889c186b4785b34ffd3d3f36b04c3903a5fa0a750e3aaac1719abc663f7506d61ecf408c9f06d9084079f6031
6
+ metadata.gz: 197042e69b6ff3af10b182143e39f47d376041c9c7661fcdfea0cfc8aa743ae632ce33abac09e5021e5e1a3fa7d3799fb03a00244deca2097e4f4380ad4689ac
7
+ data.tar.gz: 2f68f82f4e78cdb30a980b5a1a62035bae6fe4da2baba3bd356fd920f5d0fe64a93f21569ca4dc83e595ad388b95dfc61ccc3e148bc7a653eb267cb238c77000
data/lib/rubysl/socket.rb CHANGED
@@ -56,7 +56,7 @@ module RubySL
56
56
 
57
57
  socket = new_class.allocate
58
58
 
59
- IO.setup(socket, fd, nil, true)
59
+ ::IO.setup(socket, fd, nil, true)
60
60
  socket.binmode
61
61
 
62
62
  socktype = source.getsockopt(:SOCKET, :TYPE).int
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module RubySL
2
2
  module Socket
3
- VERSION = "2.1.0"
3
+ VERSION = "2.1.1"
4
4
  end
5
5
  end
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.0
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-08 00:00:00.000000000 Z
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