Sha256: d62d3843b5b9ee05c1767c5e6e700a931932b45c1c0cb61e55789b37357fa7b2

Contents?: true

Size: 779 Bytes

Versions: 2

Compression:

Stored size: 779 Bytes

Contents

require 'date'
require 'notifaction'
require 'whois-parser'

require 'chkex/version'
require 'chkex/file_handler'
require 'chkex/checker'
require 'chkex/domain_info'
require 'chkex/sources/base'
require 'chkex/sources/list'
require 'chkex/sources/one'

module Chkex
  class DomainNotFound < StandardError
    def initialize(msg='domain_not_registered')
      super(msg)
    end
  end

  class FileNotFound < StandardError
    def initialize(msg='File not found')
      super(msg)
    end
  end

  class InitializationError < StandardError
    def initialize(msg='Invalid type, cannot continue execution')
      super(msg)
    end
  end

  def self.run(source)
    Checker.new(source, :multiple).test
  end

  def self.run_one(source)
    Checker.new(source, :one).test
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chkex-0.1.1 lib/chkex.rb
chkex-0.1.0 lib/chkex.rb