Sha256: 7341d607ac37c04a9152898f93e22651a4746760e529e35b4ebf5b99c4ec8e02
Contents?: true
Size: 405 Bytes
Versions: 3
Compression:
Stored size: 405 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
raygun4ruby-3.2.6 | examples/sinatras_raygun.rb |
raygun4ruby-3.2.5.pre | examples/sinatras_raygun.rb |
raygun4ruby-3.2.4 | examples/sinatras_raygun.rb |