lib/whois/record/parser/whois.srs.net.nz.rb in whois-2.0.5 vs lib/whois/record/parser/whois.srs.net.nz.rb in whois-2.0.6

- old
+ new

@@ -25,18 +25,22 @@ # See WhoisNicIt parser for an explanation of all available methods # and examples. # class WhoisSrsNetNz < Base + # @see http://dnc.org.nz/content/srs-whois-spec-1.0.html property_supported :status do if content_for_scanner =~ /query_status:\s(.+)\n/ - case $1.downcase + case s = $1.downcase when /active/ then :registered when /available/ then :available when /invalid characters/ then :invalid + # The domain is no longer active but is in the period prior + # to being released for general registrations + when "210 pendingrelease" then :redemption else - Whois.bug!(ParserError, "Unknown status `#{$1}'.") + Whois.bug!(ParserError, "Unknown status `#{s}'.") end else Whois.bug!(ParserError, "Unable to parse status.") end end @@ -44,10 +48,10 @@ property_supported :available? do (status == :available) end property_supported :registered? do - (status == :registered) + (status == :registered) || (status == :redemption) end property_supported :created_on do if content_for_scanner =~ /domain_dateregistered:\s(.+)\n/