lib/whois/parsers/whois.cira.ca.rb in whois-parser-1.0.1 vs lib/whois/parsers/whois.cira.ca.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'
require 'whois/scanners/whois.cira.ca.rb'
@@ -53,14 +53,14 @@
when "available"
:available
when "unavailable"
:invalid
else
- Whois.bug!(ParserError, "Unknown status `#{$1}'.")
+ Whois::Parser.bug!(ParserError, "Unknown status `#{$1}'.")
end
else
- Whois.bug!(ParserError, "Unable to parse status.")
+ Whois::Parser.bug!(ParserError, "Unable to parse status.")
end
end
property_supported :available? do
status == :available
@@ -144,10 +144,10 @@
case $1
when "2007" then "1"
when "2010" then "2"
end
end
- version || Whois.bug!(ParserError, "Unable to detect version.")
+ version || Whois::Parser.bug!(ParserError, "Unable to detect version.")
end
end
# NEWPROPERTY
def valid?