Sha256: 807d7d63b4bf4b2eb439f2ec65cc8714a68b6085a17cfdb3fdc6f03a8e35865f
Contents?: true
Size: 1.66 KB
Versions: 2
Compression:
Stored size: 1.66 KB
Contents
= bullhorn The Rack middleware drop-in for the bullhorn exception notification application. See http://bullhorn.it and signup for a free account! == Sinatra Example require 'rubygems' require 'sinatra' # this must be enabled for errors to propagate set :raise_errors, true # of course the best way to do that is: set :raise_errors, production? use Bullhorn, :api_key => "__your key here__", :filters => %w(password password_confirmation) get "/hello" do "Hello world" end get "/fail" do raise "Failure from the app" end == Rails 3 Example Whatever::Application.config.middleware.use Bullhorn, :api_key => "_your api key here_", :filters => %w(password password_confirmation credit_card) == Rails 2.3.5 backward compatibility # in config/environment.rb config.gem 'bullhorn' # in config/initializers/bullhorn.rb Bullhorn::Plugin.options = { :api_key => "_api key here_", :filters => %w(password password_confirmation credit_card) } # in your application controller class ApplicationController < ActionController::Base include Bullhorn::Plugin end == Note on Patches/Pull Requests * Fork the project. * Make your feature addition or bug fix. * Add tests for it. This is important so I don't break it in a future version unintentionally. * Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull) * Send me a pull request. Bonus points for topic branches. == Copyright Copyright (c) 2010 Cyril David. See LICENSE for details.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bullhorn-0.0.2 | README.rdoc |
bullhorn-0.0.1 | README.rdoc |