You can clone with
HTTPS or Subversion.
Testing out this gem and notice that that the parsing of .se and .nu not working correctly.
For example it not returning any Registrar.
ruby-1.9.2-p290 :007 > r=Whois.whois("google.se")
=> "# Copyright (c) 1997- .SE (The Internet Infrastructure Foundation).\r\n# All rights reserved.\r\n\r\n# The information obtained through searches, or otherwise, is protected\r\n# by the Swedish Copyright Act (1960:729) and international conventions.\r\n# It is also subject to database protection according to the Swedish\r\n# Copyright Act.\r\n\r\n# Any use of this material to target advertising or\r\n# similar activities is forbidden and will be prosecuted.\r\n# If any of the information below is transferred to a third\r\n# party, it must be done in its entirety. This server must\r\n# not be used as a backend for a search engine.\r\n\r\n# Result of search for registered domain names under\r\n# the .SE top level domain.\r\n\r\n# The data is in the UTF-8 character set and the result is\r\n# printed with eight bits.\r\n\r\nstate: active\r\ndomain: google.se\r\nholder: mmr8008-53808\r\nadmin-c: -\r\ntech-c: -\r\nbilling-c: -\r\ncreated: 2008-10-20\r\nmodified: 2012-09-18\r\nexpires: 2013-10-20\r\ntransferred: 2009-03-06\r\nnserver: ns1.google.com\r\nnserver: ns2.google.com\r\nnserver: ns3.google.com\r\nnserver: ns4.google.com\r\ndnssec: unsigned delegation\r\nstatus: ok\r\nregistrar: MarkMonitor Inc\r\n"
ruby-1.9.2-p290 :008 > r.registrar
This regex work to get out registrar of .nu domains /Registrar of record: (.+?)\n/
Hi @rendom, the reason for this is because the whois.nic-se.se parser doesn't currently implement that property.
The design decision I took in the past was to return nil in case of unimplemented property, but I'm considering to re-think it and throw an exception in that case to make it more obvious.