exception_notification 4.3.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/Appraisals +4 -2
- data/CHANGELOG.rdoc +47 -0
- data/CONTRIBUTING.md +18 -0
- data/Gemfile +3 -1
- data/README.md +97 -945
- data/Rakefile +4 -2
- data/docs/notifiers/campfire.md +50 -0
- data/docs/notifiers/custom.md +42 -0
- data/docs/notifiers/datadog.md +51 -0
- data/docs/notifiers/email.md +195 -0
- data/docs/notifiers/google_chat.md +31 -0
- data/docs/notifiers/hipchat.md +66 -0
- data/docs/notifiers/irc.md +97 -0
- data/docs/notifiers/mattermost.md +115 -0
- data/docs/notifiers/slack.md +161 -0
- data/docs/notifiers/sns.md +37 -0
- data/docs/notifiers/teams.md +54 -0
- data/docs/notifiers/webhook.md +60 -0
- data/examples/sample_app.rb +56 -0
- data/examples/sinatra/Gemfile +8 -6
- data/examples/sinatra/config.ru +3 -1
- data/examples/sinatra/sinatra_app.rb +19 -11
- data/exception_notification.gemspec +30 -24
- data/gemfiles/{rails4_0.gemfile → rails5_2.gemfile} +2 -2
- data/gemfiles/{rails4_1.gemfile → rails6_0.gemfile} +2 -2
- data/gemfiles/{rails4_2.gemfile → rails6_1.gemfile} +2 -2
- data/gemfiles/{rails5_0.gemfile → rails7_0.gemfile} +2 -2
- data/lib/exception_notification/rack.rb +28 -30
- data/lib/exception_notification/rails.rb +2 -0
- data/lib/exception_notification/resque.rb +10 -10
- data/lib/exception_notification/sidekiq.rb +10 -12
- data/lib/exception_notification/version.rb +5 -0
- data/lib/exception_notification.rb +3 -0
- data/lib/exception_notifier/base_notifier.rb +10 -5
- data/lib/exception_notifier/datadog_notifier.rb +156 -0
- data/lib/exception_notifier/email_notifier.rb +73 -88
- data/lib/exception_notifier/google_chat_notifier.rb +27 -119
- data/lib/exception_notifier/hipchat_notifier.rb +13 -12
- data/lib/exception_notifier/irc_notifier.rb +36 -33
- data/lib/exception_notifier/mattermost_notifier.rb +54 -137
- data/lib/exception_notifier/modules/backtrace_cleaner.rb +2 -2
- data/lib/exception_notifier/modules/error_grouping.rb +24 -13
- data/lib/exception_notifier/modules/formatter.rb +125 -0
- data/lib/exception_notifier/notifier.rb +9 -6
- data/lib/exception_notifier/slack_notifier.rb +65 -40
- data/lib/exception_notifier/sns_notifier.rb +23 -13
- data/lib/exception_notifier/teams_notifier.rb +67 -46
- data/lib/exception_notifier/views/exception_notifier/_backtrace.html.erb +1 -1
- data/lib/exception_notifier/views/exception_notifier/_environment.text.erb +1 -1
- data/lib/exception_notifier/views/exception_notifier/_request.text.erb +1 -1
- data/lib/exception_notifier/views/exception_notifier/exception_notification.html.erb +2 -2
- data/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb +2 -2
- data/lib/exception_notifier/webhook_notifier.rb +17 -14
- data/lib/exception_notifier.rb +65 -10
- data/lib/generators/exception_notification/install_generator.rb +11 -5
- data/lib/generators/exception_notification/templates/{exception_notification.rb → exception_notification.rb.erb} +13 -11
- data/test/exception_notification/rack_test.rb +75 -13
- data/test/exception_notification/resque_test.rb +54 -0
- data/test/exception_notifier/datadog_notifier_test.rb +153 -0
- data/test/exception_notifier/email_notifier_test.rb +275 -153
- data/test/exception_notifier/google_chat_notifier_test.rb +158 -101
- data/test/exception_notifier/hipchat_notifier_test.rb +84 -81
- data/test/exception_notifier/irc_notifier_test.rb +36 -34
- data/test/exception_notifier/mattermost_notifier_test.rb +213 -67
- data/test/exception_notifier/modules/error_grouping_test.rb +41 -40
- data/test/exception_notifier/modules/formatter_test.rb +152 -0
- data/test/exception_notifier/sidekiq_test.rb +9 -17
- data/test/exception_notifier/slack_notifier_test.rb +66 -63
- data/test/exception_notifier/sns_notifier_test.rb +84 -32
- data/test/exception_notifier/teams_notifier_test.rb +25 -26
- data/test/exception_notifier/webhook_notifier_test.rb +52 -48
- data/test/exception_notifier_test.rb +150 -41
- data/test/support/exception_notifier_helper.rb +14 -0
- data/test/{dummy/app → support}/views/exception_notifier/_new_bkg_section.html.erb +0 -0
- data/test/{dummy/app → support}/views/exception_notifier/_new_bkg_section.text.erb +0 -0
- data/test/{dummy/app → support}/views/exception_notifier/_new_section.html.erb +0 -0
- data/test/{dummy/app → support}/views/exception_notifier/_new_section.text.erb +0 -0
- data/test/test_helper.rb +14 -13
- metadata +134 -175
- data/gemfiles/rails5_1.gemfile +0 -7
- data/lib/exception_notifier/campfire_notifier.rb +0 -40
- data/test/dummy/.gitignore +0 -4
- data/test/dummy/Rakefile +0 -7
- data/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/dummy/app/controllers/posts_controller.rb +0 -30
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/helpers/posts_helper.rb +0 -2
- data/test/dummy/app/models/post.rb +0 -2
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/app/views/posts/_form.html.erb +0 -0
- data/test/dummy/app/views/posts/new.html.erb +0 -0
- data/test/dummy/app/views/posts/show.html.erb +0 -0
- data/test/dummy/config/application.rb +0 -42
- data/test/dummy/config/boot.rb +0 -6
- data/test/dummy/config/database.yml +0 -22
- data/test/dummy/config/environment.rb +0 -17
- data/test/dummy/config/environments/development.rb +0 -25
- data/test/dummy/config/environments/production.rb +0 -50
- data/test/dummy/config/environments/test.rb +0 -35
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/inflections.rb +0 -10
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -8
- data/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/dummy/config/locales/en.yml +0 -5
- data/test/dummy/config/routes.rb +0 -3
- data/test/dummy/config.ru +0 -4
- data/test/dummy/db/migrate/20110729022608_create_posts.rb +0 -15
- data/test/dummy/db/schema.rb +0 -24
- data/test/dummy/db/seeds.rb +0 -7
- data/test/dummy/lib/tasks/.gitkeep +0 -0
- data/test/dummy/public/404.html +0 -26
- data/test/dummy/public/422.html +0 -26
- data/test/dummy/public/500.html +0 -26
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/images/rails.png +0 -0
- data/test/dummy/public/index.html +0 -239
- data/test/dummy/public/javascripts/application.js +0 -2
- data/test/dummy/public/javascripts/controls.js +0 -965
- data/test/dummy/public/javascripts/dragdrop.js +0 -974
- data/test/dummy/public/javascripts/effects.js +0 -1123
- data/test/dummy/public/javascripts/prototype.js +0 -6001
- data/test/dummy/public/javascripts/rails.js +0 -191
- data/test/dummy/public/robots.txt +0 -5
- data/test/dummy/public/stylesheets/.gitkeep +0 -0
- data/test/dummy/public/stylesheets/scaffold.css +0 -56
- data/test/dummy/script/rails +0 -6
- data/test/dummy/test/functional/posts_controller_test.rb +0 -237
- data/test/dummy/test/test_helper.rb +0 -7
- data/test/exception_notifier/campfire_notifier_test.rb +0 -120
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: f671fa31cec6dbf437c5e31ab10136a00f3ef5450fc13d9de2887296390451ba
|
|
4
|
+
data.tar.gz: 20f146f16e31e91c456cb08f5598b2714dec47ef1efc41741c7cfea761a8176f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a3c4f84bef2faccc2a66306349b983843a1542895d13e8cb141e50e8c610dc525087f8f86fc4c40654140e128c5378b224851c888086b0b32a6cb4753011717e
|
|
7
|
+
data.tar.gz: 5aa30cabeb47f39f89d13c904bdd36da33bf7a598cdb24f14ff6882e90826e3985b1bfb19c55a250bdfc3edae343ec56a72887a5bdbd195bbe4251738a65d1b2
|
data/Appraisals
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
rails_versions = ['~> 5.2.0', '~> 6.0.0', '~> 6.1.0', '~> 7.0.0']
|
|
2
4
|
|
|
3
5
|
rails_versions.each do |rails_version|
|
|
4
|
-
appraise "rails#{rails_version.slice(/\d+\.\d+/).
|
|
6
|
+
appraise "rails#{rails_version.slice(/\d+\.\d+/).tr('.', '_')}" do
|
|
5
7
|
gem 'rails', rails_version
|
|
6
8
|
end
|
|
7
9
|
end
|
data/CHANGELOG.rdoc
CHANGED
|
@@ -1,3 +1,50 @@
|
|
|
1
|
+
== 4.5.0
|
|
2
|
+
|
|
3
|
+
* enhancements
|
|
4
|
+
* Added Rails 7 compatibility (by @fwininger)
|
|
5
|
+
* Added support for the optional `data` attribute to the SNS notifier (@TomK32)
|
|
6
|
+
* Addressed a deprecation warning for `module_parent_name` which was thrown for users
|
|
7
|
+
using Rails > 6.x (@quorak)
|
|
8
|
+
* Restored the hash separator for `controller#action` in the email notifier (@garethrees)
|
|
9
|
+
|
|
10
|
+
* removals
|
|
11
|
+
* Dropped support for Tinder (gem is no longer maintained) (by @fwininger)
|
|
12
|
+
* Dropped support for Ruby on Rails versions below 5.2
|
|
13
|
+
|
|
14
|
+
== 4.4.3
|
|
15
|
+
|
|
16
|
+
* big fixes
|
|
17
|
+
* Remove using configured default from address from custom mailer_parent class
|
|
18
|
+
|
|
19
|
+
== 4.4.2 (yanked)
|
|
20
|
+
|
|
21
|
+
* bug fixes
|
|
22
|
+
* Fix `sender_address` being overwritten
|
|
23
|
+
|
|
24
|
+
== 4.4.1
|
|
25
|
+
|
|
26
|
+
* enhancements
|
|
27
|
+
* Enhance `ignore_if` option to allow by-notifier customization (by @fursich)
|
|
28
|
+
* Ignore extended modules of ignored exceptions (by @elengine)
|
|
29
|
+
* Add `exception_data` to Mattermost notifier (by @camillof)
|
|
30
|
+
|
|
31
|
+
* bug fixes
|
|
32
|
+
* Fix Rubocop offenses (by @nicolasferraro)
|
|
33
|
+
|
|
34
|
+
== 4.4.0
|
|
35
|
+
|
|
36
|
+
* enhancements
|
|
37
|
+
* Rails 6 compatibility (by @shanecav)
|
|
38
|
+
* Add Datadog notifier (by @ajain0184)
|
|
39
|
+
* Use backtrace cleaner for Slack notifications (by @pomier)
|
|
40
|
+
* Add slack channel name override option (by @chaadow)
|
|
41
|
+
* Addition of sample application for testing purposes (by @ampeigonet)
|
|
42
|
+
|
|
43
|
+
* bug fixes
|
|
44
|
+
* Fix error in Resque failure backend (by @EmilioCristalli)
|
|
45
|
+
* Remove sqlite dependency (by @EmilioCristalli)
|
|
46
|
+
* Configure ignore_crawlers from Rails initializer (by @EmilioCristalli)
|
|
47
|
+
|
|
1
48
|
== 4.3.0
|
|
2
49
|
|
|
3
50
|
* enhancements
|
data/CONTRIBUTING.md
CHANGED
|
@@ -18,6 +18,24 @@ need contributors to follow:
|
|
|
18
18
|
like OS version, gem versions, etc...
|
|
19
19
|
* Even better, provide a failing test case for it.
|
|
20
20
|
|
|
21
|
+
To help you add information to an issue, you can use the sample_app.
|
|
22
|
+
Steps to use sample_app:
|
|
23
|
+
|
|
24
|
+
1) Add your configuration to (ex. with webhook):
|
|
25
|
+
```ruby
|
|
26
|
+
config.middleware.use ExceptionNotification::Rack,
|
|
27
|
+
# -----------------------------------
|
|
28
|
+
# Change this with your configuration
|
|
29
|
+
# https://github.com/smartinez87/exception_notification#notifiers
|
|
30
|
+
webhook: {
|
|
31
|
+
url: 'http://domain.com:5555/hubot/path'
|
|
32
|
+
}
|
|
33
|
+
# -----------------------------------
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
2) Run `ruby examples/sample_app.rb`
|
|
37
|
+
If exception notification is working OK, the test should pass and trigger a notification as configured above. If it's not, you can copy the information printed on the terminal related to exception notification and report an issue with more info!
|
|
38
|
+
|
|
21
39
|
## Pull Requests
|
|
22
40
|
|
|
23
41
|
If you've gone the extra mile and have a patch that fixes the issue, you
|
data/Gemfile
CHANGED