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 +1 -1
- data/email_override.gemspec +1 -1
- data/lib/email_override.rb +6 -6
- metadata +1 -1
    
        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. | 
| 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'
         | 
    
        data/email_override.gemspec
    CHANGED
    
    
    
        data/lib/email_override.rb
    CHANGED
    
    | @@ -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
         |