Sha256: a443846bd7bc8645219d17ad4bc11f601b6060c877910912ac978a165a864057
Contents?: true
Size: 1010 Bytes
Versions: 3
Compression:
Stored size: 1010 Bytes
Contents
#-- # Ruby Whois # # An intelligent pure Ruby WHOIS client and parser. # # Copyright (c) 2009-2015 Simone Carletti <weppos@weppos.net> #++ require 'whois/record/scanners/base' module Whois class Record module Scanners # Scanner for the whois.fi record. class WhoisFi < Base self.tokenizers += [ :skip_empty_line, :scan_available, :scan_disclaimer, :scan_keyvalue, :scan_reserved ] tokenizer :scan_available do if @input.skip(/^Domain not found/) @ast["status:available"] = true end end tokenizer :scan_reserved do if @input.skip(/^Domain not available/) @ast["status:reserved"] = true end end tokenizer :scan_disclaimer do if @input.match?(/^More information/) @ast["field:disclaimer"] = @input.scan_until(/(.*)\n\n/).strip end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
whois-3.6.5 | lib/whois/record/scanners/whois.fi.rb |
whois-3.6.4 | lib/whois/record/scanners/whois.fi.rb |
whois-3.6.3 | lib/whois/record/scanners/whois.fi.rb |