Sha256: 547fc2d3812aa67390e09f9811263c0ebae7fe2e5390219bbfe7c85058dd303c

Contents?: true

Size: 430 Bytes

Versions: 9

Compression:

Stored size: 430 Bytes

Contents

require_relative 'base_whoisd'

module Whois
  module Scanners

    class WhoisNicCz < BaseWhoisd

      self.tokenizers += [
          :scan_response_throttled,
      ]

      tokenizer :scan_response_throttled do
        if @input.match?(/Your connection limit exceeded\. Please slow down and try again later/)
          @ast["response:throttled"] = true
          @input.skip(/^.+\n/)
        end
      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.nic.cz.rb
whois-parser-1.2.0 lib/whois/scanners/whois.nic.cz.rb
whois-parser-1.1.0 lib/whois/scanners/whois.nic.cz.rb
whois-parser-1.0.1 lib/whois/scanners/whois.nic.cz.rb
hetzner-whois-parser-1.0.1.rc2 lib/whois/scanners/whois.nic.cz.rb
hetzner-whois-parser-1.0.1.rc1 lib/whois/scanners/whois.nic.cz.rb
whois-parser-1.0.0 lib/whois/scanners/whois.nic.cz.rb
whois-parser-1.0.0.pre.beta2 lib/whois/scanners/whois.nic.cz.rb
whois-parser-1.0.0.pre.beta1 lib/whois/scanners/whois.nic.cz.rb