cwninja-inaction_mailer 0.3 → 0.4

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
@@ -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.3"
20
+ s.version = "0.4"
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
 
@@ -9,7 +9,7 @@ module InactionMailer
9
9
 
10
10
  class << self
11
11
  def hook!
12
- ActionMailer::Base.__send__(:include, self)
12
+ ActionMailer::Base.__send__(:include, self) if defined? ActionMailer::Base
13
13
  end
14
14
 
15
15
  def new_mail_file(&block)
@@ -34,3 +34,5 @@ module InactionMailer
34
34
  end
35
35
 
36
36
  end
37
+
38
+ InactionMailer.hook!
data/rails/init.rb CHANGED
@@ -1,2 +1 @@
1
1
  require File.join(File.dirname(__FILE__), *%w[lib inaction_mailer])
2
- InactionMailer.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.3"
4
+ version: "0.4"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Lea