Sha256: b275ea5b629a38d741989dabcc66ba4a45eee9fbe7f1bf9aded7b00c6e61389c
Contents?: true
Size: 843 Bytes
Versions: 3
Compression:
Stored size: 843 Bytes
Contents
require 'statsd' require "wat_catcher/version" require "wat_catcher/metrics" require "wat_catcher/report" require "wat_catcher/poster" require "wat_catcher/wattle_helper" require "wat_catcher/sidekiq_middleware" require "wat_catcher/rack_middleware" require "wat_catcher/railtie" if defined?(Rails::Railtie) module WatCatcher class Configuration < OpenStruct def method_missing(method, *args) if method[-1] != "=" ENV["wattle_#{method}".upcase] || super else super end end end class << self def configure(config_hash=nil) config_hash.each do |k, v| configuration.send("#{k}=", v) end if config_hash yield(configuration) if block_given? end def configuration @configuration ||= Configuration.new end end end require "wat_catcher/engine"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wat_catcher-0.10.11 | lib/wat_catcher.rb |
wat_catcher-0.10.10 | lib/wat_catcher.rb |
wat_catcher-0.10.9 | lib/wat_catcher.rb |