notifyR 0.1.1 → 0.1.2
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 +8 -10
- data/lib/notifyR.rb +1 -1
- data/lib/notifyR/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f366b335e5cc7819f96dd7878fd160164d768ce1
|
4
|
+
data.tar.gz: cb34ac7d059d491de86c9de54627c90648a4a42b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22bed16255d3c951be4ae2bf06d37aeedfd04a973a3d747b1c6cba0c19f3e6dbf74d4a1ee8075c56a9f8c6ae7bc3f807132b123d91a692cdfe84529d57dc78cd
|
7
|
+
data.tar.gz: 563baad39eefe0d82e4b534f16ba943b0ab7eec3613e094d8907342a36a48aaba08b617741fde03549f603a83f0f5b919c6b5cddb9d21396e30d26e098050b99
|
data/README.md
CHANGED
@@ -17,16 +17,14 @@ Or install it yourself as:
|
|
17
17
|
$ gem install notifyR
|
18
18
|
|
19
19
|
## Usage
|
20
|
-
|
21
|
-
|
22
|
-
NotifyR.
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
server_name: optional string(optional)
|
29
|
-
|
20
|
+
```ruby
|
21
|
+
## Assuming smtp settings have already been setup in your application
|
22
|
+
NotifyR.notify_exception_to_developers(from_address, to_address, subject(optional), exception(optional), server_name(optional)).deliver
|
23
|
+
|
24
|
+
## example
|
25
|
+
NotifyR.notify_exception_to_developers("example@example.com", "developer1@example.com, developer2@example.com", "Error in User model", exception, "Production Server").deliver
|
26
|
+
## here exception in an object of Exception class
|
27
|
+
```
|
30
28
|
|
31
29
|
## Contributing
|
32
30
|
|
data/lib/notifyR.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
class NotifyR < ActionMailer::Base
|
3
|
-
def
|
3
|
+
def notify_exception_to_developers(from_address, to_address, subject=nil, exception=nil, server_name=nil)
|
4
4
|
unless from_address
|
5
5
|
raise ArgumentError.new("From address is needed")
|
6
6
|
end
|
data/lib/notifyR/version.rb
CHANGED