runtimeerror_notifier 0.0.24 → 0.0.25
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1b39f4a21833b4a7016d4ff7628c2e301b2dc2e6
|
|
4
|
+
data.tar.gz: 834c51ea5a04b6bc084ee0a2c1e3a6ca449b2240
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 929dd354ee3a283aebcc17d029dd9d77c957bb37e95d37f22c895714c197825f9df0d267c74dd2c34cd5939715d8a7076eed78466d3cb89ef6ea16e0922edb79
|
|
7
|
+
data.tar.gz: 48cb4a69a449b472e034ae074811a23352509ad4007e1b920b46ff28f6af62d6a9bec470b7473ca16c7b61df589869474bb105fd47db56684fa2b25202da2ac6
|
|
@@ -23,7 +23,11 @@ module RuntimeerrorNotifier
|
|
|
23
23
|
$stderr.puts "WARNING [RuntimeerrorNotifier.for]: No email recipients configured" if $DEBUG && RECIPIENTS.empty?
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
def notification(env, exception, options={})
|
|
26
|
+
def self.notification(env, exception, options={})
|
|
27
|
+
self.notification_mail(env, exception, options).try(:deliver_later) # Rails 4
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def notification_mail(env, exception, options={})
|
|
27
31
|
original_exception = if exception.respond_to?(:original_exception)
|
|
28
32
|
exception.original_exception
|
|
29
33
|
elsif exception.respond_to?(:continued_exception)
|
|
File without changes
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runtimeerror_notifier
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.25
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Wong Liang Zan
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2015-04-26 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: httparty
|
|
@@ -151,7 +151,7 @@ files:
|
|
|
151
151
|
- templates/runtimeerror_notifier/_request.html.erb
|
|
152
152
|
- templates/runtimeerror_notifier/_session.html.erb
|
|
153
153
|
- templates/runtimeerror_notifier/_title.html.erb
|
|
154
|
-
- templates/runtimeerror_notifier/
|
|
154
|
+
- templates/runtimeerror_notifier/notification_mail.html.erb
|
|
155
155
|
homepage: https://github.com/develsadvocates/runtimeerror_notifier
|
|
156
156
|
licenses: []
|
|
157
157
|
metadata: {}
|
|
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
171
171
|
version: 1.3.6
|
|
172
172
|
requirements: []
|
|
173
173
|
rubyforge_project:
|
|
174
|
-
rubygems_version: 2.
|
|
174
|
+
rubygems_version: 2.4.6
|
|
175
175
|
signing_key:
|
|
176
176
|
specification_version: 4
|
|
177
177
|
summary: Handles uncaught exceptions from your application and integrates tightly
|