laserlemon-email_override 0.1.1 → 0.1.2

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.1') do |g|
5
+ Echoe.new('email_override', '0.1.2') 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.1"
5
+ s.version = "0.1.2"
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"]
@@ -17,16 +17,16 @@ module LaserLemon
17
17
  base.cattr_accessor :override_bcc
18
18
  base.override_bcc = []
19
19
 
20
- base.extend ClassMethods
21
-
22
- base.class_eval do
20
+ base.instance_eval do
21
+ include ClassInstanceMethods
22
+
23
23
  alias_method_chain :recipients, :override
24
24
  alias_method_chain :cc, :override
25
25
  alias_method_chain :bcc, :override
26
26
  end
27
27
  end
28
28
 
29
- module ClassMethods
29
+ module ClassInstanceMethods
30
30
  def local?
31
31
  local_environments.include?(Rails.env)
32
32
  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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Richert