lib/whois/parsers/whois.jprs.jp.rb in whois-parser-1.0.1 vs lib/whois/parsers/whois.jprs.jp.rb in whois-parser-1.1.0
- old
+ new
@@ -1,11 +1,11 @@
#--
# Ruby Whois
#
# An intelligent pure Ruby WHOIS client and parser.
#
-# Copyright (c) 2009-2015 Simone Carletti <weppos@weppos.net>
+# Copyright (c) 2009-2018 Simone Carletti <weppos@weppos.net>
#++
require_relative 'base'
@@ -34,21 +34,21 @@
when "to be suspended"
:redemption
when "suspended"
:expired
else
- Whois.bug!(ParserError, "Unknown status `#{$1}'.")
+ Whois::Parser.bug!(ParserError, "Unknown status `#{$1}'.")
end
elsif content_for_scanner =~ /\[State\]\s+(.+)\n/
case $1.split(" ").first.downcase
when "connected", "registered"
:registered
when "deleted"
:suspended
when "reserved"
:reserved
else
- Whois.bug!(ParserError, "Unknown status `#{$1}'.")
+ Whois::Parser.bug!(ParserError, "Unknown status `#{$1}'.")
end
else
:available
end
end