Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Bullet notifications to airbrake #77

Merged
merged 4 commits into from

2 participants

Konstantin Kosmatov Richard Huang
Konstantin Kosmatov

Bullet on staging/production with notifications to airbrake. What u think about it?

Richard Huang flyerhzm merged commit c8388d6 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 27, 2012
  1. Konstantin Kosmatov
  2. Konstantin Kosmatov
Commits on Sep 28, 2012
  1. Konstantin Kosmatov

    update README

    kosmatov authored
  2. Konstantin Kosmatov

    update README

    kosmatov authored
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 3 deletions.
  1. +4 −2 README.textile
  2. +1 −1  lib/bullet.rb
6 README.textile
View
@@ -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
2  lib/bullet.rb
View
@@ -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,
Something went wrong with that request. Please try again.