mattmatt-cijoe 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cijoe/email.rb +4 -4
- data/lib/cijoe/version.rb +1 -1
- metadata +1 -1
data/lib/cijoe/email.rb
CHANGED
@@ -28,13 +28,13 @@ class CIJoe
|
|
28
28
|
:user => Config.email.user.to_s,
|
29
29
|
:pass => Config.email.pass.to_s,
|
30
30
|
:host => Config.email.host.to_s,
|
31
|
-
:auth_type
|
32
|
-
:enable_tls => Config.email.enabletls.
|
31
|
+
:auth_type => Config.email.authtype.to_s,
|
32
|
+
:enable_tls => Config.email.enabletls.to_s
|
33
33
|
}
|
34
34
|
end
|
35
35
|
|
36
36
|
def self.valid_config?
|
37
|
-
%w( host user pass to ).all? do |key|
|
37
|
+
%w( host user pass to auth_type ).all? do |key|
|
38
38
|
!config[key.intern].empty?
|
39
39
|
end
|
40
40
|
end
|
@@ -55,7 +55,7 @@ class CIJoe
|
|
55
55
|
config.auth_pass = Email.config[:pass]
|
56
56
|
config.auth_type = Email.config[:auth_type].to_sym
|
57
57
|
config.host = Email.config[:host]
|
58
|
-
config.enable_tls = Email.config[:enable_tls] == 1 ? true : false
|
58
|
+
config.enable_tls = Email.config[:enable_tls] == "1" ? true : false
|
59
59
|
config
|
60
60
|
end
|
61
61
|
|
data/lib/cijoe/version.rb
CHANGED