Module: Telebugs

Defined in:
lib/telebugs.rb,
lib/telebugs/config.rb,
lib/telebugs/report.rb,
lib/telebugs/sender.rb,
lib/telebugs/promise.rb,
lib/telebugs/version.rb,
lib/telebugs/reporter.rb,
lib/telebugs/backtrace.rb,
lib/telebugs/code_hunk.rb,
lib/telebugs/truncator.rb,
lib/telebugs/file_cache.rb,
lib/telebugs/error_message.rb,
lib/telebugs/wrapped_error.rb,
lib/telebugs/base_middleware.rb,
lib/telebugs/middleware_stack.rb,
lib/telebugs/middleware/gem_root_filter.rb,
lib/telebugs/middleware/ignore_environments.rb,
lib/telebugs/middleware/root_directory_filter.rb

Defined Under Namespace

Modules: Backtrace, ErrorMessage, FileCache Classes: BaseMiddleware, CodeHunk, Config, Middleware, MiddlewareStack, Promise, Report, Reporter, Sender, Truncator, WrappedError

Constant Summary collapse

Error =

The general error that this library uses when it wants to raise.

Class.new(StandardError)
HTTPError =
Class.new(Error)
VERSION =
"0.10.0"

Class Method Summary collapse

Class Method Details

.configObject



37
38
39
# File 'lib/telebugs.rb', line 37

def config
  Config.instance
end

.configure {|Config.instance| ... } ⇒ Object

Yields:



33
34
35
# File 'lib/telebugs.rb', line 33

def configure
  yield Config.instance
end

.report(error) ⇒ Object



41
42
43
# File 'lib/telebugs.rb', line 41

def report(error)
  Reporter.instance.report(error)
end