Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #77 from kosmatov/master

Bullet notifications to airbrake
  • Loading branch information...
commit c8388d6c44482dc5a3fb322f2e38d89d5c726f44 2 parents c3514f9 + befed61
Richard Huang authored

Showing 2 changed files with 5 additions and 3 deletions. Show diff stats Hide diff stats

  1. +4 2 README.textile
  2. +1 1  lib/bullet.rb
6 README.textile
Source Rendered
@@ -50,17 +50,19 @@ config.after_initialize do
50 50 :receiver => 'your_account@jabber.org',
51 51 :show_online_status => true }
52 52 Bullet.rails_logger = true
  53 + Bullet.airbrake = true
53 54 Bullet.disable_browser_cache = true
54 55 end
55 56 </code></pre>
56 57
57 58 The notifier of bullet is a wrap of "uniform_notifier":https://github.com/flyerhzm/uniform_notifier
58 59
59   -The code above will enable all six of the Bullet notification systems:
  60 +The code above will enable all seven of the Bullet notification systems:
60 61 * <code>Bullet.enable</code>: enable Bullet gem, otherwise do nothing
61 62 * <code>Bullet.alert</code>: pop up a JavaScript alert in the browser
62 63 * <code>Bullet.bullet_logger</code>: log to the Bullet log file (Rails.root/log/bullet.log)
63 64 * <code>Bullet.rails_logger</code>: add warnings directly to the Rails log
  65 +* <code>Bullet.airbrake</code>: add notifications to airbrake
64 66 * <code>Bullet.console</code>: log warnings to your browser's console.log (Safari/Webkit browsers or Firefox w/Firebug installed)
65 67 * <code>Bullet.growl</code>: pop up Growl warnings if your system has Growl installed. Requires a little bit of configuration
66 68 * <code>Bullet.xmpp</code>: send XMPP/Jabber notifications to the receiver indicated. Note that the code will currently not handle the adding of contacts, so you will need to make both accounts indicated know each other manually before you will receive any notifications. If you restart the development server frequently, the 'coming online' sound for the bullet account may start to annoy - in this case set :show_online_status to false; you will still get notifications, but the bullet account won't announce it's online status anymore.
@@ -101,7 +103,7 @@ These two lines are notifications that unused eager loadings have been encounter
101 103
102 104 ****************************************************************************
103 105
104   -h2. Growl and XMPP/Jabber Support
  106 +h2. Growl, XMPP/Jabber and Airbrake Support
105 107
106 108 see "https://github.com/flyerhzm/uniform_notifier":https://github.com/flyerhzm/uniform_notifier
107 109
2  lib/bullet.rb
@@ -33,7 +33,7 @@ class <<self
33 33 attr_accessor :enable, :disable_browser_cache
34 34 attr_reader :notification_collector
35 35
36   - delegate :alert=, :console=, :growl=, :rails_logger=, :xmpp=, :to => UniformNotifier
  36 + delegate :alert=, :console=, :growl=, :rails_logger=, :xmpp=, :airbrake=, :to => UniformNotifier
37 37
38 38 DETECTORS = [ Bullet::Detector::NPlusOneQuery,
39 39 Bullet::Detector::UnusedEagerAssociation,

0 comments on commit c8388d6

Please sign in to comment.
Something went wrong with that request. Please try again.