Sha256: 33600fff2f1d47cc35c951111a13caba33df965d36ee11f65b13107563d8a0cf

Contents?: true

Size: 841 Bytes

Versions: 19

Compression:

Stored size: 841 Bytes

Contents

require "wat_catcher/version"

require "wat_catcher/report"
require 'wat_catcher/sidekiq_poster'
require "wat_catcher/wattle_helper"
require "wat_catcher/sidekiq_middleware"
require "wat_catcher/rack_middleware"
require "wat_catcher/sidekiq_poster"

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

19 entries across 19 versions & 1 rubygems

Version Path
wat_catcher-0.10.7 lib/wat_catcher.rb
wat_catcher-0.10.5 lib/wat_catcher.rb
wat_catcher-0.10.4 lib/wat_catcher.rb
wat_catcher-0.10.3 lib/wat_catcher.rb
wat_catcher-0.10.2 lib/wat_catcher.rb
wat_catcher-0.10.1 lib/wat_catcher.rb
wat_catcher-0.10.0 lib/wat_catcher.rb
wat_catcher-0.9.0 lib/wat_catcher.rb
wat_catcher-0.8.9 lib/wat_catcher.rb
wat_catcher-0.8.8 lib/wat_catcher.rb
wat_catcher-0.8.7 lib/wat_catcher.rb
wat_catcher-0.8.6 lib/wat_catcher.rb
wat_catcher-0.8.5 lib/wat_catcher.rb
wat_catcher-0.8.4 lib/wat_catcher.rb
wat_catcher-0.8.3 lib/wat_catcher.rb
wat_catcher-0.8.2 lib/wat_catcher.rb
wat_catcher-0.8.1 lib/wat_catcher.rb
wat_catcher-0.8.0 lib/wat_catcher.rb
wat_catcher-0.7.2 lib/wat_catcher.rb