wlvalidate 0.3.6 → 0.3.7

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.
Files changed (2) hide show
  1. data/lib/wlvalidate.rb +13 -0
  2. metadata +1 -1
data/lib/wlvalidate.rb CHANGED
@@ -22,6 +22,19 @@
22
22
  require 'dnsruby'
23
23
  include Dnsruby
24
24
 
25
+ module Dnsruby
26
+ class SelectThread
27
+ def get_socket_pair
28
+ srv = nil
29
+ srv = TCPServer.new('::1', 0)
30
+ rsock = TCPSocket.new(srv.addr[3], srv.addr[1])
31
+ lsock = srv.accept
32
+ srv.close
33
+ return [lsock, rsock]
34
+ end
35
+ end
36
+ end
37
+
25
38
  module WLValidate
26
39
  class Validate
27
40
  @@dns_updated = 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wlvalidate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: