afair / email_address

The EmailAddress Gem to work with and validate email addresses.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

net-smtp gem required with Ruby >= 3.1

cseelus opened this issue · comments

Since upgrading to Ruby 3.1, I had to manually add gem 'net-smtp' to the Gemfiles of our projects which use the email_address gem.

In any case: Thanks for this valuable little library :-)

Thanks for bringing this up. I have released v0.2.2 to address ruby 3.1 support

Specifically, net/smtp was only used for an experimental feature that no one should actually use: connecting to the mail server to validate.

Instead of adding this dependency, I removed the require. Anyone needed to do the SMTP validation (and really they shouldn't) must now add the "net-smtp" gem and require it manually.