mail_engine 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. data/.yardoc/checksums +9 -7
  2. data/.yardoc/objects/ActionMailer/Base/collect_responses_and_parts_order_i.dat +0 -0
  3. data/.yardoc/objects/ActionMailer/Base/mail_i.dat +0 -0
  4. data/.yardoc/objects/ActionMailer/Base/origin_mail_i.dat +0 -0
  5. data/.yardoc/objects/ActionMailer/Base/set_layout_and_partials_i.dat +0 -0
  6. data/.yardoc/objects/ActionMailer/Base.dat +0 -0
  7. data/.yardoc/objects/ActionMailer/Collector/custom_i.dat +0 -0
  8. data/.yardoc/objects/ActionMailer/Collector.dat +0 -0
  9. data/.yardoc/objects/ActionMailer.dat +0 -0
  10. data/.yardoc/objects/LiquidView/PROTECTED_ASSIGNS.dat +0 -0
  11. data/.yardoc/objects/LiquidView/PROTECTED_INSTANCE_VARIABLES.dat +0 -0
  12. data/.yardoc/objects/LiquidView/call_c.dat +0 -0
  13. data/.yardoc/objects/LiquidView/compilable_3F_i.dat +0 -0
  14. data/.yardoc/objects/LiquidView/initialize_i.dat +0 -0
  15. data/.yardoc/objects/LiquidView/render_i.dat +0 -0
  16. data/.yardoc/objects/LiquidView.dat +0 -0
  17. data/.yardoc/objects/MailEngine/ActsAsMailReceiver/ClassMethods/acts_as_mail_receiver_i.dat +0 -0
  18. data/.yardoc/objects/MailEngine/ActsAsMailReceiver/ClassMethods/check_method_existance_21_i.dat +0 -0
  19. data/.yardoc/objects/MailEngine/ActsAsMailReceiver/ClassMethods.dat +0 -0
  20. data/.yardoc/objects/MailEngine/ActsAsMailReceiver.dat +0 -0
  21. data/.yardoc/objects/MailEngine/Base/_40_40configurations.dat +0 -0
  22. data/.yardoc/objects/MailEngine/Base/current_config_c.dat +0 -0
  23. data/.yardoc/objects/MailEngine/Base/send_marketing_mail_c.dat +0 -0
  24. data/.yardoc/objects/MailEngine/Base.dat +0 -0
  25. data/.yardoc/objects/MailEngine/Configuration/load_c.dat +0 -0
  26. data/.yardoc/objects/MailEngine/Configuration.dat +0 -0
  27. data/.yardoc/objects/MailEngine/CopyMigrations/copy_migrations_i.dat +0 -0
  28. data/.yardoc/objects/MailEngine/CopyMigrations.dat +0 -0
  29. data/.yardoc/objects/MailEngine/CopyResources/copy_resources_i.dat +0 -0
  30. data/.yardoc/objects/MailEngine/CopyResources.dat +0 -0
  31. data/.yardoc/objects/MailEngine/CreateConfig/create_config_file_i.dat +0 -0
  32. data/.yardoc/objects/MailEngine/CreateConfig.dat +0 -0
  33. data/.yardoc/objects/MailEngine/Engine.dat +0 -0
  34. data/.yardoc/objects/MailEngine/HtmlDocumentAssetsReplacer/check_21_c.dat +0 -0
  35. data/.yardoc/objects/MailEngine/HtmlDocumentAssetsReplacer/get_resource_url_c.dat +0 -0
  36. data/.yardoc/objects/MailEngine/HtmlDocumentAssetsReplacer/process_c.dat +0 -0
  37. data/.yardoc/objects/MailEngine/HtmlDocumentAssetsReplacer/replace_resource_in_html_c.dat +0 -0
  38. data/.yardoc/objects/MailEngine/HtmlDocumentAssetsReplacer.dat +0 -0
  39. data/.yardoc/objects/MailEngine/Install/copy_migrations_i.dat +0 -0
  40. data/.yardoc/objects/MailEngine/Install/copy_resources_i.dat +0 -0
  41. data/.yardoc/objects/MailEngine/Install/create_config_i.dat +0 -0
  42. data/.yardoc/objects/MailEngine/Install.dat +0 -0
  43. data/.yardoc/objects/MailEngine/MailLogSubscriber/deliver_i.dat +0 -0
  44. data/.yardoc/objects/MailEngine/MailLogSubscriber.dat +0 -0
  45. data/.yardoc/objects/MailEngine/MailTemplateResolver/find_templates_i.dat +0 -0
  46. data/.yardoc/objects/MailEngine/MailTemplateResolver/initialize_template_i.dat +0 -0
  47. data/.yardoc/objects/MailEngine/MailTemplateResolver/normalize_array_i.dat +0 -0
  48. data/.yardoc/objects/MailEngine/MailTemplateResolver/normalize_path_i.dat +0 -0
  49. data/.yardoc/objects/MailEngine/MailTemplateResolver/virtual_path_i.dat +0 -0
  50. data/.yardoc/objects/MailEngine/MailTemplateResolver.dat +0 -0
  51. data/.yardoc/objects/MailEngine/PLACEHOLDERS_IN_LAYOUT.dat +0 -0
  52. data/.yardoc/objects/MailEngine/Sendgrid/Base/ClassMethods/sendgrid_header_i.dat +0 -0
  53. data/.yardoc/objects/MailEngine/Sendgrid/Base/ClassMethods.dat +0 -0
  54. data/.yardoc/objects/MailEngine/Sendgrid/Base/InstanceMethods.dat +0 -0
  55. data/.yardoc/objects/MailEngine/Sendgrid/Base.dat +0 -0
  56. data/.yardoc/objects/MailEngine/Sendgrid/FilterSetting/data_3D_i.dat +0 -0
  57. data/.yardoc/objects/MailEngine/Sendgrid/FilterSetting/data_i.dat +0 -0
  58. data/.yardoc/objects/MailEngine/Sendgrid/FilterSetting/initialize_i.dat +0 -0
  59. data/.yardoc/objects/MailEngine/Sendgrid/FilterSetting/validate_config_21_i.dat +0 -0
  60. data/.yardoc/objects/MailEngine/Sendgrid/FilterSetting.dat +0 -0
  61. data/.yardoc/objects/MailEngine/Sendgrid/RestApi/blocks_c.dat +0 -0
  62. data/.yardoc/objects/MailEngine/Sendgrid/RestApi/bounces_c.dat +0 -0
  63. data/.yardoc/objects/MailEngine/Sendgrid/RestApi/invalidemails_c.dat +0 -0
  64. data/.yardoc/objects/MailEngine/Sendgrid/RestApi/spamreports_c.dat +0 -0
  65. data/.yardoc/objects/MailEngine/Sendgrid/RestApi/stats_c.dat +0 -0
  66. data/.yardoc/objects/MailEngine/Sendgrid/RestApi.dat +0 -0
  67. data/.yardoc/objects/MailEngine/Sendgrid/RestApiError.dat +0 -0
  68. data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi/add_sub_val_i.dat +0 -0
  69. data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi/add_to_i.dat +0 -0
  70. data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi/category_i.dat +0 -0
  71. data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi/filters_i.dat +0 -0
  72. data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi/initialize_i.dat +0 -0
  73. data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi/set_send_to_i.dat +0 -0
  74. data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi/set_unique_args_i.dat +0 -0
  75. data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi/to_hash_i.dat +0 -0
  76. data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi/to_json_i.dat +0 -0
  77. data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi/to_s_i.dat +0 -0
  78. data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi.dat +0 -0
  79. data/.yardoc/objects/MailEngine/Sendgrid.dat +0 -0
  80. data/.yardoc/objects/MailEngine/VERSION.dat +0 -0
  81. data/.yardoc/objects/MailEngine/ZipProcessor/extract_all_files_c.dat +0 -0
  82. data/.yardoc/objects/MailEngine/ZipProcessor.dat +0 -0
  83. data/.yardoc/objects/MailEngine.dat +0 -0
  84. data/.yardoc/objects/root.dat +0 -0
  85. data/.yardoc/proxy_types +0 -0
  86. data/Gemfile +0 -1
  87. data/VERSION +1 -1
  88. data/app/controllers/mail_engine/application_controller.rb +0 -2
  89. data/doc/ActionMailer/Base.html +48 -4
  90. data/doc/ActionMailer/Collector.html +11 -11
  91. data/doc/ActionMailer.html +1 -1
  92. data/doc/LiquidView.html +453 -0
  93. data/doc/MailEngine/ActsAsMailReceiver/ClassMethods.html +1 -1
  94. data/doc/MailEngine/ActsAsMailReceiver.html +1 -1
  95. data/doc/MailEngine/Base.html +14 -12
  96. data/doc/MailEngine/Configuration.html +1 -1
  97. data/doc/MailEngine/CopyMigrations.html +1 -1
  98. data/doc/MailEngine/CopyResources.html +1 -1
  99. data/doc/MailEngine/CreateConfig.html +1 -1
  100. data/doc/MailEngine/Engine.html +1 -1
  101. data/doc/MailEngine/HtmlDocumentAssetsReplacer.html +1 -1
  102. data/doc/MailEngine/Install.html +1 -1
  103. data/doc/MailEngine/MailLogSubscriber.html +1 -1
  104. data/doc/MailEngine/MailTemplateResolver.html +502 -0
  105. data/doc/MailEngine/Sendgrid/Base/ClassMethods.html +1 -1
  106. data/doc/MailEngine/Sendgrid/Base/InstanceMethods.html +1 -1
  107. data/doc/MailEngine/Sendgrid/Base.html +1 -1
  108. data/doc/MailEngine/Sendgrid/FilterSetting.html +1 -1
  109. data/doc/MailEngine/Sendgrid/RestApi.html +1 -1
  110. data/doc/MailEngine/Sendgrid/RestApiError.html +1 -1
  111. data/doc/MailEngine/Sendgrid/SmtpApi.html +99 -30
  112. data/doc/MailEngine/Sendgrid.html +1 -1
  113. data/doc/MailEngine/ZipProcessor.html +1 -1
  114. data/doc/MailEngine.html +3 -3
  115. data/doc/_index.html +25 -5
  116. data/doc/class_list.html +1 -1
  117. data/doc/file.README.html +70 -2
  118. data/doc/index.html +70 -2
  119. data/doc/method_list.html +88 -8
  120. data/doc/top-level-namespace.html +3 -1
  121. data/lib/mail_engine/action_mailer_patch.rb +2 -2
  122. data/lib/mail_engine/engine.rb +3 -7
  123. data/mail_engine.gemspec +18 -5
  124. data/test/functional/user_mailer_test.rb +2 -5
  125. metadata +27 -25
