Skip to content

Commit

Permalink
Merge pull request #76 from arcage/v0.7.1
Browse files Browse the repository at this point in the history
V0.7.1: Crystal 1.12.x support
  • Loading branch information
arcage authored Jun 11, 2024
2 parents 2f6ee36 + 99ef0ad commit 60fa798
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: email
version: 0.7.0
version: 0.7.1

authors:
- ʕ·ᴥ·ʔAKJ <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion src/email.cr
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require "uri"
require "./email/*"

module EMail
VERSION = "0.7.0"
VERSION = "0.7.1"
DEFAULT_SMTP_PORT = 25

# :nodoc:
Expand Down
10 changes: 5 additions & 5 deletions src/email/client/config.cr
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,16 @@ class EMail::Client
property log : Log?

# DNS timeout for the socket.
getter dns_timeout : Int32?
getter dns_timeout : Time::Span?

# CONNECT timeout for the socket.
getter connect_timeout : Int32?
getter connect_timeout : Time::Span?

# READ timeout for the socket.
getter read_timeout : Int32?
getter read_timeout : Time::Span?

# WRITE timeout for the socket.
getter write_timeout : Int32?
getter write_timeout : Time::Span?

@tls : TLSMode = TLSMode::NONE
@auth : NamedTuple(id: String, password: String)?
Expand Down Expand Up @@ -239,7 +239,7 @@ class EMail::Client
# {{name.id.upcase}} timeout for the socket.
def {{name.id}}_timeout=(sec : Int32)
raise EMail::Error::ClientConfigError.new("{{name.id}}_timeout must be greater than 0.") unless sec > 0
@{{name.id}}_timeout = sec
@{{name.id}}_timeout = sec.second
end
{% end %}
end
Expand Down

0 comments on commit 60fa798

Please sign in to comment.