wrangler 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,6 +9,12 @@ module Wrangler
9
9
  # see README or source code for possible values and default settings
10
10
  #-----------------------------------------------------------------------------
11
11
  class ExceptionNotifier < ActionMailer::Base
12
+
13
+ # smtp settings specific to this class; allows for changing settings
14
+ # (e.g. from-address) to be different from other emails sent in your app
15
+ @@smtp_settings_overrides = {}
16
+ cattr_accessor :smtp_settings_overrides
17
+
12
18
  # the default configuration
13
19
  @@config ||= {
14
20
  # who the emails will be coming from. if nil or missing or empty string,
@@ -35,6 +41,12 @@ module Wrangler
35
41
 
36
42
  self.template_root = config[:mailer_template_root]
37
43
 
44
+ # Allows overriding smtp_settings without changing parent class' settings
45
+ #-----------------------------------------------------------------------------
46
+ def self.smtp_settings
47
+ @@smtp_settings_overrides.reverse_merge @@smtp_settings
48
+ end
49
+
38
50
  # form and send the notification email (note: this gets called indirectly
39
51
  # when you call ExceptionNotifier.deliver_exception_notification())
40
52
  #
data/wrangler.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wrangler}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Brian Percival"]
12
- s.date = %q{2009-11-16}
12
+ s.date = %q{2009-11-19}
13
13
  s.description = %q{A gem for handling exceptions thrown inside your Rails app. If you include the
14
14
  gem in your application controller, wrangler will render the error pages you
15
15
  configure for each exception or HTTP error code. It will also handle notifying
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wrangler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Percival
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-16 00:00:00 -08:00
12
+ date: 2009-11-19 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency