rails_error_notifier 0.1.7 β 0.1.8
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 +4 -4
- data/README.md +15 -6
- data/lib/rails_error_notifier/version.rb +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 567a10c33442c36b310ed44217853418add6e3887e6ff9abf942e2c264791894
|
4
|
+
data.tar.gz: 2d4a942d4c8efa2a50753b64c17e40d0e5657615d1c2d6535f90e9dda0c77bb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27da0f21760e255670431691bbaab6abf6743c2e682b1bbac42c47232c535e044f62a28caf9e4924d03c23364c34efa605c3f95108a0bfd45d91a07d7214986d
|
7
|
+
data.tar.gz: cc89c167a649c8930a04c2ffcd8345737950f0128a9e5c68a35822dbcad6595701d92b85b68a3a92000cf59d2d6f8a573f0a2c9bb49ea7ef7458b5c133beba71
|
data/README.md
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
# π¨ RailsErrorNotifier
|
2
2
|
|
3
|
-
RailsErrorNotifier is a Ruby gem that automatically captures
|
4
|
-
It
|
5
|
-
|
3
|
+
RailsErrorNotifier is a Ruby gem that automatically captures errors in your Rails applications and sends notifications to your preferred channels.
|
4
|
+
It supports **Slack**, **Discord**, **Email**, and **WhatsApp**, ensuring youβre immediately informed about critical issues in production.
|
6
5
|
---
|
7
6
|
|
8
7
|
## β¨ Features
|
9
8
|
- π₯ Capture unhandled exceptions in Rails automatically via Rack middleware.
|
10
|
-
- π© Send error notifications to
|
9
|
+
- π© Send error notifications to Slack, Discord, Email, and WhatsApp.
|
11
10
|
- βοΈ Easy configuration through Rails initializers.
|
12
11
|
- π Add custom context (e.g., current user, request path).
|
13
12
|
- π‘οΈ Safe when disabled (no crashes if webhooks are missing).
|
@@ -50,11 +49,21 @@ This creates `config/initializers/rails_error_notifier.rb`:
|
|
50
49
|
# frozen_string_literal: true
|
51
50
|
|
52
51
|
RailsErrorNotifier.configure do |config|
|
53
|
-
#
|
52
|
+
# Slack + Discord
|
54
53
|
config.slack_webhook = ENV["SLACK_WEBHOOK_URL"]
|
55
54
|
config.discord_webhook = ENV["DISCORD_WEBHOOK_URL"]
|
56
55
|
|
57
|
-
#
|
56
|
+
# Email
|
57
|
+
config.error_email_to = ENV["ERROR_EMAIL_TO"] # e.g. "dev-team@example.com"
|
58
|
+
config.error_email_from = ENV["ERROR_EMAIL_FROM"] # e.g. "notifier@example.com"
|
59
|
+
|
60
|
+
# WhatsApp (Twilio)
|
61
|
+
config.twilio_sid = ENV["TWILIO_SID"]
|
62
|
+
config.twilio_token = ENV["TWILIO_TOKEN"]
|
63
|
+
config.twilio_from = ENV["TWILIO_FROM"]
|
64
|
+
config.twilio_to = ENV["TWILIO_TO"]
|
65
|
+
|
66
|
+
# Enable only in non-dev/test environments
|
58
67
|
config.enabled = !Rails.env.development? && !Rails.env.test?
|
59
68
|
end
|
60
69
|
```
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_error_notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mrmalvi
|
@@ -13,16 +13,22 @@ dependencies:
|
|
13
13
|
name: twilio-ruby
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
|
-
- - "
|
16
|
+
- - ">="
|
17
17
|
- !ruby/object:Gem::Version
|
18
18
|
version: '6.6'
|
19
|
+
- - "<"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '8.0'
|
19
22
|
type: :runtime
|
20
23
|
prerelease: false
|
21
24
|
version_requirements: !ruby/object:Gem::Requirement
|
22
25
|
requirements:
|
23
|
-
- - "
|
26
|
+
- - ">="
|
24
27
|
- !ruby/object:Gem::Version
|
25
28
|
version: '6.6'
|
29
|
+
- - "<"
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: '8.0'
|
26
32
|
description: A gem to send Rails exceptions to Slack and Discord
|
27
33
|
email:
|
28
34
|
- malviyak00@gmail.com
|
@@ -72,5 +78,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
78
|
requirements: []
|
73
79
|
rubygems_version: 3.6.9
|
74
80
|
specification_version: 4
|
75
|
-
summary: Notify Rails errors to Slack and Discord
|
81
|
+
summary: Notify Rails errors to Slack and Discord, Email, WhatsApp
|
76
82
|
test_files: []
|