mail_engine 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/mail_engine/action_mailer_patch.rb +2 -2
- data/lib/mail_engine/engine.rb +3 -3
- data/mail_engine.gemspec +1 -1
- data/screenshots/dashboard.png +0 -0
- data/screenshots/reports.png +0 -0
- data/screenshots/schedule.png +0 -0
- data/screenshots/templates.png +0 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
@@ -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 MailSafe::Config.replacement_address
|
32
|
-
MailSafe::Config.get_replacement_address(headers[:to])
|
31
|
+
receiver = if defined?(::MailSafe::Config) and ::MailSafe::Config.replacement_address
|
32
|
+
::MailSafe::Config.get_replacement_address(headers[:to])
|
33
33
|
else
|
34
34
|
headers[:to]
|
35
35
|
end
|
data/lib/mail_engine/engine.rb
CHANGED
@@ -50,9 +50,9 @@ module MailEngine
|
|
50
50
|
MailEngine::USER_MODEL = MailEngine::Base.current_config["user_class_name"].constantize unless defined?(MailEngine::USER_MODEL)
|
51
51
|
|
52
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
|
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
56
|
end
|
57
57
|
else
|
58
58
|
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."
|
data/mail_engine.gemspec
CHANGED
data/screenshots/dashboard.png
CHANGED
Binary file
|
data/screenshots/reports.png
CHANGED
Binary file
|
data/screenshots/schedule.png
CHANGED
Binary file
|
data/screenshots/templates.png
CHANGED
Binary file
|
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:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 6
|
10
|
+
version: 0.1.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- michael he
|