resque_action_mailer_backend 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/headbanger/resque_mailer.rb +3 -2
- data/resque_action_mailer_backend.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
@@ -21,7 +21,7 @@ class Headbanger::ResqueMailer
|
|
21
21
|
Headbanger::ResqueMailer,
|
22
22
|
:destinations => mail.destinations,
|
23
23
|
:mail => mail.encoded,
|
24
|
-
:from => mail.from
|
24
|
+
:from => mail.from )
|
25
25
|
end
|
26
26
|
|
27
27
|
def perform( options )
|
@@ -37,12 +37,13 @@ class Headbanger::ResqueMailer
|
|
37
37
|
def deliver
|
38
38
|
smtp = Net::SMTP.new(smtp_settings[:address], smtp_settings[:port])
|
39
39
|
smtp.enable_starttls_auto if smtp_settings[:enable_starttls_auto] && smtp.respond_to?(:enable_starttls_auto)
|
40
|
+
from = (@options[:from] && @options[:from].first) || smtp_settings[:user_name]
|
40
41
|
smtp.start(
|
41
42
|
smtp_settings[:domain],
|
42
43
|
smtp_settings[:user_name],
|
43
44
|
smtp_settings[:password],
|
44
45
|
smtp_settings[:authentication]) do |smtp|
|
45
|
-
smtp.sendmail(@options[:mail],
|
46
|
+
smtp.sendmail(@options[:mail], from, @options[:destinations])
|
46
47
|
end
|
47
48
|
end
|
48
49
|
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{resque_action_mailer_backend}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Maur\303\255cio Linhares"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-08-19}
|
13
13
|
s.description = %q{
|
14
14
|
With this gem you will be able to enqueue your emails
|
15
15
|
on your Resque workers to avoid making your user wait for the email to be
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque_action_mailer_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Maur\xC3\xADcio Linhares"
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-08-19 00:00:00 -03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|