Sha256: ab0a0df8841d5ae129e5b05f053e40228096b2977bb79fb213102b71ed7e7167

Contents?: true

Size: 1.13 KB

Versions: 2

Compression:

Stored size: 1.13 KB

Contents

require_relative 'appflux_ruby/version'
require_relative 'appflux_ruby/bugflux_config'
require_relative 'appflux_ruby/bugflux_notifier'
require_relative 'appflux_ruby/message_builders/base'
require_relative 'appflux_ruby/message_builders/bugflux'
require_relative 'appflux_ruby/message_builders/custom_message'
require_relative 'appflux_ruby/helpers/util'

if defined?(::Rack)
  require_relative 'appflux_ruby/rack/middleware'

  if defined?(::Rails)
    require_relative 'appflux_ruby/rails/railtie'
    require_relative 'appflux_ruby/rails/controller_methods'
  end
end

## Requires library specific files in generators. See: generators/appflux_ruby/install_generator.
## This is important to handle if appflux_ruby is present in Gemfile before Delayed Job.

module AppfluxRuby
  class Bugflux
    class << self
      attr_accessor :config
      attr_accessor :additional_data
    end

    def self.configure &blk
      self.config = AppfluxRuby::BugfluxConfig.new
      yield self.config
    end

    ## These methods are used to set per-request custom data.
    def self.initialize_additional_data
      @additional_data = Hash.new
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
appflux_ruby-0.1.2 lib/appflux_ruby.rb
appflux_ruby-0.1.1 lib/appflux_ruby.rb