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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 534a3148493353560954ff1399ed0bcc5972fb84a0a72f95389827e9b2e59c66
4
- data.tar.gz: 0701b94ea526034678a4cd2cdd72996ca3e21e8e2a91d1ce4ea120a4ccc09c7b
3
+ metadata.gz: 70ec42fc77da96a4bf7e8766406f110edbbd0de008148a7b62ad64b90137515e
4
+ data.tar.gz: def1342386b5d4ef7599f09750fd2dea8a709f06c452459c4f174374de4f48de
5
5
  SHA512:
6
- metadata.gz: 59430a383a5a47c243dfe487d51f5749c0a58ffd1ba836c6fe1fb53c3b51927fed39329ba83f5a7853456a0f48abe13e7402cf33d182c6ed7d9881c53606366b
7
- data.tar.gz: ab4b650b59960e5d6b1859ec78ea266fa1b50b4cc3d01c592662be8f3562bfc40a7ca70e4296a7b5a4fba9e1df5f6797b79851236223c9fcfec23d5f409d2345
6
+ metadata.gz: 1eeb8f2e3f8debbc08271ae35c9a55cadbd2b2d7380a86d174cfa91461012b4986e1e9489c6fde38eedf018d1e5e8601807e6ba23fb6ed1aab3d0a755d82e628
7
+ data.tar.gz: d450be99efefaa24c20c2c6315a4d7b0a406d9ba043b558e6742a9bbe510670e0b6d076c5a1584ace1270ce650d73b9fd7549d93dd0853365b938b97713affe4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.4.0] - 2025-07-23
4
+
5
+ - FIX: correct settings for action_mailer using mail v2.8.1
6
+
3
7
  ## [0.3.0] - 2025-07-23
4
8
 
5
9
  - FIX: Kernel.URI should accept URI's
@@ -4,6 +4,6 @@ require "uri"
4
4
 
5
5
  module URI
6
6
  class SMTP < URI::Generic
7
- VERSION = "0.3.0"
7
+ VERSION = "0.4.0"
8
8
  end
9
9
  end
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
- port:
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
  {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uri-smtp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gert Goet