Sha256: 9ea80a9b504c549156eb526d323a503ad3c448157d59e9f1bae94b5101e44537
Contents?: true
Size: 889 Bytes
Versions: 24
Compression:
Stored size: 889 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
24 entries across 24 versions & 1 rubygems