thecore_background_jobs 2.0.10 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/routes.rb +1 -0
- data/lib/thecore_background_jobs.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79100472262d757000844d14246c1d1ea161443abbc4079c3e7b109235ddfdeb
|
4
|
+
data.tar.gz: fd4bcbe11df64eacec37ba6d6a980ee8f07eee2c17f686f4213ddab085e11625
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 668d2e1427fc4dfef65a7bfee5c62c81678d953db32d009cbf4390d2e80f379f437c4cc420053580e697b8e37d2257d83e7d28e689863ae40c23add96311a07a
|
7
|
+
data.tar.gz: '02482fb14a3676605043b178a0f2b66918997145abcb328d3b420160af136a2fe9c0001b4daaacb7ee00c8f1792b8e7e385e47c3330b8ff122e7aa94f552ce5b'
|
data/config/routes.rb
CHANGED
@@ -6,4 +6,12 @@ require "thecore_background_jobs/engine"
|
|
6
6
|
|
7
7
|
module ThecoreBackgroundJobs
|
8
8
|
# Your code goes here...
|
9
|
+
def self.email_setup
|
10
|
+
delivery_options = { domain: Settings.ns(:smtp).domain, address: Settings.ns(:smtp).address, port: Settings.ns(:smtp).port.to_i, enable_starttls_auto: (Settings.ns(:smtp).enable_starttls_auto == "true")}
|
11
|
+
# Other Options
|
12
|
+
delivery_options.merge!({user_name: Settings.ns(:smtp).user_name}) unless Settings.ns(:smtp).user_name.blank?
|
13
|
+
delivery_options.merge!({password: Settings.ns(:smtp).password}) unless Settings.ns(:smtp).password.blank?
|
14
|
+
delivery_options.merge!({authentication: Settings.ns(:smtp).authentication}) unless Settings.ns(:smtp).authentication.blank?
|
15
|
+
delivery_options
|
16
|
+
end
|
9
17
|
end
|