Sha256: 391cdd3e2c5c6505e5b02ca09fcf09a61dbd617b1b0c5c355243b1b0b2519724
Contents?: true
Size: 993 Bytes
Versions: 12
Compression:
Stored size: 993 Bytes
Contents
# frozen_string_literal: true module CrawlerDetect # Configuration of CrawlerDetect # # @see settings # @since 1.0.0 class Config < ::Qonfig::DataSet CUR_PATH = File.dirname(File.expand_path(__FILE__)).freeze RAW_PATH = File.join(CUR_PATH, "library/raw").freeze RAW_CRAWLERS_PATH = File.join(RAW_PATH, "Crawlers.json").freeze RAW_EXCLUSIONS_PATH = File.join(RAW_PATH, "Exclusions.json").freeze RAW_HEADERS_PATH = File.join(RAW_PATH, "Headers.json").freeze # @return [String] path to crawlers raw JSON file setting :raw_crawlers_path, RAW_CRAWLERS_PATH # @return [String] path to exclusions raw JSON file setting :raw_exclusions_path, RAW_EXCLUSIONS_PATH # @return [String] path to headers raw JSON file setting :raw_headers_path, RAW_HEADERS_PATH validate :raw_crawlers_path, :string, strict: true validate :raw_exclusions_path, :string, strict: true validate :raw_headers_path, :string, strict: true end end
Version data entries
12 entries across 12 versions & 1 rubygems