Sha256: 91b97abb619aead943cf66c78ac49dea796b68573c30f49af59c3bbfb30419dd
Contents?: true
Size: 326 Bytes
Versions: 3
Compression:
Stored size: 326 Bytes
Contents
$: << File.dirname(__FILE__) + '/../lib' require 'em-whois' # Synchronous WHOIS lookup -- em-whois should opt to use original TcpSocket domain = ARGV[0] || "github.com" r = Whois.whois(domain) puts "\r#{domain}\n#{"-" * domain.length}" [:available?, :status, :expires_on].each do |k| puts "#{k}: #{r.properties[k]}" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
em-whois-0.3.0 | examples/sync_whois.rb |
em-whois-0.2.0 | examples/sync_whois.rb |
em-whois-0.1.1 | examples/sync_whois.rb |