No description, website, or topics provided.
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1250 commits behind getsentry:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.travis.yml
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
raven.gemspec

README.md

Raven-Ruby

Build Status

A client and integration layer for the Sentry error reporting API.

This library is still forming, so if you are looking to just use it, please check back in a few weeks.

Installation

Add the following to your Gemfile:

gem "raven", :git => "https://github.com/coderanger/raven-ruby.git"

Usage

Rails 3

Add a config/initializers/raven.rb containing:

require 'raven'

Raven.configure do |config|
  config.server = 'https://...'
end

Rails 2

No support for Rails 2 yet.

Other Rack Servers

Basic RackUp file.

require 'raven'

Raven.configure do |config|
  config.server = 'http://...'
end

use Raven::Rack

Other Ruby

require 'raven'

Raven.configure do |config|
  config.server = 'http://...'
end

Raven.capture # Global style

Raven.capture do # Block style
  ...
end

Testing

$ bundle install
$ rake spec