uri-smtp 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/uri/smtp/version.rb +1 -1
- data/lib/uri/smtp.rb +12 -2
- 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: 70ec42fc77da96a4bf7e8766406f110edbbd0de008148a7b62ad64b90137515e
|
4
|
+
data.tar.gz: def1342386b5d4ef7599f09750fd2dea8a709f06c452459c4f174374de4f48de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1eeb8f2e3f8debbc08271ae35c9a55cadbd2b2d7380a86d174cfa91461012b4986e1e9489c6fde38eedf018d1e5e8601807e6ba23fb6ed1aab3d0a755d82e628
|
7
|
+
data.tar.gz: d450be99efefaa24c20c2c6315a4d7b0a406d9ba043b558e6742a9bbe510670e0b6d076c5a1584ace1270ce650d73b9fd7549d93dd0853365b938b97713affe4
|
data/CHANGELOG.md
CHANGED
data/lib/uri/smtp/version.rb
CHANGED
data/lib/uri/smtp.rb
CHANGED
@@ -81,13 +81,23 @@ module URI
|
|
81
81
|
address: host,
|
82
82
|
authentication: auth,
|
83
83
|
domain:,
|
84
|
-
enable_starttls: starttls,
|
85
|
-
|
84
|
+
enable_starttls: starttls == :always,
|
85
|
+
enable_starttls_auto: starttls == :auto,
|
86
|
+
port:,
|
87
|
+
tls:
|
86
88
|
}.tap do
|
87
89
|
unless _1[:authentication].nil?
|
88
90
|
_1[:user_name] = decoded_user
|
89
91
|
_1[:password] = decoded_password
|
90
92
|
end
|
93
|
+
# mail 2.8.1 logic is faulty in that it shortcuts
|
94
|
+
# (start)tls-settings when they are false.
|
95
|
+
# So we delete these flags.
|
96
|
+
_1.delete(:tls) unless _1[:tls]
|
97
|
+
_1.delete(:enable_starttls) unless _1[:enable_starttls]
|
98
|
+
_1.delete(:enable_starttls) if _1[:tls]
|
99
|
+
_1.delete(:enable_starttls_auto) unless _1[:enable_starttls_auto]
|
100
|
+
_1.delete(:enable_starttls_auto) if _1[:tls]
|
91
101
|
end.delete_if { |_k, v| v.nil? }
|
92
102
|
else
|
93
103
|
{
|