idlemailer 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/idlemailer/message.rb +3 -8
- data/lib/idlemailer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89197d613fc0aa4c2da0bf6cd0b30535fb05d689
|
4
|
+
data.tar.gz: d4df35c9226cba7d6f176885357591933e3e7a54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b8c9f171e156ab191fb47ff1c91144a74c22c6c2200475d5a39fb9ef0ea7d80918653e591fc70b8253535502e2af3ad7d941f55081f627580932d74917ea6f6
|
7
|
+
data.tar.gz: 1ae4de4b32f69ea40ecb7461caabdf1470b786515ff9f16181b9f96b28186d62665dfe32ddd15442418edf01bf6990924d8fd8999f4d557862dfe8e2d7a7eb45
|
data/lib/idlemailer/message.rb
CHANGED
@@ -28,7 +28,9 @@ module IdleMailer
|
|
28
28
|
mail.text_part { body text_body }
|
29
29
|
end
|
30
30
|
mail.delivery_method IdleMailer.config.delivery_method, IdleMailer.config.delivery_options
|
31
|
-
mail.deliver
|
31
|
+
message = mail.deliver
|
32
|
+
$stdout.puts message if IdleMailer.config.log
|
33
|
+
message
|
32
34
|
end
|
33
35
|
|
34
36
|
private
|
@@ -60,12 +62,5 @@ module IdleMailer
|
|
60
62
|
def template_path(name, type)
|
61
63
|
IdleMailer.config.templates.join("#{name}.#{type}.erb")
|
62
64
|
end
|
63
|
-
|
64
|
-
def log_to_stdout
|
65
|
-
$stdout.puts [mail.to, mail.cc, mail.bcc].flatten.compact.join('; ')
|
66
|
-
$stdout.puts mail.subject
|
67
|
-
$stdout.puts(layout('html') { body('html') }) if has_template? 'html'
|
68
|
-
$stdout.puts(layout('text') { body('text') }) if has_template? 'text'
|
69
|
-
end
|
70
65
|
end
|
71
66
|
end
|
data/lib/idlemailer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: idlemailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Hollinger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mail
|