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-4.0.2 examples/sinatras_raygun.rb
raygun4ruby-4.0.1 examples/sinatras_raygun.rb
raygun4ruby-4.0.0.pre examples/sinatras_raygun.rb
raygun4ruby-3.2.3 examples/sinatras_raygun.rb
raygun4ruby-3.2.3.pre examples/sinatras_raygun.rb
raygun4ruby-3.2.1 examples/sinatras_raygun.rb
raygun4ruby-3.2.0 examples/sinatras_raygun.rb
raygun4ruby-3.1.1 examples/sinatras_raygun.rb
raygun4ruby-3.1.0 examples/sinatras_raygun.rb
raygun4ruby-3.0.0 examples/sinatras_raygun.rb
raygun4ruby-2.7.1 examples/sinatras_raygun.rb
raygun4ruby-2.7.0 examples/sinatras_raygun.rb
raygun4ruby-2.6.0 examples/sinatras_raygun.rb
raygun4ruby-2.5.0 examples/sinatras_raygun.rb
raygun4ruby-2.4.1 examples/sinatras_raygun.rb
raygun4ruby-2.4.0 examples/sinatras_raygun.rb
raygun4ruby-2.3.0 examples/sinatras_raygun.rb
raygun4ruby-2.2.0 examples/sinatras_raygun.rb
raygun4ruby-2.1.0 examples/sinatras_raygun.rb
raygun4ruby-2.0.0 examples/sinatras_raygun.rb