queued_mail 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/lib/queued_mail/engine.rb +1 -0
- data/lib/queued_mail/job.rb +5 -1
- data/lib/queued_mail/mailer.rb +1 -14
- data/lib/queued_mail/outbound_mail.rb +24 -0
- data/lib/queued_mail/version.rb +1 -1
- data/lib/queued_mail.rb +1 -0
- data/test/dummy/app/mailers/jp_sample_mailer.rb +30 -0
- data/test/dummy/app/views/jp_sample_mailer/attachment_test.html.erb +5 -0
- data/test/dummy/app/views/jp_sample_mailer/attachment_test.text.erb +4 -0
- data/test/dummy/app/views/jp_sample_mailer/inline_attachment_test.html.erb +5 -0
- data/test/dummy/app/views/jp_sample_mailer/inline_attachment_test.text.erb +5 -0
- data/test/dummy/app/views/jp_sample_mailer/multipart_test.html.erb +4 -0
- data/test/dummy/app/views/jp_sample_mailer/multipart_test.text.erb +4 -0
- data/test/dummy/app/views/jp_sample_mailer/simple_test.text.erb +6 -0
- data/test/dummy/config/environments/development.rb +5 -1
- data/test/dummy/config/smtp_settings.yml +7 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/log/development.log +27879 -0
- data/test/dummy/test/functional/jp_sample_mailer_test.rb +36 -0
- metadata +38 -7
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class JpSampleMailerTest < ActionMailer::TestCase
|
4
|
+
test "simple_test" do
|
5
|
+
mail = JpSampleMailer.simple_test
|
6
|
+
assert_equal "Simple test", mail.subject
|
7
|
+
assert_equal ["to@example.org"], mail.to
|
8
|
+
assert_equal ["from@example.com"], mail.from
|
9
|
+
assert_match "Hi", mail.body.encoded
|
10
|
+
end
|
11
|
+
|
12
|
+
test "multipart_test" do
|
13
|
+
mail = JpSampleMailer.multipart_test
|
14
|
+
assert_equal "Multipart test", mail.subject
|
15
|
+
assert_equal ["to@example.org"], mail.to
|
16
|
+
assert_equal ["from@example.com"], mail.from
|
17
|
+
assert_match "Hi", mail.body.encoded
|
18
|
+
end
|
19
|
+
|
20
|
+
test "attachment_test" do
|
21
|
+
mail = JpSampleMailer.attachment_test
|
22
|
+
assert_equal "Attachment test", mail.subject
|
23
|
+
assert_equal ["to@example.org"], mail.to
|
24
|
+
assert_equal ["from@example.com"], mail.from
|
25
|
+
assert_match "Hi", mail.body.encoded
|
26
|
+
end
|
27
|
+
|
28
|
+
test "inline_attachment_test" do
|
29
|
+
mail = JpSampleMailer.inline_attachment_test
|
30
|
+
assert_equal "Inline attachment test", mail.subject
|
31
|
+
assert_equal ["to@example.org"], mail.to
|
32
|
+
assert_equal ["from@example.com"], mail.from
|
33
|
+
assert_match "Hi", mail.body.encoded
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: queued_mail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -43,6 +43,22 @@ dependencies:
|
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: jpmobile
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
46
62
|
description: Description of QueuedMail.
|
47
63
|
email:
|
48
64
|
- uzuki05@takeyu-web.com
|
@@ -65,6 +81,7 @@ files:
|
|
65
81
|
- lib/queued_mail/job.rb
|
66
82
|
- lib/queued_mail/engine.rb
|
67
83
|
- lib/queued_mail/version.rb
|
84
|
+
- lib/queued_mail/outbound_mail.rb
|
68
85
|
- lib/tasks/queued_mail_tasks.rake
|
69
86
|
- lib/queued_mail.rb
|
70
87
|
- MIT-LICENSE
|
@@ -94,6 +111,7 @@ files:
|
|
94
111
|
- test/dummy/config/application.rb
|
95
112
|
- test/dummy/config/database.yml
|
96
113
|
- test/dummy/config/resque.yml
|
114
|
+
- test/dummy/config/smtp_settings.yml
|
97
115
|
- test/dummy/config/environment.rb
|
98
116
|
- test/dummy/config/routes.rb
|
99
117
|
- test/dummy/config/locales/en.yml
|
@@ -102,12 +120,21 @@ files:
|
|
102
120
|
- test/dummy/db/migrate/20120906073754_create_queued_mail_messages.queued_mail.rb
|
103
121
|
- test/dummy/db/development.sqlite3
|
104
122
|
- test/dummy/Rakefile
|
123
|
+
- test/dummy/test/functional/jp_sample_mailer_test.rb
|
105
124
|
- test/dummy/test/functional/sample_mailer_test.rb
|
106
125
|
- test/dummy/app/controllers/application_controller.rb
|
126
|
+
- test/dummy/app/mailers/jp_sample_mailer.rb
|
107
127
|
- test/dummy/app/mailers/sample_mailer.rb
|
108
128
|
- test/dummy/app/assets/stylesheets/application.css
|
109
129
|
- test/dummy/app/assets/javascripts/application.js
|
110
130
|
- test/dummy/app/views/layouts/application.html.erb
|
131
|
+
- test/dummy/app/views/jp_sample_mailer/inline_attachment_test.html.erb
|
132
|
+
- test/dummy/app/views/jp_sample_mailer/multipart_test.text.erb
|
133
|
+
- test/dummy/app/views/jp_sample_mailer/attachment_test.html.erb
|
134
|
+
- test/dummy/app/views/jp_sample_mailer/multipart_test.html.erb
|
135
|
+
- test/dummy/app/views/jp_sample_mailer/simple_test.text.erb
|
136
|
+
- test/dummy/app/views/jp_sample_mailer/attachment_test.text.erb
|
137
|
+
- test/dummy/app/views/jp_sample_mailer/inline_attachment_test.text.erb
|
111
138
|
- test/dummy/app/views/sample_mailer/inline_attachment_test.html.erb
|
112
139
|
- test/dummy/app/views/sample_mailer/multipart_test.text.erb
|
113
140
|
- test/dummy/app/views/sample_mailer/attachment_test.html.erb
|
@@ -133,18 +160,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
133
160
|
- - ! '>='
|
134
161
|
- !ruby/object:Gem::Version
|
135
162
|
version: '0'
|
136
|
-
segments:
|
137
|
-
- 0
|
138
|
-
hash: 2737878527955173205
|
139
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
164
|
none: false
|
141
165
|
requirements:
|
142
166
|
- - ! '>='
|
143
167
|
- !ruby/object:Gem::Version
|
144
168
|
version: '0'
|
145
|
-
segments:
|
146
|
-
- 0
|
147
|
-
hash: 2737878527955173205
|
148
169
|
requirements: []
|
149
170
|
rubyforge_project:
|
150
171
|
rubygems_version: 1.8.23
|
@@ -176,6 +197,7 @@ test_files:
|
|
176
197
|
- test/dummy/config/application.rb
|
177
198
|
- test/dummy/config/database.yml
|
178
199
|
- test/dummy/config/resque.yml
|
200
|
+
- test/dummy/config/smtp_settings.yml
|
179
201
|
- test/dummy/config/environment.rb
|
180
202
|
- test/dummy/config/routes.rb
|
181
203
|
- test/dummy/config/locales/en.yml
|
@@ -184,12 +206,21 @@ test_files:
|
|
184
206
|
- test/dummy/db/migrate/20120906073754_create_queued_mail_messages.queued_mail.rb
|
185
207
|
- test/dummy/db/development.sqlite3
|
186
208
|
- test/dummy/Rakefile
|
209
|
+
- test/dummy/test/functional/jp_sample_mailer_test.rb
|
187
210
|
- test/dummy/test/functional/sample_mailer_test.rb
|
188
211
|
- test/dummy/app/controllers/application_controller.rb
|
212
|
+
- test/dummy/app/mailers/jp_sample_mailer.rb
|
189
213
|
- test/dummy/app/mailers/sample_mailer.rb
|
190
214
|
- test/dummy/app/assets/stylesheets/application.css
|
191
215
|
- test/dummy/app/assets/javascripts/application.js
|
192
216
|
- test/dummy/app/views/layouts/application.html.erb
|
217
|
+
- test/dummy/app/views/jp_sample_mailer/inline_attachment_test.html.erb
|
218
|
+
- test/dummy/app/views/jp_sample_mailer/multipart_test.text.erb
|
219
|
+
- test/dummy/app/views/jp_sample_mailer/attachment_test.html.erb
|
220
|
+
- test/dummy/app/views/jp_sample_mailer/multipart_test.html.erb
|
221
|
+
- test/dummy/app/views/jp_sample_mailer/simple_test.text.erb
|
222
|
+
- test/dummy/app/views/jp_sample_mailer/attachment_test.text.erb
|
223
|
+
- test/dummy/app/views/jp_sample_mailer/inline_attachment_test.text.erb
|
193
224
|
- test/dummy/app/views/sample_mailer/inline_attachment_test.html.erb
|
194
225
|
- test/dummy/app/views/sample_mailer/multipart_test.text.erb
|
195
226
|
- test/dummy/app/views/sample_mailer/attachment_test.html.erb
|