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