data/doc/method_list.html CHANGED
@@ -69,6 +69,14 @@
69
69
 
70
70
 
71
71
  <li class="r2 ">
72
+ <span class='object_link'><a href="LiquidView.html#call-class_method" title="LiquidView.call (method)">call</a></span>
73
+
74
+ <small>LiquidView</small>
75
+
76
+ </li>
77
+
78
+
79
+ <li class="r1 ">
72
80
  <span class='object_link'><a href="MailEngine/Sendgrid/SmtpApi.html#category-instance_method" title="MailEngine::Sendgrid::SmtpApi#category (method)">#category</a></span>
73
81
 
74
82
  <small>MailEngine::Sendgrid::SmtpApi</small>
@@ -76,7 +84,7 @@
76
84
  </li>
77
85
 
78
86
 
79
- <li class="r1 ">
87
+ <li class="r2 ">
80
88
  <span class='object_link'><a href="MailEngine/HtmlDocumentAssetsReplacer.html#check%21-class_method" title="MailEngine::HtmlDocumentAssetsReplacer.check! (method)">check!</a></span>
81
89
 
82
90
  <small>MailEngine::HtmlDocumentAssetsReplacer</small>
@@ -84,6 +92,14 @@
84
92
  </li>
85
93
 
86
94
 
95
+ <li class="r1 ">
96
+ <span class='object_link'><a href="LiquidView.html#compilable%3F-instance_method" title="LiquidView#compilable? (method)">#compilable?</a></span>
97
+
98
+ <small>LiquidView</small>
99
+
100
+ </li>
101
+
102
+
87
103
  <li class="r2 ">
