delayed_mailer 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/delayed_mailer.gemspec +1 -1
- data/lib/delayed/mailer.rb +1 -1
- data/spec/delayed_mailer_spec.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
data/delayed_mailer.gemspec
CHANGED
data/lib/delayed/mailer.rb
CHANGED
@@ -13,7 +13,7 @@ module Delayed
|
|
13
13
|
|
14
14
|
case method_name
|
15
15
|
when /^deliver_([_a-z]\w*)$/
|
16
|
-
send_later(method_name, *params, &block)
|
16
|
+
send_later("#{method_name}!", *params, &block)
|
17
17
|
when /^deliver_([_a-z]\w*)!$/
|
18
18
|
original_method_missing(method_name.gsub(/!$/,""), *params, &block)
|
19
19
|
else
|
data/spec/delayed_mailer_spec.rb
CHANGED
@@ -34,7 +34,7 @@ describe AsynchTestMailer do
|
|
34
34
|
end
|
35
35
|
|
36
36
|
it 'should send deliver action to delayed job list' do
|
37
|
-
AsynchTestMailer.should_receive(:send_later).with('deliver_test_mail', *@params)
|
37
|
+
AsynchTestMailer.should_receive(:send_later).with('deliver_test_mail!', *@params)
|
38
38
|
AsynchTestMailer.deliver_test_mail *@params
|
39
39
|
end
|
40
40
|
end
|