Skip to content

Commit

Permalink
Merge pull request #38 from arcage/v0.3.1
Browse files Browse the repository at this point in the history
support crystal 0.27.0
  • Loading branch information
arcage committed Nov 5, 2018
2 parents 7e9fd46 + f6ab78e commit a15c408
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: email
version: 0.3.0
version: 0.3.1

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

crystal: 0.26.1
crystal: 0.27.0

license: MIT
1 change: 1 addition & 0 deletions src/email.cr
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ require "uri"
require "./email/*"

module EMail
VERSION = "0.3.1"
DEFAULT_SMTP_PORT = 25

def self.send(host : String, port : Int32 = DEFAULT_SMTP_PORT, **options)
Expand Down
2 changes: 1 addition & 1 deletion src/email/client.cr
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class EMail::Client
timestamp = Time.now
mail.date timestamp
mail.message_id String.build { |io|
io << '<' << timestamp.epoch_ms << '.' << Process.pid
io << '<' << timestamp.to_unix_ms << '.' << Process.pid
io << '.' << @name << '@' << @helo_domain << '>'
}
mail.validate!
Expand Down
2 changes: 1 addition & 1 deletion src/email/content.cr
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ abstract class EMail::Content
while boundary_string.empty? || @@boundaries.includes?(boundary_string)
boundary_string = String.build do |str|
str << "Multipart_Boundary_"
str << Time.now.epoch_ms
str << Time.now.to_unix_ms
str << '_'
str << rand(UInt32::MAX)
str << "--"
Expand Down
3 changes: 0 additions & 3 deletions src/email/version.cr

This file was deleted.

0 comments on commit a15c408

Please sign in to comment.