Sha256: 96dfd3e488878839026b51c704ed1eae3a89e3efa006b4bb4be95703f3661ec7
Contents?: true
Size: 876 Bytes
Versions: 11
Compression:
Stored size: 876 Bytes
Contents
# # = Ruby Whois # # An intelligent pure Ruby WHOIS client and parser. # # # Category:: Net # Package:: Whois # Author:: Simone Carletti <weppos@weppos.net> # License:: MIT License # #-- # #++ module Whois class Server module Adapters class Verisign < Base def request(qstring) response = ask_the_socket("=#{qstring}", host, DEFAULT_WHOIS_PORT) append_to_buffer response, host if endpoint = extract_referral(response) response = ask_the_socket(qstring, endpoint, DEFAULT_WHOIS_PORT) append_to_buffer response, endpoint end end private def extract_referral(response) if response =~ /Domain Name:/ endpoint = response.scan(/Whois Server: (\S+)/).flatten.last end end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems