exception_notification_more_info 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +7 -0
  2. data/Appraisals +7 -0
  3. data/CHANGELOG.rdoc +141 -0
  4. data/CODE_OF_CONDUCT.md +22 -0
  5. data/CONTRIBUTING.md +42 -0
  6. data/Gemfile +3 -0
  7. data/MIT-LICENSE +20 -0
  8. data/README.md +839 -0
  9. data/Rakefile +23 -0
  10. data/examples/sinatra/Gemfile +8 -0
  11. data/examples/sinatra/Gemfile.lock +95 -0
  12. data/examples/sinatra/Procfile +2 -0
  13. data/examples/sinatra/README.md +11 -0
  14. data/examples/sinatra/config.ru +3 -0
  15. data/examples/sinatra/sinatra_app.rb +32 -0
  16. data/exception_notification_more_info.gemspec +34 -0
  17. data/gemfiles/rails4_0.gemfile +7 -0
  18. data/gemfiles/rails4_1.gemfile +7 -0
  19. data/gemfiles/rails4_2.gemfile +7 -0
  20. data/lib/exception_notification.rb +11 -0
  21. data/lib/exception_notification/rack.rb +59 -0
  22. data/lib/exception_notification/rails.rb +8 -0
  23. data/lib/exception_notification/resque.rb +24 -0
  24. data/lib/exception_notification/sidekiq.rb +31 -0
  25. data/lib/exception_notifier.rb +121 -0
  26. data/lib/exception_notifier/base_notifier.rb +25 -0
  27. data/lib/exception_notifier/campfire_notifier.rb +36 -0
  28. data/lib/exception_notifier/email_notifier.rb +204 -0
  29. data/lib/exception_notifier/hipchat_notifier.rb +45 -0
  30. data/lib/exception_notifier/irc_notifier.rb +51 -0
  31. data/lib/exception_notifier/modules/backtrace_cleaner.rb +13 -0
  32. data/lib/exception_notifier/notifier.rb +16 -0
  33. data/lib/exception_notifier/slack_notifier.rb +73 -0
  34. data/lib/exception_notifier/views/exception_notifier/_backtrace.html.erb +3 -0
  35. data/lib/exception_notifier/views/exception_notifier/_backtrace.text.erb +1 -0
  36. data/lib/exception_notifier/views/exception_notifier/_data.html.erb +6 -0
  37. data/lib/exception_notifier/views/exception_notifier/_data.text.erb +1 -0
  38. data/lib/exception_notifier/views/exception_notifier/_environment.html.erb +10 -0
  39. data/lib/exception_notifier/views/exception_notifier/_environment.text.erb +5 -0
  40. data/lib/exception_notifier/views/exception_notifier/_request.html.erb +36 -0
  41. data/lib/exception_notifier/views/exception_notifier/_request.text.erb +10 -0
  42. data/lib/exception_notifier/views/exception_notifier/_session.html.erb +10 -0
  43. data/lib/exception_notifier/views/exception_notifier/_session.text.erb +2 -0
  44. data/lib/exception_notifier/views/exception_notifier/_title.html.erb +3 -0
  45. data/lib/exception_notifier/views/exception_notifier/_title.text.erb +3 -0
  46. data/lib/exception_notifier/views/exception_notifier/background_exception_notification.html.erb +53 -0
  47. data/lib/exception_notifier/views/exception_notifier/background_exception_notification.text.erb +14 -0
  48. data/lib/exception_notifier/views/exception_notifier/exception_notification.html.erb +54 -0
  49. data/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb +24 -0
  50. data/lib/exception_notifier/webhook_notifier.rb +47 -0
  51. data/lib/generators/exception_notification/install_generator.rb +15 -0
  52. data/lib/generators/exception_notification/templates/exception_notification.rb +53 -0
  53. data/test/dummy/.gitignore +4 -0
  54. data/test/dummy/Gemfile +34 -0
  55. data/test/dummy/Gemfile.lock +137 -0
  56. data/test/dummy/Rakefile +7 -0
  57. data/test/dummy/app/controllers/application_controller.rb +3 -0
  58. data/test/dummy/app/controllers/posts_controller.rb +30 -0
  59. data/test/dummy/app/helpers/application_helper.rb +2 -0
  60. data/test/dummy/app/helpers/posts_helper.rb +2 -0
  61. data/test/dummy/app/models/post.rb +2 -0
  62. data/test/dummy/app/views/exception_notifier/_new_bkg_section.html.erb +1 -0
  63. data/test/dummy/app/views/exception_notifier/_new_bkg_section.text.erb +1 -0
  64. data/test/dummy/app/views/exception_notifier/_new_section.html.erb +1 -0
  65. data/test/dummy/app/views/exception_notifier/_new_section.text.erb +1 -0
  66. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  67. data/test/dummy/app/views/posts/_form.html.erb +0 -0
  68. data/test/dummy/app/views/posts/new.html.erb +0 -0
  69. data/test/dummy/app/views/posts/show.html.erb +0 -0
  70. data/test/dummy/config.ru +4 -0
  71. data/test/dummy/config/application.rb +42 -0
  72. data/test/dummy/config/boot.rb +6 -0
  73. data/test/dummy/config/database.yml +22 -0
  74. data/test/dummy/config/environment.rb +17 -0
  75. data/test/dummy/config/environments/development.rb +25 -0
  76. data/test/dummy/config/environments/production.rb +50 -0
  77. data/test/dummy/config/environments/test.rb +38 -0
  78. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  79. data/test/dummy/config/initializers/inflections.rb +10 -0
  80. data/test/dummy/config/initializers/mime_types.rb +5 -0
  81. data/test/dummy/config/initializers/secret_token.rb +8 -0
  82. data/test/dummy/config/initializers/session_store.rb +8 -0
  83. data/test/dummy/config/locales/en.yml +5 -0
  84. data/test/dummy/config/routes.rb +3 -0
  85. data/test/dummy/db/migrate/20110729022608_create_posts.rb +15 -0
  86. data/test/dummy/db/schema.rb +24 -0
  87. data/test/dummy/db/seeds.rb +7 -0
  88. data/test/dummy/lib/tasks/.gitkeep +0 -0
  89. data/test/dummy/public/404.html +26 -0
  90. data/test/dummy/public/422.html +26 -0
  91. data/test/dummy/public/500.html +26 -0
  92. data/test/dummy/public/favicon.ico +0 -0
  93. data/test/dummy/public/images/rails.png +0 -0
  94. data/test/dummy/public/index.html +239 -0
  95. data/test/dummy/public/javascripts/application.js +2 -0
  96. data/test/dummy/public/javascripts/controls.js +965 -0
  97. data/test/dummy/public/javascripts/dragdrop.js +974 -0
  98. data/test/dummy/public/javascripts/effects.js +1123 -0
  99. data/test/dummy/public/javascripts/prototype.js +6001 -0
  100. data/test/dummy/public/javascripts/rails.js +191 -0
  101. data/test/dummy/public/robots.txt +5 -0
  102. data/test/dummy/public/stylesheets/.gitkeep +0 -0
  103. data/test/dummy/public/stylesheets/scaffold.css +56 -0
  104. data/test/dummy/script/rails +6 -0
  105. data/test/dummy/test/fixtures/posts.yml +11 -0
  106. data/test/dummy/test/functional/posts_controller_test.rb +224 -0
  107. data/test/dummy/test/test_helper.rb +13 -0
  108. data/test/exception_notification/rack_test.rb +20 -0
  109. data/test/exception_notifier/campfire_notifier_test.rb +100 -0
  110. data/test/exception_notifier/email_notifier_test.rb +185 -0
  111. data/test/exception_notifier/hipchat_notifier_test.rb +177 -0
  112. data/test/exception_notifier/irc_notifier_test.rb +121 -0
  113. data/test/exception_notifier/sidekiq_test.rb +27 -0
  114. data/test/exception_notifier/slack_notifier_test.rb +179 -0
  115. data/test/exception_notifier/webhook_notifier_test.rb +68 -0
  116. data/test/exception_notifier_test.rb +103 -0
  117. data/test/test_helper.rb +18 -0
  118. metadata +428 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c9bb964a3e4393ffc48e677a988b17bad7ea9691
4
+ data.tar.gz: 0c736353aa1f91a04de2ec5df8c0d9e215b12fa9
5
+ SHA512:
6
+ metadata.gz: 87ea24fd75ec83dc859676ebb3f8caa7b1ec5c32bc9f6064d6eefbe30aaaf82d2f2eb994cf58326727df86dde68a05ed175789f5f1506b6ecd4a0e536f472185
7
+ data.tar.gz: 20ccff4250e9a799a0ec76254ecbd372bb056c6838270e719581e03059c48e4495e0791dc96f72232640d1a04f3ffabd06332987de0686cbb31911c3d45edfb3
@@ -0,0 +1,7 @@
1
+ rails_versions = ['~> 4.0.5', '~> 4.1.1', '~> 4.2.0']
2
+
3
+ rails_versions.each do |rails_version|
4
+ appraise "rails#{rails_version.slice(/\d+\.\d+/).gsub('.', '_')}" do
5
+ gem 'rails', rails_version
6
+ end
7
+ end
@@ -0,0 +1,141 @@
1
+ == undefined
2
+
3
+ * enhancements
4
+ * update URL in gemspec (by @ktdreyer)
5
+ * Add `hostname` to Slack notifier (by @juanazam)
6
+
7
+ == 4.1.4
8
+
9
+ * bug fixes
10
+ * HTML-escape exception messages sent to hipchat (by @gburt)
11
+ * Send the correct options in send_notice (by @pcboy)
12
+
13
+ == 4.1.3
14
+
15
+ * enhancements
16
+ * Add a way to have a backtrace callback on notifiers (by @pcboy)
17
+
18
+ * bug fixes
19
+ * Fix incompatible character encodings error (by @san650)
20
+
21
+ == 4.1.2
22
+ * enhancements
23
+ * Change format of Slack notifications (by @eldano)
24
+
25
+ == 4.1.1
26
+
27
+ * bug fixes
28
+ * Alternate way to monkeypatch (by @joshco)
29
+ * Fix BacktraceCleaner namespacing (by @esdlocomb)
30
+
31
+ == 4.1.0
32
+
33
+ * enhancements
34
+ * Add support for Sidekiq 3.0 (by @mbrictson)
35
+ * Add IRC notifier (by @nathanjsharpe)
36
+ * Add ActionController::UnknownFormat to default ignored exceptions (by @rezwyi)
37
+ * Add message_template option to HipChat notifier (by @makimoto)
38
+ * Add support for HipChat APIv2 (by @michaelherold)
39
+ * Add Slack notifier (by @martin1keogh)
40
+ * Add option for notifying on `X-Cascade` header (by @etipton)
41
+ * Improve backtrace data (by @munkius)
42
+
43
+ * bug fixes
44
+ * Fix `Rails.root` exception (by @hovatterz)
45
+ * Fix email notifier in Sinatra (by @betesh)
46
+
47
+ == 4.0.1
48
+
49
+ * enhancements
50
+ * Add HipChat notifier (by @j15e)
51
+ * Log backtrace when notification fails
52
+ * Send more info in Webhook notifier
53
+ * Add HTTP method to request section
54
+
55
+ == 4.0.0
56
+
57
+ * enhancements
58
+ * Be able to override delivery_method (by @jweslley)
59
+ * Add logger to log when notifications cannot be shiped (by @jweslley)
60
+ * Add Rails generator to create an initializer file (by @jweslley)
61
+ * Add rails engine (by @jweslley)
62
+ * Add sidekiq support (by @jweslley)
63
+ * Add resque support (by @jweslley)
64
+ * Better style for html views (by @jweslley)
65
+ * Support customizable Mailer class (by @Bishop)
66
+ * Turn ExceptionNotification Rails agnostic (by @jweslley)
67
+ * Support custom ignore exceptions for background notifications (by @jweslley)
68
+ * Be able to implement custom notifiers (by @jweslley)
69
+ * Add Webhook notifier (by @jweslley)
70
+ * Rails 4 compatible
71
+
72
+ * bug fixes
73
+ * Don't error if Rails isn't defined. (by @dpogue)
74
+ * Fix call to #normalize_digits (by @ghiculescu)
75
+
76
+ == 3.0.1
77
+
78
+ * enhancements
79
+ * Custom Headers (by @DouweM)
80
+ * Make Tinder a soft-dependency (by @fgrehm)
81
+
82
+ * bug fixes
83
+ * Fix `code converter not found` (by @alanjds)
84
+
85
+ == 3.0.0
86
+
87
+ * enhancements
88
+ * Campfire integration
89
+ * Support for HTML notifications (by @Xenofex)
90
+ * Be able to override SMTP settings (by @piglop and @Macint)
91
+
92
+ * bug fixes
93
+ * Fix encoding issues
94
+ * Allow default sections to be overridden (by @jfarmer)
95
+ * Don't automatically deliver background notifications
96
+
97
+ == 2.6.1
98
+
99
+ * bug fixes
100
+ * Fix finding custom sections on Background notifications. Fixes [#68]
101
+
102
+ == 2.6.0
103
+
104
+ * enhancements
105
+ * Avoid raising exception on dev mode
106
+ * Add ignore_if option to avoid sending certain notifications.
107
+ * Add normalize_subject option to remove numbers from email so that they thread (by @jjb)
108
+ * Allow the user to provide a custom message and hash of data (by @jjb)
109
+ * Add support for configurable background sections and a data partial (by @jeffrafter)
110
+ * Include timestamp of exception in notification body
111
+ * Add support for rack based session management (by @phoet)
112
+ * Add ignore_crawlers option to ignore exceptions generated by crawlers
113
+ * Add verbode_subject option to exclude exception message from subject (by @amishyn)
114
+
115
+ * bug fixes
116
+ * Correctly set view path at the right time so that new sections are properly available (by @scrozier)
117
+ * Fix handling exceptions with no backtrace
118
+ * Fix issue on Solaris with hostname (by @bluescripts)
119
+ * Ensure exceptions in view templates doesn't cause problems, allowing the notification to be sent anyway (by @sce)
120
+
121
+ == 2.5.1
122
+
123
+ * bug fixes
124
+ * Fix lib references on gemspec
125
+
126
+ == 2.5.0
127
+
128
+ * enhancements
129
+ * Add Background Notifications
130
+
131
+ * bug fixes
132
+ * Filter session_id on secure requests
133
+
134
+ == 2.4.1
135
+
136
+ * enhancements
137
+ * Use values set for the middleware as defaults
138
+
139
+ * bug fixes
140
+ * Avoid sending emails with large subjects
141
+ * Avoid having to add 'require' option on gem configuration
@@ -0,0 +1,22 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
6
+
7
+ Examples of unacceptable behavior by participants include:
8
+
9
+ * The use of sexualized language or imagery
10
+ * Personal attacks
11
+ * Trolling or insulting/derogatory comments
12
+ * Public or private harassment
13
+ * Publishing other's private information, such as physical or electronic addresses, without explicit permission
14
+ * Other unethical or unprofessional conduct.
15
+
16
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.
17
+
18
+ This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.
19
+
20
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
21
+
22
+ This Code of Conduct is adapted from the [Contributor Covenant, version 1.2.0](http://contributor-covenant.org/version/1/2/0/).
@@ -0,0 +1,42 @@
1
+ # How to contribute
2
+
3
+ We love your contribution, for it's essential for making ExceptionNotification greater every day.
4
+ In order to keep it as easy as possible to contribute changes, here are a few guidelines that we
5
+ need contributors to follow:
6
+
7
+ ## First of all
8
+
9
+ * Check if the issue you're going to submit isn't already submitted in
10
+ the [Issues](https://github.com/smartinez87/exception_notification/issues) page.
11
+
12
+ ## Issues
13
+
14
+ * Submit a ticket for your issue, assuming one does not already exist.
15
+ * The issue must:
16
+ * Clearly describe the problem including steps to reproduce when it is a bug.
17
+ * Also include all the information you can to make it easier for us to reproduce it,
18
+ like OS version, gem versions, etc...
19
+ * Even better, provide a failing test case for it.
20
+
21
+ ## Pull Requests
22
+
23
+ If you've gone the extra mile and have a patch that fixes the issue, you
24
+ should submit a Pull Request!
25
+
26
+ * Fork the repo on Github.
27
+ * Run Bundler and setup your test database
28
+
29
+ ```
30
+ bundle
31
+ cd test/dummy
32
+ bundle
33
+ bundle exec rake db:reset
34
+ bundle exec rake db:test:prepare
35
+ ```
36
+ * Create a topic branch from where you want to base your work.
37
+ * Add a test for your change. Only refactoring and documentation changes
38
+ require no new tests. If you are adding functionality or fixing a bug,
39
+ we need a test!
40
+ * Run _all_ the tests to assure nothing else was broken. We only take pull requests with passing tests.
41
+ * Check for unnecessary whitespace with `git diff --check` before committing.
42
+ * Push to your fork and submit a pull request.
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2005 Jamis Buck
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,839 @@
1
+ # Upgraded Exception Noti
2
+
3
+ shows request params, user agent, remote ip!
4
+
5
+ # Exception Notification
6
+
7
+ [![Gem Version](https://fury-badge.herokuapp.com/rb/exception_notification.png)](http://badge.fury.io/rb/exception_notification)
8
+ [![Travis](https://api.travis-ci.org/smartinez87/exception_notification.png)](http://travis-ci.org/smartinez87/exception_notification)
9
+ [![Coverage Status](https://coveralls.io/repos/smartinez87/exception_notification/badge.png?branch=master)](https://coveralls.io/r/smartinez87/exception_notification)
10
+ [![Code Climate](https://codeclimate.com/github/smartinez87/exception_notification.png)](https://codeclimate.com/github/smartinez87/exception_notification)
11
+
12
+ **THIS README IS FOR THE MASTER BRANCH AND REFLECTS THE WORK CURRENTLY EXISTING ON THE MASTER BRANCH. IF YOU ARE WISHING TO USE A NON-MASTER BRANCH OF EXCEPTION NOTIFICATION, PLEASE CONSULT THAT BRANCH'S README AND NOT THIS ONE.**
13
+
14
+ ---
15
+
16
+ The Exception Notification gem provides a set of [notifiers](#notifiers) for sending notifications when errors occur in a Rack/Rails application. The built-in notifiers can deliver notifications by [email](#email-notifier), [Campfire](#campfire-notifier), [HipChat](#hipchat-notifier), [Slack](#slack-notifier), [IRC](#irc-notifier) or via custom [WebHooks](#webhook-notifier).
17
+
18
+ There's a great [Railscast about Exception Notification](http://railscasts.com/episodes/104-exception-notifications-revised) you can see that may help you getting started.
19
+
20
+ [Follow us on Twitter](https://twitter.com/exception_notif) to get updates and notices about new releases.
21
+
22
+ ## Requirements
23
+
24
+ * Ruby 2.0 or greater
25
+ * Rails 4.0 or greater, Sinatra or another Rack-based application.
26
+
27
+ For previous releases, please checkout [this](#versions).
28
+
29
+ ## Getting Started
30
+
31
+ Add the following line to your application's Gemfile:
32
+
33
+ ```ruby
34
+ gem 'exception_notification'
35
+ ```
36
+
37
+ ### Rails
38
+
39
+ ExceptionNotification is used as a rack middleware, or in the environment you want it to run. In most cases you would want ExceptionNotification to run on production. Thus, you can make it work by putting the following lines in your `config/environments/production.rb`:
40
+
41
+ ```ruby
42
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
43
+ :email => {
44
+ :email_prefix => "[PREFIX] ",
45
+ :sender_address => %{"notifier" <notifier@example.com>},
46
+ :exception_recipients => %w{exceptions@example.com}
47
+ }
48
+ ```
49
+
50
+ **Note**: In order to enable delivery notifications by email make sure you have [ActionMailer configured](#actionmailer-configuration).
51
+
52
+ ### Rack/Sinatra
53
+
54
+ In order to use ExceptionNotification with Sinatra, please take a look in the [example application](https://github.com/smartinez87/exception_notification/tree/master/examples/sinatra).
55
+
56
+ ## Notifiers
57
+
58
+ ExceptionNotification relies on notifiers to deliver notifications when errors occur in your applications. By default, six notifiers are available:
59
+
60
+ * [Campfire notifier](#campfire-notifier)
61
+ * [Email notifier](#email-notifier)
62
+ * [HipChat notifier](#hipchat-notifier)
63
+ * [IRC notifier](#irc-notifier)
64
+ * [Slack notifier](#slack-notifier)
65
+ * [WebHook notifier](#webhook-notifier)
66
+
67
+ But, you also can easily implement your own [custom notifier](#custom-notifier).
68
+
69
+ ### Campfire notifier
70
+
71
+ This notifier sends notifications to your Campfire room.
72
+
73
+ #### Usage
74
+
75
+ Just add the [tinder](https://github.com/collectiveidea/tinder) gem to your `Gemfile`:
76
+
77
+ ```ruby
78
+ gem 'tinder'
79
+ ```
80
+
81
+ To configure it, you need to set the `subdomain`, `token` and `room_name` options, like this:
82
+
83
+ ```ruby
84
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
85
+ :email => {
86
+ :email_prefix => "[PREFIX] ",
87
+ :sender_address => %{"notifier" <notifier@example.com>},
88
+ :exception_recipients => %w{exceptions@example.com}
89
+ },
90
+ :campfire => {
91
+ :subdomain => 'my_subdomain',
92
+ :token => 'my_token',
93
+ :room_name => 'my_room'
94
+ }
95
+ ```
96
+
97
+ #### Options
98
+
99
+ ##### subdomain
100
+
101
+ *String, required*
102
+
103
+ Your subdomain at Campfire.
104
+
105
+ ##### room_name
106
+
107
+ *String, required*
108
+
109
+ The Campfire room where the notifications must be published to.
110
+
111
+ ##### token
112
+
113
+ *String, required*
114
+
115
+ The API token to allow access to your Campfire account.
116
+
117
+
118
+ For more options to set Campfire, like _ssl_, check [here](https://github.com/collectiveidea/tinder/blob/master/lib/tinder/campfire.rb#L17).
119
+
120
+ ### Email notifier
121
+
122
+ The Email notifier sends notifications by email. The notifications/emails sent includes information about the current request, session, and environment, and also gives a backtrace of the exception.
123
+
124
+ After an exception notification has been delivered the rack environment variable `exception_notifier.delivered` will be set to true.
125
+
126
+ #### ActionMailer configuration
127
+
128
+ For the email to be sent, there must be a default ActionMailer `delivery_method` setting configured. If you do not have one, you can use the following code (assuming your app server machine has `sendmail`). Depending on the environment you want ExceptionNotification to run in, put the following code in your `config/environments/production.rb` and/or `config/environments/development.rb`:
129
+
130
+ ```ruby
131
+ config.action_mailer.delivery_method = :sendmail
132
+ # Defaults to:
133
+ # config.action_mailer.sendmail_settings = {
134
+ # :location => '/usr/sbin/sendmail',
135
+ # :arguments => '-i -t'
136
+ # }
137
+ config.action_mailer.perform_deliveries = true
138
+ config.action_mailer.raise_delivery_errors = true
139
+ ```
140
+
141
+ #### Options
142
+
143
+ ##### sender_address
144
+
145
+ *String, default: %("Exception Notifier" <exception.notifier@example.com>)*
146
+
147
+ Who the message is from.
148
+
149
+ ##### exception_recipients
150
+
151
+ *String/Array of strings, default: []*
152
+
153
+ Who the message is destined for, can be a string of addresses, or an array of addresses.
154
+
155
+ ##### email_prefix
156
+
157
+ *String, default: [ERROR]*
158
+
159
+ The subject's prefix of the message.
160
+
161
+ ##### sections
162
+
163
+ *Array of strings, default: %w(request session environment backtrace)*
164
+
165
+ By default, the notification email includes four parts: request, session, environment, and backtrace (in that order). You can customize how each of those sections are rendered by placing a partial named for that part in your `app/views/exception_notifier` directory (e.g., `_session.rhtml`). Each partial has access to the following variables:
166
+
167
+ ```ruby
168
+ @kontroller # the controller that caused the error
169
+ @request # the current request object
170
+ @exception # the exception that was raised
171
+ @backtrace # a sanitized version of the exception's backtrace
172
+ @data # a hash of optional data values that were passed to the notifier
173
+ @sections # the array of sections to include in the email
174
+ ```
175
+
176
+ You can reorder the sections, or exclude sections completely, by using `sections` option. You can even add new sections that
177
+ describe application-specific data--just add the section's name to the list (wherever you'd like), and define the corresponding partial. Like the following example with two new added sections:
178
+
179
+ ```ruby
180
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
181
+ :email => {
182
+ :email_prefix => "[PREFIX] ",
183
+ :sender_address => %{"notifier" <notifier@example.com>},
184
+ :exception_recipients => %w{exceptions@example.com},
185
+ :sections => %w{my_section1 my_section2}
186
+ }
187
+ ```
188
+
189
+ Place your custom sections under `./app/views/exception_notifier/` with the suffix `.text.erb`, e.g. `./app/views/exception_notifier/_my_section1.text.erb`.
190
+
191
+ If your new section requires information that isn't available by default, make sure it is made available to the email using the `exception_data` macro:
192
+
193
+ ```ruby
194
+ class ApplicationController < ActionController::Base
195
+ before_filter :log_additional_data
196
+ ...
197
+ protected
198
+ def log_additional_data
199
+ request.env["exception_notifier.exception_data"] = {
200
+ :document => @document,
201
+ :person => @person
202
+ }
203
+ end
204
+ ...
205
+ end
206
+ ```
207
+
208
+ In the above case, `@document` and `@person` would be made available to the email renderer, allowing your new section(s) to access and display them. See the existing sections defined by the plugin for examples of how to write your own.
209
+
210
+ ##### background_sections
211
+
212
+ *Array of strings, default: %w(backtrace data)*
213
+
214
+ When using [background notifications](#background-notifications) some variables are not available in the views, like `@kontroller` and `@request`. Thus, you may want to include different sections for background notifications:
215
+
216
+ ```ruby
217
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
218
+ :email => {
219
+ :email_prefix => "[PREFIX] ",
220
+ :sender_address => %{"notifier" <notifier@example.com>},
221
+ :exception_recipients => %w{exceptions@example.com},
222
+ :background_sections => %w{my_section1 my_section2 backtrace data}
223
+ }
224
+ ```
225
+
226
+ ##### email_headers
227
+
228
+ *Hash of strings, default: {}*
229
+
230
+ Additionally, you may want to set customized headers on the outcoming emails. To do so, simply use the `:email_headers` option:
231
+
232
+ ```ruby
233
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
234
+ :email => {
235
+ :email_prefix => "[PREFIX] ",
236
+ :sender_address => %{"notifier" <notifier@example.com>},
237
+ :exception_recipients => %w{exceptions@example.com},
238
+ :email_headers => { "X-Custom-Header" => "foobar" }
239
+ }
240
+ ```
241
+
242
+ ##### verbose_subject
243
+
244
+ *Boolean, default: true*
245
+
246
+ If enabled, include the exception message in the subject. Use `:verbose_subject => false` to exclude it.
247
+
248
+ ##### normalize_subject
249
+
250
+ *Boolean, default: false*
251
+
252
+ If enabled, remove numbers from subject so they thread as a single one. Use `:normalize_subject => true` to enable it.
253
+
254
+ ##### email_format
255
+
256
+ *Symbol, default: :text*
257
+
258
+ By default, ExceptionNotification sends emails in plain text, in order to sends multipart notifications (aka HTML emails) use `:email_format => :html`.
259
+
260
+ ##### delivery_method
261
+
262
+ *Symbol, default: :smtp*
263
+
264
+ By default, ExceptionNotification sends emails using the ActionMailer configuration of the application. In order to send emails by another delivery method, use the `delivery_method` option:
265
+
266
+ ```ruby
267
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
268
+ :email => {
269
+ :email_prefix => "[PREFIX] ",
270
+ :sender_address => %{"notifier" <notifier@example.com>},
271
+ :exception_recipients => %w{exceptions@example.com},
272
+ :delivery_method => :postmark,
273
+ :postmark_settings => {
274
+ :api_key => ENV["POSTMARK_API_KEY"]
275
+ }
276
+ }
277
+ ```
278
+
279
+ Besides the `delivery_method` option, you also can customize the mailer settings by passing a hash under an option named `DELIVERY_METHOD_settings`. Thus, you can use override specific SMTP settings for notifications using:
280
+
281
+ ```ruby
282
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
283
+ :email => {
284
+ :email_prefix => "[PREFIX] ",
285
+ :sender_address => %{"notifier" <notifier@example.com>},
286
+ :exception_recipients => %w{exceptions@example.com},
287
+ :delivery_method => :smtp,
288
+ :smtp_settings => {
289
+ :user_name => "bob",
290
+ :password => "password",
291
+ }
292
+ }
293
+ ```
294
+
295
+ A complete list of `smtp_settings` options can be found in the [ActionMailer Configuration documentation](http://api.rubyonrails.org/classes/ActionMailer/Base.html#class-ActionMailer::Base-label-Configuration+options).
296
+
297
+ ##### mailer_parent
298
+
299
+ *String, default: ActionMailer::Base*
300
+
301
+ The parent mailer which ExceptionNotification mailer inherit from.
302
+
303
+ ##### deliver_with
304
+
305
+ *Symbol, default: :deliver_now
306
+
307
+ The method name to send emalis using ActionMailer.
308
+
309
+ ### HipChat notifier
310
+
311
+ This notifier sends notifications to your Hipchat room.
312
+
313
+ #### Usage
314
+
315
+ Just add the [hipchat](https://github.com/hipchat/hipchat) gem to your `Gemfile`:
316
+
317
+ ```ruby
318
+ gem 'hipchat'
319
+ ```
320
+
321
+ To configure it, you need to set the `token` and `room_name` options, like this:
322
+
323
+ ```ruby
324
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
325
+ :email => {
326
+ :email_prefix => "[PREFIX] ",
327
+ :sender_address => %{"notifier" <notifier@example.com>},
328
+ :exception_recipients => %w{exceptions@example.com}
329
+ },
330
+ :hipchat => {
331
+ :api_token => 'my_token',
332
+ :room_name => 'my_room'
333
+ }
334
+ ```
335
+
336
+ #### Options
337
+
338
+ ##### room_name
339
+
340
+ *String, required*
341
+
342
+ The HipChat room where the notifications must be published to.
343
+
344
+ ##### api_token
345
+
346
+ *String, required*
347
+
348
+ The API token to allow access to your HipChat account.
349
+
350
+ ##### notify
351
+
352
+ *Boolean, optional*
353
+
354
+ Notify users. Default : false.
355
+
356
+ ##### color
357
+
358
+ *String, optional*
359
+
360
+ Color of the message. Default : 'red'.
361
+
362
+ ##### from
363
+
364
+ *String, optional, maximum length : 15*
365
+
366
+ Message will appear from this nickname. Default : 'Exception'.
367
+
368
+ For all options & possible values see [Hipchat API](https://www.hipchat.com/docs/api/method/rooms/message).
369
+
370
+ ### IRC notifier
371
+
372
+ This notifier sends notifications to an IRC channel using the carrier-pigeon gem.
373
+
374
+ #### Usage
375
+
376
+ Just add the [carrier-pigeon](https://github.com/portertech/carrier-pigeon) gem to your `Gemfile`:
377
+
378
+ ```ruby
379
+ gem 'carrier-pigeon'
380
+ ```
381
+
382
+ To configure it, you need to set at least the 'domain' option, like this:
383
+
384
+ ```ruby
385
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
386
+ :email => {
387
+ :email_prefix => "[PREFIX] ",
388
+ :sender_address => %{"notifier" <notifier@example.com>},
389
+ :exception_recipients => %w{exceptions@example.com}
390
+ },
391
+ :irc => {
392
+ :domain => 'irc.example.com'
393
+ }
394
+ ```
395
+
396
+ There are several other options, which are described below. For example, to use ssl and a password, add a prefix, post to the '#log' channel, and include recipients in the message (so that they will be notified), your configuration might look like this:
397
+
398
+ ```ruby
399
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
400
+ :irc => {
401
+ :domain => 'irc.example.com',
402
+ :nick => 'BadNewsBot',
403
+ :password => 'secret',
404
+ :port => 6697,
405
+ :channel => '#log',
406
+ :ssl => true,
407
+ :prefix => '[Exception Notification]',
408
+ :recipients => ['peter', 'michael', 'samir']
409
+ }
410
+
411
+ ```
412
+
413
+ #### Options
414
+
415
+ ##### domain
416
+
417
+ *String, required*
418
+
419
+ The domain name of your IRC server.
420
+
421
+ ##### nick
422
+
423
+ *String, optional*
424
+
425
+ The message will appear from this nick. Default : 'ExceptionNotifierBot'.
426
+
427
+ ##### password
428
+
429
+ *String, optional*
430
+
431
+ Password for your IRC server.
432
+
433
+ ##### port
434
+
435
+ *String, optional*
436
+
437
+ Port your IRC server is listening on. Default : 6667.
438
+
439
+ ##### channel
440
+
441
+ *String, optional*
442
+
443
+ Message will appear in this channel. Default : '#log'.
444
+
445
+ ##### notice
446
+
447
+ *Boolean, optional*
448
+
449
+ Send a notice. Default : false.
450
+
451
+ ##### ssl
452
+
453
+ *Boolean, optional*
454
+
455
+ Whether to use SSL. Default : false.
456
+
457
+ ##### join
458
+
459
+ *Boolean, optional*
460
+
461
+ Join a channel. Default : false.
462
+
463
+ ##### recipients
464
+
465
+ *Array of strings, optional*
466
+
467
+ Nicks to include in the message. Default: []
468
+
469
+ ### Slack notifier
470
+
471
+ This notifier sends notifications to a slack channel using the slack-notifier gem.
472
+
473
+ #### Usage
474
+
475
+ Just add the [slack-notifier](https://github.com/stevenosloan/slack-notifier) gem to your `Gemfile`:
476
+
477
+ ```ruby
478
+ gem 'slack-notifier'
479
+ ```
480
+
481
+ To configure it, you need to set at least the 'webhook_url' option, like this:
482
+
483
+ ```ruby
484
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
485
+ :email => {
486
+ :email_prefix => "[PREFIX] ",
487
+ :sender_address => %{"notifier" <notifier@example.com>},
488
+ :exception_recipients => %w{exceptions@example.com}
489
+ },
490
+ :slack => {
491
+ :webhook_url => "[Your webhook url]",
492
+ :channel => "#exceptions",
493
+ :additional_parameters => {
494
+ :icon_url => "http://image.jpg",
495
+ :mrkdwn => true
496
+ }
497
+ }
498
+ ```
499
+
500
+ The slack notification will include any data saved under `env["exception_notifier.exception_data"]`. If you find this too verbose, you can determine to exclude certain information by doing the following:
501
+
502
+ ```ruby
503
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
504
+ :slack => {
505
+ :webhook_url => "[Your webhook url]",
506
+ :channel => "#exceptions",
507
+ :additional_parameters => {
508
+ :icon_url => "http://image.jpg",
509
+ :mrkdwn => true
510
+ },
511
+ :ignore_data_if => lambda {|key, value|
512
+ "#{key}" == 'key_to_ignore' || value.is_a?(ClassToBeIgnored)
513
+ }
514
+ }
515
+ ```
516
+
517
+ Any evaluation to `true` will cause the key / value pair not be be sent along to Slack.
518
+
519
+ #### Options
520
+
521
+ ##### webhook_url
522
+
523
+ *String, required*
524
+
525
+ The Incoming WebHook URL on slack.
526
+
527
+ ##### channel
528
+
529
+ *String, optional*
530
+
531
+ Message will appear in this channel. Defaults to the channel you set as such on slack.
532
+
533
+ ##### username
534
+
535
+ *String, optional*
536
+
537
+ Username of the bot. Defaults to the name you set as such on slack
538
+
539
+ ##### custom_hook
540
+
541
+ *String, optional*
542
+
543
+ Custom hook name. See [slack-notifier](https://github.com/stevenosloan/slack-notifier#custom-hook-name) for
544
+ more information. Default: 'incoming-webhook'
545
+
546
+ ##### additional_parameters
547
+
548
+ *Hash of strings, optional*
549
+
550
+ Contains additional payload for a message (e.g avatar, attachments, etc). See [slack-notifier](https://github.com/stevenosloan/slack-notifier#additional-parameters) for more information.. Default: '{}'
551
+
552
+
553
+ ### WebHook notifier
554
+
555
+ This notifier ships notifications over the HTTP protocol.
556
+
557
+ #### Usage
558
+
559
+ Just add the [HTTParty](https://github.com/jnunemaker/httparty) gem to your `Gemfile`:
560
+
561
+ ```ruby
562
+ gem 'httparty'
563
+ ```
564
+
565
+ To configure it, you need to set the `url` option, like this:
566
+
567
+ ```ruby
568
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
569
+ :email => {
570
+ :email_prefix => "[PREFIX] ",
571
+ :sender_address => %{"notifier" <notifier@example.com>},
572
+ :exception_recipients => %w{exceptions@example.com}
573
+ },
574
+ :webhook => {
575
+ :url => 'http://domain.com:5555/hubot/path'
576
+ }
577
+ ```
578
+
579
+ By default, the WebhookNotifier will call the URLs using the POST method. But, you can change this using the `http_method` option.
580
+
581
+ ```ruby
582
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
583
+ :email => {
584
+ :email_prefix => "[PREFIX] ",
585
+ :sender_address => %{"notifier" <notifier@example.com>},
586
+ :exception_recipients => %w{exceptions@example.com}
587
+ },
588
+ :webhook => {
589
+ :url => 'http://domain.com:5555/hubot/path',
590
+ :http_method => :get
591
+ }
592
+ ```
593
+
594
+ Besides the `url` and `http_method` options, all the other options are passed directly to HTTParty. Thus, if the HTTP server requires authentication, you can include the following options:
595
+
596
+ ```ruby
597
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
598
+ :email => {
599
+ :email_prefix => "[PREFIX] ",
600
+ :sender_address => %{"notifier" <notifier@example.com>},
601
+ :exception_recipients => %w{exceptions@example.com}
602
+ },
603
+ :webhook => {
604
+ :url => 'http://domain.com:5555/hubot/path',
605
+ :basic_auth => {
606
+ :username => 'alice',
607
+ :password => 'password'
608
+ }
609
+ }
610
+ ```
611
+
612
+ For more HTTParty options, check out the [documentation](https://github.com/jnunemaker/httparty).
613
+
614
+ ### Custom notifier
615
+
616
+ Simply put, notifiers are objects which respond to `#call(exception, options)` method. Thus, a lambda can be used as a notifier as follow:
617
+
618
+ ```ruby
619
+ ExceptionNotifier.add_notifier :custom_notifier_name,
620
+ ->(exception, options) { puts "Something goes wrong: #{exception.message}"}
621
+ ```
622
+
623
+ More advanced users or third-party framework developers, also can create notifiers to be shipped in gems and take advantage of ExceptionNotification's Notifier API to standardize the [various](https://github.com/airbrake/airbrake) [solutions](https://www.honeybadger.io) [out](http://www.exceptional.io) [there](https://bugsnag.com). For this, beyond the `#call(exception, options)` method, the notifier class MUST BE defined under the ExceptionNotifier namespace and its name sufixed by `Notifier`, e.g: ExceptionNotifier::SimpleNotifier.
624
+
625
+ #### Example
626
+
627
+ Define the custom notifier:
628
+
629
+ ```ruby
630
+ module ExceptionNotifier
631
+ class SimpleNotifier
632
+ def initialize(options)
633
+ # do something with the options...
634
+ end
635
+
636
+ def call(exception, options={})
637
+ # send the notification
638
+ end
639
+ end
640
+ end
641
+ ```
642
+
643
+ Using it:
644
+
645
+ ```ruby
646
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
647
+ :email => {
648
+ :email_prefix => "[PREFIX] ",
649
+ :sender_address => %{"notifier" <notifier@example.com>},
650
+ :exception_recipients => %w{exceptions@example.com}
651
+ },
652
+ :simple => {
653
+ # simple notifier options
654
+ }
655
+ ```
656
+
657
+
658
+ ## Ignore Exceptions
659
+
660
+ You can choose to ignore certain exceptions, which will make ExceptionNotification avoid sending notifications for those specified. There are three ways of specifying which exceptions to ignore:
661
+
662
+ * `:ignore_exceptions` - By exception class (i.e. ignore RecordNotFound ones)
663
+
664
+ * `:ignore_crawlers` - From crawler (i.e. ignore ones originated by Googlebot)
665
+
666
+ * `:ignore_if` - Custom (i.e. ignore exceptions that satisfy some condition)
667
+
668
+
669
+ ### :ignore_exceptions
670
+
671
+ *Array of strings, default: %w{ActiveRecord::RecordNotFound AbstractController::ActionNotFound ActionController::RoutingError ActionController::UnknownFormat}*
672
+
673
+ Ignore specified exception types. To achieve that, you should use the `:ignore_exceptions` option, like this:
674
+
675
+ ```ruby
676
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
677
+ :ignore_exceptions => ['ActionView::TemplateError'] + ExceptionNotifier.ignored_exceptions,
678
+ :email => {
679
+ :email_prefix => "[PREFIX] ",
680
+ :sender_address => %{"notifier" <notifier@example.com>},
681
+ :exception_recipients => %w{exceptions@example.com}
682
+ }
683
+ ```
684
+
685
+ The above will make ExceptionNotifier ignore a *TemplateError* exception, plus the ones ignored by default.
686
+
687
+ ### :ignore_crawlers
688
+
689
+ *Array of strings, default: []*
690
+
691
+ In some cases you may want to avoid getting notifications from exceptions made by crawlers. To prevent sending those unwanted notifications, use the `:ignore_crawlers` option like this:
692
+
693
+ ```ruby
694
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
695
+ :ignore_crawlers => %w{Googlebot bingbot},
696
+ :email => {
697
+ :email_prefix => "[PREFIX] ",
698
+ :sender_address => %{"notifier" <notifier@example.com>},
699
+ :exception_recipients => %w{exceptions@example.com}
700
+ }
701
+ ```
702
+
703
+ ### :ignore_if
704
+
705
+ *Lambda, default: nil*
706
+
707
+ Last but not least, you can ignore exceptions based on a condition. Take a look:
708
+
709
+ ```ruby
710
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
711
+ :ignore_if => ->(env, exception) { exception.message =~ /^Couldn't find Page with ID=/ },
712
+ :email => {
713
+ :email_prefix => "[PREFIX] ",
714
+ :sender_address => %{"notifier" <notifier@example.com>},
715
+ :exception_recipients => %w{exceptions@example.com},
716
+ }
717
+ ```
718
+
719
+ You can make use of both the environment and the exception inside the lambda to decide wether to avoid or not sending the notification.
720
+
721
+ ## Rack X-Cascade Header
722
+
723
+ Some rack apps (Rails in particular) utilize the "X-Cascade" header to pass the request-handling responsibility to the next middleware in the stack.
724
+
725
+ Rails' routing middleware uses this strategy, rather than raising an exception, to handle routing errors (e.g. 404s); to be notified whenever a 404 occurs, set this option to "false."
726
+
727
+ ### :ignore_cascade_pass
728
+
729
+ *Boolean, default: true*
730
+
731
+ Set to false to trigger notifications when another rack middleware sets the "X-Cascade" header to "pass."
732
+
733
+ ## Background Notifications
734
+
735
+ If you want to send notifications from a background process like DelayedJob, you should use the `notify_exception` method like this:
736
+
737
+ ```ruby
738
+ begin
739
+ some code...
740
+ rescue => e
741
+ ExceptionNotifier.notify_exception(e)
742
+ end
743
+ ```
744
+
745
+ You can include information about the background process that created the error by including a data parameter:
746
+
747
+ ```ruby
748
+ begin
749
+ some code...
750
+ rescue => exception
751
+ ExceptionNotifier.notify_exception(exception,
752
+ :data => {:worker => worker.to_s, :queue => queue, :payload => payload})
753
+ end
754
+ ```
755
+
756
+ ### Manually notify of exception
757
+
758
+ If your controller action manually handles an error, the notifier will never be run. To manually notify of an error you can do something like the following:
759
+
760
+ ```ruby
761
+ rescue_from Exception, :with => :server_error
762
+
763
+ def server_error(exception)
764
+ # Whatever code that handles the exception
765
+
766
+ ExceptionNotifier.notify_exception(exception,
767
+ :env => request.env, :data => {:message => "was doing something wrong"})
768
+ end
769
+ ```
770
+
771
+
772
+ ## Extras
773
+
774
+ ### Rails
775
+
776
+ Since his first version, ExceptionNotification was just a simple rack middleware. But, the version 4.0.0 introduced the option to use it as a Rails engine. In order to use ExceptionNotification as an engine, just run the following command from the terminal:
777
+
778
+ rails g exception_notification:install
779
+
780
+ This command generates an initialize file (`config/initializers/exception_notification.rb`) where you can customize your configurations.
781
+
782
+ Make sure the gem is not listed solely under the `production` group, since this initializer will be loaded regardless of environment.
783
+
784
+ ### Resque/Sidekiq
785
+
786
+ Instead of manually calling background notifications foreach job/worker, you can configure ExceptionNotification to do this automatically. For this, run:
787
+
788
+ rails g exception_notification:install --resque
789
+
790
+ or
791
+
792
+ rails g exception_notification:install --sidekiq
793
+
794
+ As above, make sure the gem is not listed solely under the `production` group, since this initializer will be loaded regardless of environment.
795
+
796
+ ## Versions
797
+
798
+ For v4.0.1, see this tag:
799
+
800
+ http://github.com/smartinez87/exception_notification/tree/v4.0.1
801
+
802
+ For v4.0.0, see this tag:
803
+
804
+ http://github.com/smartinez87/exception_notification/tree/v4.0.0
805
+
806
+ For v3.0.1, see this tag:
807
+
808
+ http://github.com/smartinez87/exception_notification/tree/v3.0.1
809
+
810
+ For v3.0.0, see this tag:
811
+
812
+ http://github.com/smartinez87/exception_notification/tree/v3.0.0
813
+
814
+ For previous releases, visit:
815
+
816
+ https://github.com/smartinez87/exception_notification/tags
817
+
818
+ If you are running Rails 2.3 then see the branch for that:
819
+
820
+ http://github.com/smartinez87/exception_notification/tree/2-3-stable
821
+
822
+ If you are running pre-rack Rails then see this tag:
823
+
824
+ http://github.com/smartinez87/exception_notification/tree/pre-2-3
825
+
826
+
827
+ ## Support and tickets
828
+
829
+ Here's the list of [issues](https://github.com/smartinez87/exception_notification/issues) we're currently working on.
830
+
831
+ To contribute, please read first the [Contributing Guide](https://github.com/smartinez87/exception_notification/blob/master/CONTRIBUTING.md).
832
+
833
+ ## Code of Conduct
834
+
835
+ Everyone interacting in this project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow our [code of conduct](https://github.com/smartinez87/exception_notification/blob/master/CODE_OF_CONDUCT.md).
836
+
837
+ ## License
838
+
839
+ Copyright (c) 2005 Jamis Buck, released under the [MIT license](http://www.opensource.org/licenses/MIT).