Sha256: af2ee871e2d2080bf0a78bd2b271b68fa75664ed2afb8daaf864702429236d47

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

require "forewarn/reporters/json"
require "forewarn/warners/string_mutation"

module Forewarn
  DEFAULT_CONFIG = {
    :enabled => true,
    :logger => Kernel.method(:warn),
# TODO: implement a JSON reporter
#    :reporter => Forewarn::Reporters::Json,
#    :report_destination => "log/usage_warning.json",
    :warners => [Forewarn::Warners::StringMutation]
  }.freeze

  @__config = DEFAULT_CONFIG.dup

  def self.config(overrides = {})
    @__config.merge!(overrides)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
forewarn-0.1.0 lib/forewarn/config.rb