88
104
  <span class='object_link'><a href="MailEngine/Install.html#copy_migrations-instance_method" title="MailEngine::Install#copy_migrations (method)">#copy_migrations</a></span>
89
105
 
@@ -180,6 +196,22 @@
180
196
  </li>
181
197
 
182
198
 
199
+ <li class="r2 ">
200
+ <span class='object_link'><a href="MailEngine/MailTemplateResolver.html#find_templates-instance_method" title="MailEngine::MailTemplateResolver#find_templates (method)">#find_templates</a></span>
201
+
202
+ <small>MailEngine::MailTemplateResolver</small>
203
+
204
+ </li>
205
+
206
+
207
+ <li class="r1 ">
208
+ <span class='object_link'><a href="LiquidView.html#initialize-instance_method" title="LiquidView#initialize (method)">#initialize</a></span>
209
+
210
+ <small>LiquidView</small>
211
+
212
+ </li>
213
+
214
+
183
215
  <li class="r2 ">
184
216
  <span class='object_link'><a href="MailEngine/Sendgrid/FilterSetting.html#initialize-instance_method" title="MailEngine::Sendgrid::FilterSetting#initialize (method)">#initialize</a></span>
185
217
 
@@ -197,6 +229,14 @@
197
229
 
198
230
 
199
231
  <li class="r2 ">
232
+ <span class='object_link'><a href="MailEngine/MailTemplateResolver.html#initialize_template-instance_method" title="MailEngine::MailTemplateResolver#initialize_template (method)">#initialize_template</a></span>
233
+
234
+ <small>MailEngine::MailTemplateResolver</small>
235
+
236
+ </li>
237
+
238
+
239
+ <li class="r1 ">
200
240
  <span class='object_link'><a href="MailEngine/Sendgrid/RestApi.html#invalidemails-class_method" title="MailEngine::Sendgrid::RestApi.invalidemails (method)">invalidemails</a></span>
