Skip to content

Commit 60fa798

Browse files
authored
Merge pull request #76 from arcage/v0.7.1
V0.7.1: Crystal 1.12.x support
2 parents 2f6ee36 + 99ef0ad commit 60fa798

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

shard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: email
2-
version: 0.7.0
2+
version: 0.7.1
33

44
authors:
55
- ʕ·ᴥ·ʔAKJ <arcage@denchu.org>

src/email.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require "uri"
77
require "./email/*"
88

99
module EMail
10-
VERSION = "0.7.0"
10+
VERSION = "0.7.1"
1111
DEFAULT_SMTP_PORT = 25
1212

1313
# :nodoc:

src/email/client/config.cr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)