lib/whois/domain/educause.rb in jm81-whois-0.5.0 vs lib/whois/domain/educause.rb in jm81-whois-0.6.0

- old
+ new

@@ -1,43 +1,43 @@ -class Whois::Domain::Educause < Whois::Domain::Base - HOST = "whois.educause.edu" - ATTR_MATCH = /^([^:]+):\s+(.*)$/ - responds_to :edu - - ATTR_NAMES = { - :created_on => "Domain record activated", - :updated_on => "Domain record last updated", - :expires_on => "Domain expires" - } - - # Educause is the only registrar for .edu - def registrar_name - "Educause" - end - - def available? - @raw =~ /^No Match/ - end - - def name_servers - found = false - ns_ary = [] - @raw.each_line do |l| - if l =~ /^Name Servers:/ - found = true - elsif found && l =~ /^\s+(\S+)/ - ns_ary << $1 - elsif found && l.strip.empty? - return ns_ary - end - end - ns_ary - end - - def ns - name_servers - end - - def register_url - "http://www.educause.edu/edudomain" - end +class Whois::Domain::Educause < Whois::Domain::Base + HOST = "whois.educause.edu" + ATTR_MATCH = /^([^:]+):\s+(.*)$/ + responds_to :edu + + ATTR_NAMES = { + :created_on => "Domain record activated", + :updated_on => "Domain record last updated", + :expires_on => "Domain expires" + } + + # Educause is the only registrar for .edu + def registrar_name + "Educause" + end + + def available? + @raw =~ /^No Match/ + end + + def name_servers + found = false + ns_ary = [] + @raw.each_line do |l| + if l =~ /^Name Servers:/ + found = true + elsif found && l =~ /^\s+(\S+)/ + ns_ary << $1 + elsif found && l.strip.empty? + return ns_ary + end + end + ns_ary + end + + def ns + name_servers + end + + def register_url + "http://www.educause.edu/edudomain" + end end \ No newline at end of file