201
241
 
202
242
  <small>MailEngine::Sendgrid::RestApi</small>
@@ -204,7 +244,7 @@
204
244
  </li>
205
245
 
206
246
 
207
- <li class="r1 ">
247
+ <li class="r2 ">
208
248
  <span class='object_link'><a href="MailEngine/Configuration.html#load-class_method" title="MailEngine::Configuration.load (method)">load</a></span>
209
249
 
210
250
  <small>MailEngine::Configuration</small>
@@ -212,7 +252,7 @@
212
252
  </li>
213
253
 
214
254
 
215
- <li class="r2 ">
255
+ <li class="r1 ">
216
256
  <span class='object_link'><a href="ActionMailer/Base.html#mail-instance_method" title="ActionMailer::Base#mail (method)">#mail</a></span>
217
257
 
218
258
  <small>ActionMailer::Base</small>
@@ -220,7 +260,23 @@
220
260
  </li>
221
261
 
222
262
 
263
+ <li class="r2 ">
264
+ <span class='object_link'><a href="MailEngine/MailTemplateResolver.html#normalize_array-instance_method" title="MailEngine::MailTemplateResolver#normalize_array (method)">#normalize_array</a></span>
265
+
266
+ <small>MailEngine::MailTemplateResolver</small>
267
+
268
+ </li>
269
+
270
+
223
271
  <li class="r1 ">
272
+ <span class='object_link'><a href="MailEngine/MailTemplateResolver.html#normalize_path-instance_method" title="MailEngine::MailTemplateResolver#normalize_path (method)">#normalize_path</a></span>
273
+
274
+ <small>MailEngine::MailTemplateResolver</small>
275
+
276
+ </li>
277
+
278
+
279
+ <li class="r2 ">
224
280
  <span class='object_link'><a href="MailEngine/HtmlDocumentAssetsReplacer.html#process-class_method" title="MailEngine::HtmlDocumentAssetsReplacer.process (method)">process</a></span>
225
281
 
226
282
  <small>MailEngine::HtmlDocumentAssetsReplacer</small>
@@ -228,6 +284,14 @@
228
284
  </li>
229
285
 
230
286
 
287
+ <li class="r1 ">
288
+ <span class='object_link'><a href="LiquidView.html#render-instance_method" title="LiquidView#render (method)">#render</a></span>
289
+
290
+ <small>LiquidView</small>
291
+
292
+ </li>
293
+
294
+
231
295
  <li class="r2 ">
232
296
  <span class='object_link'><a href="MailEngine/HtmlDocumentAssetsReplacer.html#replace_resource_in_html-class_method" title="MailEngine::HtmlDocumentAssetsReplacer.replace_resource_in_html (method)">replace_resource_in_html</a></span>
233
297
 
@@ -253,7 +317,7 @@
253
317
 
254
318
 
255
319
  <li class="r1 ">
256
- <span class='object_link'><a href="MailEngine/Sendgrid/SmtpApi.html#set_unique_args-instance_method" title="MailEngine::Sendgrid::SmtpApi#set_unique_args (method)">#set_unique_args</a></span>
320
+ <span class='object_link'><a href="MailEngine/Sendgrid/SmtpApi.html#set_send_to-instance_method" title="MailEngine::Sendgrid::SmtpApi#set_send_to (method)">#set_send_to</a></span>
257
321
 
258
322
  <small>MailEngine::Sendgrid::SmtpApi</small>
259
323
 
@@ -261,6 +325,14 @@
261
325
 
262
326
 
263
327
  <li class="r2 ">
328
+ <span class='object_link'><a href="MailEngine/Sendgrid/SmtpApi.html#set_unique_args-instance_method" title="MailEngine::Sendgrid::SmtpApi#set_unique_args (method)">#set_unique_args</a></span>
329
+
330
+ <small>MailEngine::Sendgrid::SmtpApi</small>
331
+
332
+ </li>
333
+
334
+
335
+ <li class="r1 ">
264
336
  <span class='object_link'><a href="MailEngine/Sendgrid/RestApi.html#spamreports-class_method" title="MailEngine::Sendgrid::RestApi.spamreports (method)">spamreports</a></span>
265
337
 
266
338
  <small>MailEngine::Sendgrid::RestApi</small>
@@ -268,7 +340,7 @@
268
340
  </li>
269
341
 
270
342
 
271
- <li class="r1 ">
343
+ <li class="r2 ">
272
344
  <span class='object_link'><a href="MailEngine/Sendgrid/RestApi.html#stats-class_method" title="MailEngine::Sendgrid::RestApi.stats (method)">stats</a></span>
273
345
 
274
346
  <small>MailEngine::Sendgrid::RestApi</small>
@@ -276,7 +348,7 @@
276
348
  </li>
277
349
 
278
350
 
