Permalink
Browse files

Merge pull request #77 from kosmatov/master

Bullet notifications to airbrake
  • Loading branch information...
2 parents c3514f9 + befed61 commit c8388d6c44482dc5a3fb322f2e38d89d5c726f44 @flyerhzm committed Sep 28, 2012
Showing with 5 additions and 3 deletions.
  1. +4 −2 README.textile
  2. +1 −1 lib/bullet.rb
View
6 README.textile
@@ -50,17 +50,19 @@ config.after_initialize do
:receiver => 'your_account@jabber.org',
:show_online_status => true }
Bullet.rails_logger = true
+ Bullet.airbrake = true
Bullet.disable_browser_cache = true
end
</code></pre>
The notifier of bullet is a wrap of "uniform_notifier":https://github.com/flyerhzm/uniform_notifier
-The code above will enable all six of the Bullet notification systems:
+The code above will enable all seven of the Bullet notification systems:
* <code>Bullet.enable</code>: enable Bullet gem, otherwise do nothing
* <code>Bullet.alert</code>: pop up a JavaScript alert in the browser
* <code>Bullet.bullet_logger</code>: log to the Bullet log file (Rails.root/log/bullet.log)
* <code>Bullet.rails_logger</code>: add warnings directly to the Rails log
+* <code>Bullet.airbrake</code>: add notifications to airbrake
* <code>Bullet.console</code>: log warnings to your browser's console.log (Safari/Webkit browsers or Firefox w/Firebug installed)
* <code>Bullet.growl</code>: pop up Growl warnings if your system has Growl installed. Requires a little bit of configuration
* <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
****************************************************************************
-h2. Growl and XMPP/Jabber Support
+h2. Growl, XMPP/Jabber and Airbrake Support
see "https://github.com/flyerhzm/uniform_notifier":https://github.com/flyerhzm/uniform_notifier
View
2 lib/bullet.rb
@@ -33,7 +33,7 @@ class <<self
attr_accessor :enable, :disable_browser_cache
attr_reader :notification_collector
- delegate :alert=, :console=, :growl=, :rails_logger=, :xmpp=, :to => UniformNotifier
+ delegate :alert=, :console=, :growl=, :rails_logger=, :xmpp=, :airbrake=, :to => UniformNotifier
DETECTORS = [ Bullet::Detector::NPlusOneQuery,
Bullet::Detector::UnusedEagerAssociation,

0 comments on commit c8388d6

Please sign in to comment.