File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : email
2- version : 0.7.0
2+ version : 0.7.1
33
44authors :
55 - ʕ·ᴥ·ʔAKJ <arcage@denchu.org>
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ require "uri"
77require " ./email/*"
88
99module EMail
10- VERSION = " 0.7.0 "
10+ VERSION = " 0.7.1 "
1111 DEFAULT_SMTP_PORT = 25
1212
1313 # :nodoc:
Original file line number Diff line number Diff line change @@ -124,16 +124,16 @@ class EMail::Client
124124 property log : Log ?
125125
126126 # DNS timeout for the socket.
127- getter dns_timeout : Int32 ?
127+ getter dns_timeout : Time :: Span ?
128128
129129 # CONNECT timeout for the socket.
130- getter connect_timeout : Int32 ?
130+ getter connect_timeout : Time :: Span ?
131131
132132 # READ timeout for the socket.
133- getter read_timeout : Int32 ?
133+ getter read_timeout : Time :: Span ?
134134
135135 # WRITE timeout for the socket.
136- getter write_timeout : Int32 ?
136+ getter write_timeout : Time :: Span ?
137137
138138 @tls : TLSMode = TLSMode ::NONE
139139 @auth : NamedTuple (id: String , password: String )?
@@ -239,7 +239,7 @@ class EMail::Client
239239 # {{name.id.upcase}} timeout for the socket.
240240 def {{name.id}}_timeout= (sec : Int32 )
241241 raise EMail ::Error ::ClientConfigError .new(" {{name.id}}_timeout must be greater than 0." ) unless sec > 0
242- @{{name.id}}_timeout = sec
242+ @{{name.id}}_timeout = sec.second
243243 end
244244 {% end % }
245245 end
You can’t perform that action at this time.
0 commit comments