279
- <li class="r2 ">
351
+ <li class="r1 ">
280
352
  <span class='object_link'><a href="MailEngine/Sendgrid/SmtpApi.html#to_hash-instance_method" title="MailEngine::Sendgrid::SmtpApi#to_hash (method)">#to_hash</a></span>
281
353
 
282
354
  <small>MailEngine::Sendgrid::SmtpApi</small>
@@ -284,7 +356,7 @@
284
356
  </li>
285
357
 
286
358
 
287
- <li class="r1 ">
359
+ <li class="r2 ">
288
360
  <span class='object_link'><a href="MailEngine/Sendgrid/SmtpApi.html#to_json-instance_method" title="MailEngine::Sendgrid::SmtpApi#to_json (method)">#to_json</a></span>
289
361
 
290
362
  <small>MailEngine::Sendgrid::SmtpApi</small>
@@ -292,7 +364,7 @@
292
364
  </li>
293
365
 
294
366
 
295
- <li class="r2 ">
367
+ <li class="r1 ">
296
368
  <span class='object_link'><a href="MailEngine/Sendgrid/SmtpApi.html#to_s-instance_method" title="MailEngine::Sendgrid::SmtpApi#to_s (method)">#to_s</a></span>
297
369
 
298
370
  <small>MailEngine::Sendgrid::SmtpApi</small>
@@ -300,6 +372,14 @@
300
372
  </li>
301
373
 
302
374
 
375
+ <li class="r2 ">
376
+ <span class='object_link'><a href="MailEngine/MailTemplateResolver.html#virtual_path-instance_method" title="MailEngine::MailTemplateResolver#virtual_path (method)">#virtual_path</a></span>
377
+
378
+ <small>MailEngine::MailTemplateResolver</small>
379
+
380
+ </li>
381
+
382
+
303
383
  </ul>
304
384
  </div>
305
385
  </body>
@@ -69,6 +69,8 @@
69
69
 
70
70
 
71
71
 
72
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="LiquidView.html" title="LiquidView (class)">LiquidView</a></span>
73
+
72
74
 
73
75
  </p>
74
76
 
@@ -79,7 +81,7 @@
79
81
  </div>
80
82
 
81
83
  <div id="footer">
82
- Generated on Fri Mar 4 17:56:27 2011 by
84
+ Generated on Mon Mar 14 22:31:46 2011 by
83
85
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
84
86
  0.6.4 (ruby-1.8.7).
85
87
  </div>
@@ -28,8 +28,8 @@ module ActionMailer
28
28
  # Why here but not add to default_params of action_mailer? because the receiver email [:to] only can get here.
29
29
  if self.sendgrid_config
30
30
  # if add "replacement_email" option in config
31
- receiver = if defined?(::MailSafe::Config) and ::MailSafe::Config.replacement_address
32
- ::MailSafe::Config.get_replacement_address(headers[:to])
31
+ receiver = if replacement_email = MailEngine::Base.current_config["replacement_email"]
32
+ replacement_email
33
33
  else
34
34
  headers[:to]
35
35
  end
@@ -21,7 +21,9 @@ module MailEngine
21
21
 
22
22
  initializer "mail_engine.register_database_template" do
23
23
  ActionMailer::Base.layout "layouts/mail_engine/mail_template_layouts/none"
24
- ActionMailer::Base.send(:prepend_view_path, MailEngine::MailTemplateResolver.instance)
24
+ ActionMailer::Base.prepend_view_path(MailEngine::MailTemplateResolver.instance)
25
+ # used when mail_template preview.
26
+ MailEngine::ApplicationController.prepend_view_path(MailEngine::MailTemplateResolver.instance)
25
27
  end
26
28
 
27
29
  initializer "mail_engine.add_acts_as_mail_receiver" do
@@ -48,12 +50,6 @@ module MailEngine
48
50
  if MailEngine::Base.current_config.present?
49
51
  raise "Please add :user_class_name config into mail_engine_config.yml." if MailEngine::Base.current_config["user_class_name"].blank?
50
52
  MailEngine::USER_MODEL = MailEngine::Base.current_config["user_class_name"].constantize unless defined?(MailEngine::USER_MODEL)
51
-
52
- # in development mode all mails send to replacement_email_in_dev_mode
53
- if defined?(::MailSafe::Config) and replacement_email = MailEngine::Base.current_config["replacement_email"]
54
- ::MailSafe::Config.internal_address_definition = /#{replacement_email}/
55
- ::MailSafe::Config.replacement_address = replacement_email
56
- end
57
53
  else
58
54
  puts "\e[1;31;40m[Mail Engine Warning]\e[0m Not found mail_engine_config.yml, so mail_engine won't be able to work."
59
55
  end
