module WatchDoge
todo: should improve testing boundary for more accurate diff imagenot.
todo: finish document
Version of WatchDoge
todo:
1. improve or remove cookie related functions, is it necessary for frontend regression?
Constants
- VERSION
Public Class Methods
base_dir()
click to toggle source
# File lib/watchdoge.rb, line 14 def base_dir configuration.base_dir end
configuration()
click to toggle source
# File lib/watchdoge.rb, line 27 def configuration @configuration ||= Configuration.new end
configure() { |configuration| ... }
click to toggle source
# File lib/watchdoge.rb, line 22 def configure(&block) yield(configuration) configuration end
hooks()
click to toggle source
# File lib/watchdoge.rb, line 18 def hooks configuration.hooks end
initialize!()
click to toggle source
# File lib/watchdoge.rb, line 31 def initialize! config_file = ENV['WATCHDOGE_CONFIG'] || if defined?(Rails) "#{Rails.root}/config/watchdoge.rb" else "#{Dir.pwd}/watchdoge.rb" end load config_file end