lib/whois/domain/name.rb in jm81-whois-0.6.0 vs lib/whois/domain/name.rb in jm81-whois-0.7.0

- old
+ new

@@ -1,21 +1,21 @@ class Whois::Domain::Name < Whois::Domain::Base HOST = "whois.nic.name" - ATTR_MATCH = /^([^:]+):\s(.*)$/ + ATTR_MATCH = /^\s+([^:]+):\s(.*)$/ responds_to :name ATTR_NAMES = { :registrar_name => "Sponsoring Registrar", :created_on => "Created On", :updated_on => "Updated On", :expires_on => "Expires On", :status => "Domain Status" } - + def available? @raw =~ /No match/ end - + # whois.nic.name uses a query in the format # object = name. e.g. domain = john.smith.name def query_string "domain = #{@name}\n" end \ No newline at end of file