data/mail_engine.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mail_engine}
8
- s.version = "0.1.6"
8
+ s.version = "0.1.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["michael he"]
12
- s.date = %q{2011-03-14}
12
+ s.date = %q{2011-03-15}
13
13
  s.description = %q{Rails system mail management solution.}
14
14
  s.email = %q{hlxwell@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -25,6 +25,13 @@ Gem::Specification.new do |s|
25
25
  ".yardoc/objects/ActionMailer/Base/set_layout_and_partials_i.dat",
26
26
  ".yardoc/objects/ActionMailer/Collector.dat",
27
27
  ".yardoc/objects/ActionMailer/Collector/custom_i.dat",
28
+ ".yardoc/objects/LiquidView.dat",
29
+ ".yardoc/objects/LiquidView/PROTECTED_ASSIGNS.dat",
30
+ ".yardoc/objects/LiquidView/PROTECTED_INSTANCE_VARIABLES.dat",
31
+ ".yardoc/objects/LiquidView/call_c.dat",
32
+ ".yardoc/objects/LiquidView/compilable_3F_i.dat",
33
+ ".yardoc/objects/LiquidView/initialize_i.dat",
34
+ ".yardoc/objects/LiquidView/render_i.dat",
28
35
  ".yardoc/objects/MailEngine.dat",
29
36
  ".yardoc/objects/MailEngine/ActsAsMailReceiver.dat",
30
37
  ".yardoc/objects/MailEngine/ActsAsMailReceiver/ClassMethods.dat",
@@ -54,6 +61,12 @@ Gem::Specification.new do |s|
54
61
  ".yardoc/objects/MailEngine/Install/create_config_i.dat",
55
62
  ".yardoc/objects/MailEngine/MailLogSubscriber.dat",
56
63
  ".yardoc/objects/MailEngine/MailLogSubscriber/deliver_i.dat",
64
+ ".yardoc/objects/MailEngine/MailTemplateResolver.dat",
65
+ ".yardoc/objects/MailEngine/MailTemplateResolver/find_templates_i.dat",
66
+ ".yardoc/objects/MailEngine/MailTemplateResolver/initialize_template_i.dat",
67
+ ".yardoc/objects/MailEngine/MailTemplateResolver/normalize_array_i.dat",
68
+ ".yardoc/objects/MailEngine/MailTemplateResolver/normalize_path_i.dat",
69
+ ".yardoc/objects/MailEngine/MailTemplateResolver/virtual_path_i.dat",
57
70
  ".yardoc/objects/MailEngine/PLACEHOLDERS_IN_LAYOUT.dat",
58
71
  ".yardoc/objects/MailEngine/Sendgrid.dat",
59
72
  ".yardoc/objects/MailEngine/Sendgrid/Base.dat",
@@ -78,6 +91,7 @@ Gem::Specification.new do |s|
78
91
  ".yardoc/objects/MailEngine/Sendgrid/SmtpApi/category_i.dat",
79
92
  ".yardoc/objects/MailEngine/Sendgrid/SmtpApi/filters_i.dat",
80
93
  ".yardoc/objects/MailEngine/Sendgrid/SmtpApi/initialize_i.dat",
94
+ ".yardoc/objects/MailEngine/Sendgrid/SmtpApi/set_send_to_i.dat",
81
95
  ".yardoc/objects/MailEngine/Sendgrid/SmtpApi/set_unique_args_i.dat",
82
96
  ".yardoc/objects/MailEngine/Sendgrid/SmtpApi/to_hash_i.dat",
83
97
  ".yardoc/objects/MailEngine/Sendgrid/SmtpApi/to_json_i.dat",
@@ -154,6 +168,7 @@ Gem::Specification.new do |s|
154
168
  "doc/ActionMailer.html",
155
169
  "doc/ActionMailer/Base.html",
156
170
  "doc/ActionMailer/Collector.html",
171
+ "doc/LiquidView.html",
157
172
  "doc/MailEngine.html",
158
173
  "doc/MailEngine/ActsAsMailReceiver.html",
159
174
  "doc/MailEngine/ActsAsMailReceiver/ClassMethods.html",
@@ -167,6 +182,7 @@ Gem::Specification.new do |s|
167
182
  "doc/MailEngine/HtmlDocumentAssetsReplacer.html",
168
183
  "doc/MailEngine/Install.html",
169
184
  "doc/MailEngine/MailLogSubscriber.html",
185
+ "doc/MailEngine/MailTemplateResolver.html",
170
186
  "doc/MailEngine/Sendgrid.html",
171
187
  "doc/MailEngine/Sendgrid/Base.html",
172
188
  "doc/MailEngine/Sendgrid/Base/ClassMethods.html",
@@ -618,7 +634,6 @@ Gem::Specification.new do |s|
618
634
  s.add_runtime_dependency(%q<liquid>, [">= 0"])
619
635
  s.add_runtime_dependency(%q<kaminari>, [">= 0"])
620
636
  s.add_runtime_dependency(%q<carrierwave>, [">= 0"])
621
- s.add_runtime_dependency(%q<mail_safe>, [">= 0"])
622
637
  s.add_development_dependency(%q<annotate>, [">= 0"])
623
638
  s.add_development_dependency(%q<bluecloth>, [">= 0"])
624
639
  s.add_development_dependency(%q<yard>, [">= 0"])
@@ -636,7 +651,6 @@ Gem::Specification.new do |s|
636
651
  s.add_dependency(%q<liquid>, [">= 0"])
637
652
  s.add_dependency(%q<kaminari>, [">= 0"])
638
653
  s.add_dependency(%q<carrierwave>, [">= 0"])
639
- s.add_dependency(%q<mail_safe>, [">= 0"])
640
654
  s.add_dependency(%q<annotate>, [">= 0"])
641
655
  s.add_dependency(%q<bluecloth>, [">= 0"])
642
656
  s.add_dependency(%q<yard>, [">= 0"])
@@ -655,7 +669,6 @@ Gem::Specification.new do |s|
655
669
  s.add_dependency(%q<liquid>, [">= 0"])
656
670
  s.add_dependency(%q<kaminari>, [">= 0"])
657
671
  s.add_dependency(%q<carrierwave>, [">= 0"])
658
- s.add_dependency(%q<mail_safe>, [">= 0"])
659
672
  s.add_dependency(%q<annotate>, [">= 0"])
660
673
  s.add_dependency(%q<bluecloth>, [">= 0"])
661
674
  s.add_dependency(%q<yard>, [">= 0"])
@@ -7,12 +7,9 @@ class UserMailerTest < ActionController::TestCase
7
7
  end
8
8
 
9
9
  should "send to safe mail address" do
10
- replacement_email = "xxx@xxx.com"
11
- MailSafe::Config.internal_address_definition = /#{replacement_email}/
12
- MailSafe::Config.replacement_address = replacement_email
13
-
10
+ MailEngine::Base.current_config["replacement_email"] = "xxx@xxx.com"
14
11
  UserMailer.notify("x@x.com").deliver
15
- assert UserMailer.sendgrid_config.to_hash["X-SMTPAPI"].include?("[\"#{replacement_email}\"]")
12
+ assert UserMailer.sendgrid_config.to_hash["X-SMTPAPI"].include?("[\"xxx@xxx.com\"]")
16
13
  end
17
14
 
18
15
  should "only send mail to the receiver" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail_engine
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - michael he
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-14 00:00:00 +08:00
18
+ date: 2011-03-15 00:00:00 +08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -158,8 +158,8 @@ dependencies:
158
158
  version: "0"
159
159
  requirement: *id010
160
160
  prerelease: false
161
- name: mail_safe
162
- type: :runtime
161
+ name: annotate
162
+ type: :development
163
163
  - !ruby/object:Gem::Dependency
164
164
  version_requirements: &id011 !ruby/object:Gem::Requirement
165
165
  none: false
@@ -172,7 +172,7 @@ dependencies:
172
172
  version: "0"
173
173
  requirement: *id011
174
174
  prerelease: false
175
- name: annotate
175
+ name: bluecloth
176
176
  type: :development
177
177
  - !ruby/object:Gem::Dependency
178
178
  version_requirements: &id012 !ruby/object:Gem::Requirement
@@ -186,7 +186,7 @@ dependencies:
186
186
  version: "0"
187
187
  requirement: *id012
188
188
  prerelease: false
189
- name: bluecloth
189
+ name: yard
190
190
  type: :development
191
191
  - !ruby/object:Gem::Dependency
192
192
  version_requirements: &id013 !ruby/object:Gem::Requirement
@@ -200,7 +200,7 @@ dependencies:
200
200
  version: "0"
201
201
  requirement: *id013
202
202
  prerelease: false
203
- name: yard
203
+ name: bundler
204
204
  type: :development
205
205
  - !ruby/object:Gem::Dependency
206
206
  version_requirements: &id014 !ruby/object:Gem::Requirement
@@ -214,7 +214,7 @@ dependencies:
214
214
  version: "0"
215
215
  requirement: *id014
216
216
  prerelease: false
217
- name: bundler
217
+ name: jeweler
218
218
  type: :development
219
219
  - !ruby/object:Gem::Dependency
220
220
  version_requirements: &id015 !ruby/object:Gem::Requirement
@@ -228,7 +228,7 @@ dependencies:
228
228
  version: "0"
229
229
  requirement: *id015
230
230
  prerelease: false
231
- name: jeweler
231
+ name: rcov
232
232
  type: :development
233
233
  - !ruby/object:Gem::Dependency
234
234
  version_requirements: &id016 !ruby/object:Gem::Requirement
@@ -242,20 +242,6 @@ dependencies:
242
242
  version: "0"
243
243
  requirement: *id016
244
244
  prerelease: false
245
- name: rcov
246
- type: :development
247
- - !ruby/object:Gem::Dependency
248
- version_requirements: &id017 !ruby/object:Gem::Requirement
249
- none: false
250
- requirements:
251
- - - ">="
252
- - !ruby/object:Gem::Version
253
- hash: 3
254
- segments:
255
- - 0
256
- version: "0"
257
- requirement: *id017
258
- prerelease: false
259
245
  name: reek
260
246
  type: :development
261
247
  description: Rails system mail management solution.
@@ -276,6 +262,13 @@ files:
276
262
  - .yardoc/objects/ActionMailer/Base/set_layout_and_partials_i.dat
277
263
  - .yardoc/objects/ActionMailer/Collector.dat
278
264
  - .yardoc/objects/ActionMailer/Collector/custom_i.dat
265
+ - .yardoc/objects/LiquidView.dat
266
+ - .yardoc/objects/LiquidView/PROTECTED_ASSIGNS.dat
267
+ - .yardoc/objects/LiquidView/PROTECTED_INSTANCE_VARIABLES.dat
268
+ - .yardoc/objects/LiquidView/call_c.dat
269
+ - .yardoc/objects/LiquidView/compilable_3F_i.dat
270
+ - .yardoc/objects/LiquidView/initialize_i.dat
271
+ - .yardoc/objects/LiquidView/render_i.dat
279
272
  - .yardoc/objects/MailEngine.dat
280
273
  - .yardoc/objects/MailEngine/ActsAsMailReceiver.dat
281
274
  - .yardoc/objects/MailEngine/ActsAsMailReceiver/ClassMethods.dat
@@ -305,6 +298,12 @@ files:
305
298
  - .yardoc/objects/MailEngine/Install/create_config_i.dat
306
299
  - .yardoc/objects/MailEngine/MailLogSubscriber.dat
307
300
  - .yardoc/objects/MailEngine/MailLogSubscriber/deliver_i.dat
301
+ - .yardoc/objects/MailEngine/MailTemplateResolver.dat
302
+ - .yardoc/objects/MailEngine/MailTemplateResolver/find_templates_i.dat
303
+ - .yardoc/objects/MailEngine/MailTemplateResolver/initialize_template_i.dat
304
+ - .yardoc/objects/MailEngine/MailTemplateResolver/normalize_array_i.dat
305
+ - .yardoc/objects/MailEngine/MailTemplateResolver/normalize_path_i.dat
306
+ - .yardoc/objects/MailEngine/MailTemplateResolver/virtual_path_i.dat
308
307
  - .yardoc/objects/MailEngine/PLACEHOLDERS_IN_LAYOUT.dat
309
308
  - .yardoc/objects/MailEngine/Sendgrid.dat
310
309
  - .yardoc/objects/MailEngine/Sendgrid/Base.dat
@@ -329,6 +328,7 @@ files:
329
328
  - .yardoc/objects/MailEngine/Sendgrid/SmtpApi/category_i.dat
330
329
  - .yardoc/objects/MailEngine/Sendgrid/SmtpApi/filters_i.dat
331
330
  - .yardoc/objects/MailEngine/Sendgrid/SmtpApi/initialize_i.dat
331
+ - .yardoc/objects/MailEngine/Sendgrid/SmtpApi/set_send_to_i.dat
332
332
  - .yardoc/objects/MailEngine/Sendgrid/SmtpApi/set_unique_args_i.dat
333
333
  - .yardoc/objects/MailEngine/Sendgrid/SmtpApi/to_hash_i.dat
334
334
  - .yardoc/objects/MailEngine/Sendgrid/SmtpApi/to_json_i.dat
@@ -405,6 +405,7 @@ files:
405
405
  - doc/ActionMailer.html
406
406
  - doc/ActionMailer/Base.html
407
407
  - doc/ActionMailer/Collector.html
408
+ - doc/LiquidView.html
408
409
  - doc/MailEngine.html
409
410
  - doc/MailEngine/ActsAsMailReceiver.html
410
411
  - doc/MailEngine/ActsAsMailReceiver/ClassMethods.html
@@ -418,6 +419,7 @@ files:
418
419
  - doc/MailEngine/HtmlDocumentAssetsReplacer.html
419
420
  - doc/MailEngine/Install.html
420
421
  - doc/MailEngine/MailLogSubscriber.html
422
+ - doc/MailEngine/MailTemplateResolver.html
421
423
  - doc/MailEngine/Sendgrid.html
422
424
  - doc/MailEngine/Sendgrid/Base.html
423
425
  - doc/MailEngine/Sendgrid/Base/ClassMethods.html