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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3ef0ca694fb5628659b30090fbaec75f6da934b
4
- data.tar.gz: fe37ada9cca45b12ec8f7f0f98fe3fbf090209c8
3
+ metadata.gz: 89197d613fc0aa4c2da0bf6cd0b30535fb05d689
4
+ data.tar.gz: d4df35c9226cba7d6f176885357591933e3e7a54
5
5
  SHA512:
6
- metadata.gz: 4f090285bb04f67482db2dc1a29a03612f6deb46cf40c597358ff90333074c2418578f79c0cb347117bee2bba7c0e0dae2e8e599f4d18b21f0ffdcb371a4dd3e
7
- data.tar.gz: b8edf7286d8a143955dcf288aeb34e06a7a48e8dc87c773d036146a657ab0d9751cb1f3008c71ae51011f8bd879d3fc384e979107aaa4d47beac51f418eef01c
6
+ metadata.gz: 3b8c9f171e156ab191fb47ff1c91144a74c22c6c2200475d5a39fb9ef0ea7d80918653e591fc70b8253535502e2af3ad7d941f55081f627580932d74917ea6f6
7
+ data.tar.gz: 1ae4de4b32f69ea40ecb7461caabdf1470b786515ff9f16181b9f96b28186d62665dfe32ddd15442418edf01bf6990924d8fd8999f4d557862dfe8e2d7a7eb45
@@ -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
@@ -1,5 +1,5 @@
1
1
  # IdleMailer module
2
2
  module IdleMailer
3
3
  # Version number
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  end
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.1
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-07 00:00:00.000000000 Z
11
+ date: 2015-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail