cwninja-inaction_mailer 0.4 → 0.5

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/README.markdown CHANGED
@@ -2,12 +2,7 @@
2
2
 
3
3
  Add the following lines to the appropriate `config/environments/*.rb` file:
4
4
 
5
- config.gem "cwninja-inaction_mailer", :lib => 'inaction_mailer', :source => 'http://gems.github.com'
6
- config.action_mailer.delivery_method = :inaction_file
7
-
8
- Now fetch and unpack the gem with:
9
-
10
- rake gems:install gems:unpack
5
+ config.gem "cwninja-inaction_mailer", :lib => 'inaction_mailer/force_load', :source => 'http://gems.github.com'
11
6
 
12
7
  As an extra step, for the sake of paranoia, you can check the delivery mechanism with:
13
8
 
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ end
17
17
 
18
18
  spec = Gem::Specification.new do |s|
19
19
  s.name = %q{inaction_mailer}
20
- s.version = "0.4"
20
+ s.version = "0.5"
21
21
  s.summary = %q{An ActionMailer delivery mechanism to save mails as files in a directory.}
22
22
  s.description = %q{An ActionMailer delivery mechanism to save mails as files in a directory.}
23
23
 
@@ -0,0 +1,15 @@
1
+ require File.join(File.dirname(__FILE__), "..", "inaction_mailer")
2
+
3
+ module InactionMailer::ForceLoad
4
+ # Overide the default mechanism rails uses to determine delivery method,
5
+ # and force it to always use :inaction_file
6
+ def self.hook!
7
+ ActionMailer::Base.instance_eval do
8
+ def delivery_method
9
+ :inaction_file
10
+ end
11
+ end
12
+ end
13
+ end
14
+
15
+ InactionMailer::ForceLoad.hook!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cwninja-inaction_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.4"
4
+ version: "0.5"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Lea
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-08 00:00:00 -08:00
12
+ date: 2009-01-09 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -24,6 +24,7 @@ extra_rdoc_files:
24
24
  files:
25
25
  - Rakefile
26
26
  - README.markdown
27
+ - lib/inaction_mailer/force_load.rb
27
28
  - lib/inaction_mailer.rb
28
29
  - test/functional_test.rb
29
30
  - test/test_helper.rb