net-smtp 0.5.1 → 0.5.2
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/lib/net/smtp.rb +5 -8
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a553539705577a75ced47c5c1545063cd3e1c970387efc971c5a7a8fd6d7ae77
|
|
4
|
+
data.tar.gz: 0aa64c220f2f039ba06783c633be8fc48e32fef6403027174447d5ff727b3c9e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 28e0e346f8089af704f0c024b6cba7645b109fcf7ba334b01d25330ec75f23f5cef3cbc9cae3ac277760dfe5838fcc54907fb9685754089fa6adc1a821c4b818
|
|
7
|
+
data.tar.gz: 50e319aeb644635517accb8b787a7d2a1839e00c1cfec643b757b22545b03b10475cf2ea927d9c96040950dfd9a6b752eb7b4e08931004abad77beabae15928c
|
data/lib/net/smtp.rb
CHANGED
|
@@ -33,16 +33,12 @@ module Net
|
|
|
33
33
|
def initialize(response, message: nil)
|
|
34
34
|
if response.is_a?(::Net::SMTP::Response)
|
|
35
35
|
@response = response
|
|
36
|
-
|
|
36
|
+
super(message || response.message)
|
|
37
37
|
else
|
|
38
38
|
@response = nil
|
|
39
|
-
|
|
39
|
+
super(message || response)
|
|
40
40
|
end
|
|
41
41
|
end
|
|
42
|
-
|
|
43
|
-
def message
|
|
44
|
-
@message || response.message
|
|
45
|
-
end
|
|
46
42
|
end
|
|
47
43
|
|
|
48
44
|
# Represents an SMTP authentication error.
|
|
@@ -192,7 +188,7 @@ module Net
|
|
|
192
188
|
# compatibility, but are deprecated and should be avoided.
|
|
193
189
|
#
|
|
194
190
|
class SMTP < Protocol
|
|
195
|
-
VERSION = "0.5.
|
|
191
|
+
VERSION = "0.5.2"
|
|
196
192
|
|
|
197
193
|
# The default SMTP port number, 25.
|
|
198
194
|
def SMTP.default_port
|
|
@@ -626,7 +622,7 @@ module Net
|
|
|
626
622
|
secret ||= password || args[2]
|
|
627
623
|
authtype ||= args[3]
|
|
628
624
|
if defined?(OpenSSL::VERSION)
|
|
629
|
-
ssl_context_params = @ssl_context_params || {}
|
|
625
|
+
ssl_context_params = @ssl_context_params&.dup || {}
|
|
630
626
|
unless ssl_context_params.has_key?(:verify_mode)
|
|
631
627
|
ssl_context_params[:verify_mode] = @tls_verify ? OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE
|
|
632
628
|
end
|
|
@@ -668,6 +664,7 @@ module Net
|
|
|
668
664
|
if user || secret || authtype
|
|
669
665
|
check_auth_args authtype, user, secret
|
|
670
666
|
end
|
|
667
|
+
@error_occurred = false
|
|
671
668
|
s = Timeout.timeout(@open_timeout, Net::OpenTimeout) do
|
|
672
669
|
tcp_socket(@address, @port)
|
|
673
670
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: net-smtp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yukihiro Matsumoto
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: net-protocol
|
|
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
62
|
version: '0'
|
|
63
63
|
requirements: []
|
|
64
|
-
rubygems_version: 3.
|
|
64
|
+
rubygems_version: 3.6.9
|
|
65
65
|
specification_version: 4
|
|
66
66
|
summary: Simple Mail Transfer Protocol client library for Ruby.
|
|
67
67
|
test_files: []
|