laserlemon-email_override 0.1.0 → 0.1.1

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.
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('email_override', '0.1.0') do |g|
5
+ Echoe.new('email_override', '0.1.1') do |g|
6
6
  g.description = %( Intercept ActionMailer email deliveries in non-production environments)
7
7
  g.url = 'http://github.com/laserlemon/email_override'
8
8
  g.author = 'Steve Richert'
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{email_override}
5
- s.version = "0.1.0"
5
+ s.version = "0.1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Steve Richert"]
@@ -18,6 +18,12 @@ module LaserLemon
18
18
  base.override_bcc = []
19
19
 
20
20
  base.extend ClassMethods
21
+
22
+ base.class_eval do
23
+ alias_method_chain :recipients, :override
24
+ alias_method_chain :cc, :override
25
+ alias_method_chain :bcc, :override
26
+ end
21
27
  end
22
28
 
23
29
  module ClassMethods
@@ -33,19 +39,13 @@ module LaserLemon
33
39
  local? ? override_recipients : recipients_without_override(*args)
34
40
  end
35
41
 
36
- alias_method_chain :recipients, :override
37
-
38
42
  def cc_with_override(*args)
39
43
  local? ? override_cc : cc_without_override(*args)
40
44
  end
41
45
 
42
- alias_method_chain :cc, :override
43
-
44
46
  def bcc_with_override(*args)
45
47
  local? ? override_bcc : bcc_without_override(*args)
46
48
  end
47
-
48
- alias_method_chain :bcc, :override
49
49
  end
50
50
  end
51
51
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: laserlemon-email_override
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Richert