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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: efa895c2b4da597804c437f3e92dcc4fc1974286
4
- data.tar.gz: 50a907247afb40d9b2f309330af8eaf81a0150f1
3
+ metadata.gz: f366b335e5cc7819f96dd7878fd160164d768ce1
4
+ data.tar.gz: cb34ac7d059d491de86c9de54627c90648a4a42b
5
5
  SHA512:
6
- metadata.gz: bea97bac6ae039b413a7b4d9dc2ad51b63c7616f12d67544056582008c601ab4920eaa069f6435ed1c1837ac4d5efa35523d5c5539a8885ab3edaac853a6ec37
7
- data.tar.gz: ee9182899256d4452416216bfbc8bd22e4fd98231b7c85d7f2b86d13f86696bc84208e6356cb40e0416f39baf5ba24e56e3bd1cf315d0f3b9e56ff56eef1940e
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
- Smtp settings must be setup
21
-
22
- NotifyR.notify_exception(from_address, to_address, subject, exception, server_name)
23
-
24
- from_address: Must be a email string
25
- to_address: Must be a email string comma separated in case of muliple
26
- subject: optional string(optional)
27
- exception: Exception object(optional)
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 notify_exception(from_address, to_address, subject=nil, exception=nil, server_name=nil)
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
@@ -1,3 +1,3 @@
1
1
  module NotifyR
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifyR
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - |