Sha256: ea42bab09deece5edf4caa39a9c4a5482b38e2a78d883d51708fc0166cf23746

Contents?: true

Size: 483 Bytes

Versions: 9

Compression:

Stored size: 483 Bytes

Contents

require_relative 'base'

module Whois
  module Scanners

    # Scanner for the whois.tucows.com record.
    class WhoisTucowsCom < Base

      self.tokenizers += [
          :skip_empty_line,
          :scan_disclaimer,
          :scan_keyvalue,
      ]

      tokenizer :scan_disclaimer do
        @input.skip_until(/The Data in the Tucows Registrar/m)
        @ast["field:disclaimer"] = 'The Data in the Tucows Registrar' << @input.scan_until(/.*$/m)
      end

    end

  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
whois-parser-2.0.0 lib/whois/scanners/whois.tucows.com.rb
whois-parser-1.2.0 lib/whois/scanners/whois.tucows.com.rb
whois-parser-1.1.0 lib/whois/scanners/whois.tucows.com.rb
whois-parser-1.0.1 lib/whois/scanners/whois.tucows.com.rb
hetzner-whois-parser-1.0.1.rc2 lib/whois/scanners/whois.tucows.com.rb
hetzner-whois-parser-1.0.1.rc1 lib/whois/scanners/whois.tucows.com.rb
whois-parser-1.0.0 lib/whois/scanners/whois.tucows.com.rb
whois-parser-1.0.0.pre.beta2 lib/whois/scanners/whois.tucows.com.rb
whois-parser-1.0.0.pre.beta1 lib/whois/scanners/whois.tucows.com.rb