wrangler 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,6 +15,13 @@ module Wrangler
15
15
  @@smtp_settings_overrides = {}
16
16
  cattr_accessor :smtp_settings_overrides
17
17
 
18
+ # Allows overriding smtp_settings without changing parent class' settings.
19
+ # rails expects an instance method
20
+ #-----------------------------------------------------------------------------
21
+ def smtp_settings
22
+ @@smtp_settings_overrides.reverse_merge @@smtp_settings
23
+ end
24
+
18
25
  # the default configuration
19
26
  @@config ||= {
20
27
  # who the emails will be coming from. if nil or missing or empty string,
@@ -41,12 +48,6 @@ module Wrangler
41
48
 
42
49
  self.template_root = config[:mailer_template_root]
43
50
 
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
-
50
51
  # form and send the notification email (note: this gets called indirectly
51
52
  # when you call ExceptionNotifier.deliver_exception_notification())
52
53
  #
data/wrangler.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wrangler}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
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"]
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Percival