lib/whois/parsers/base_nic_fr.rb in whois-parser-1.0.1 vs lib/whois/parsers/base_nic_fr.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'
@@ -32,11 +32,11 @@
# The 'not_open' status seems to indicate a domain
# that is already reserved and can't be registered directly.
# This is the case of second level names.
when "not_open" then :reserved
else
- Whois.bug!(ParserError, "Unknown status `#{$1}'.")
+ Whois::Parser.bug!(ParserError, "Unknown status `#{$1}'.")
end
else
:available
end
end
@@ -113,10 +113,10 @@
def parse_contact(element, type)
return unless content_for_scanner =~ /#{element}:\s+(.+)\n/
id = $1
content_for_scanner.scan(/nic-hdl:\s+#{id}\n((.+\n)+)\n/).any? ||
- Whois.bug!(ParserError, "Unable to parse contact block for nic-hdl: #{id}")
+ Whois::Parser.bug!(ParserError, "Unable to parse contact block for nic-hdl: #{id}")
values = build_hash($1.scan(/(.+?):\s+(.+?)\n/))
if values["type"] == "ORGANIZATION"
name = nil
organization = values["contact"]