Sha256: dd976253a072132ae9c8d3672499b5b48f1e8801374f834489b49e1ed633b4aa

Contents?: true

Size: 388 Bytes

Versions: 30

Compression:

Stored size: 388 Bytes

Contents

# NB: You'll need to install the 'sinatra' gem for this to work :)
# $ gem install sinatra
# $ ruby sinatras_raygun.rb

require 'sinatra'
require_relative '../lib/raygun4ruby'

Raygun.setup do |config|
  config.api_key = YOUR_RAYGUN_API_KEY_HERE
end

use Raygun::RackExceptionInterceptor

set :raise_errors, true

get '/' do
  raise "This is an exception that will be sent to Raygun!"
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
raygun4ruby-1.5.0 examples/sinatras_raygun.rb
raygun4ruby-1.4.0 examples/sinatras_raygun.rb
raygun4ruby-1.3.0 examples/sinatras_raygun.rb
raygun4ruby-1.2.1 examples/sinatras_raygun.rb
raygun4ruby-1.2.0 examples/sinatras_raygun.rb
raygun4ruby-1.1.12 examples/sinatras_raygun.rb
raygun4ruby-1.1.11 examples/sinatras_raygun.rb
raygun4ruby-1.1.9 examples/sinatras_raygun.rb
raygun4ruby-1.1.8 examples/sinatras_raygun.rb
raygun4ruby-1.1.6 examples/sinatras_raygun.rb