Sha256: 43ceb30fab24f015ad664db9e5a37b25a83f32197cccf041d697e29fa3cf4da3

Contents?: true

Size: 580 Bytes

Versions: 2

Compression:

Stored size: 580 Bytes

Contents

Errplane.configure(true) do |config|
  config.logger                ||= logger
  config.rails_environment     ||= settings.environment
  config.rails_root            ||= settings.root
  config.framework               = "Sinatra"
  config.framework_version       = ::Sinatra::VERSION
  config.language                = "Ruby"
  config.language_version        = "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
  config.environment_variables   = ENV.to_hash
end

error do
  Errplane.transmit_unless_ignorable(request.env['sinatra.error'], request.env)
  raise request.env['sinatra.error']
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
errplane-0.1.8 lib/errplane/sinatra.rb
errplane-0.1.7 lib/errplane/sinatra.rb