auto_error 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/auto_error/app_error.rb +1 -0
- data/lib/auto_error/config.rb +4 -0
- data/lib/auto_error/version.rb +1 -1
- metadata +2 -2
@@ -51,6 +51,7 @@ module AutoError
|
|
51
51
|
options[:ignore_exceptions] ||= ExceptionNotifier.default_ignore_exceptions
|
52
52
|
options[:email_prefix] ||= "[#{Rails.application.class.name.split('::').first} ERROR] "
|
53
53
|
options[:exception_recipients] = AutoError::Config.email_on_error
|
54
|
+
options[:sender_address] = AutoError::Config.email_sender
|
54
55
|
options[:data] = data
|
55
56
|
|
56
57
|
unless Array.wrap(options[:ignore_exceptions]).include?( exception.class )
|
data/lib/auto_error/config.rb
CHANGED
@@ -13,6 +13,9 @@ module AutoError
|
|
13
13
|
mattr_accessor :email_on_error
|
14
14
|
@@email_on_error = nil
|
15
15
|
|
16
|
+
mattr_accessor :email_sender
|
17
|
+
@@email_sender =
|
18
|
+
|
16
19
|
mattr_accessor :error_template_renderer
|
17
20
|
@@error_template_renderer = nil
|
18
21
|
|
@@ -29,6 +32,7 @@ module AutoError
|
|
29
32
|
status: status
|
30
33
|
end
|
31
34
|
|
35
|
+
config.email_sender = %{"Notifier" notifications@example.com}
|
32
36
|
config.email_on_error = []
|
33
37
|
ExceptionNotifier::Notifier.prepend_view_path(
|
34
38
|
AutoError::Engine.root.join( *%w{app views auto_error} )
|
data/lib/auto_error/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auto_error
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|