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.
@@ -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 )
@@ -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} )
@@ -1,3 +1,3 @@
1
1
  module AutoError
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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
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-03-24 00:00:00.000000000 Z
12
+ date: 2013-05-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails