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 CHANGED
@@ -1 +1 @@
1
- 0.1.5
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
@@ -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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mail_engine}
8
- s.version = "0.1.5"
8
+ s.version = "0.1.6"
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"]
Binary file
Binary file
Binary file
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: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
9
+ - 6
10
+ version: 0.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - michael he