lib/whois/record/parser/whois.co.ca.rb in whois-3.3.1 vs lib/whois/record/parser/whois.co.ca.rb in whois-3.4.0

- old
+ new

@@ -41,16 +41,11 @@ property_supported :registered? do !available? end - # NEWPROPERTY - def reserved? - !!(content_for_scanner =~ /^Domain is not available or is reserved by the registry/) - end - property_supported :created_on do if content_for_scanner =~ /date_approved:\s+(.+)\n/ Time.parse($1) end end @@ -66,9 +61,15 @@ property_supported :nameservers do content_for_scanner.scan(/ns[\d]_hostname:\s+(.+)\n/).flatten.map do |name| Record::Nameserver.new(:name => name) end + end + + + # NEWPROPERTY + def reserved? + !!(content_for_scanner =~ /^Domain is not available or is reserved by the registry/) end end end