Skip to content

Conversation

@jclusso
Copy link

@jclusso jclusso commented Nov 23, 2025

There are various email validators in other gems like https://github.com/afair/email_address and https://github.com/emailable/emailable-ruby. Since this gem pulls in https://github.com/K-and-R/email_validator, it can cause issues if you use the other gems.

There is really no reason for this dependency and conflict when a simple format validation should suffice.

I ran into this because we are adding https://github.com/omniauth/omniauth_openid_connect to implement OIDC support. I was getting these weird test failures and came to realize the problem was that omniauth_openid_connect pulls in this gem, which pulls in the email_validator gem. Since we use emailable-ruby, it was conflicting since they both use the email key to define their validator.

Also, if you're open to more dependency reduction, I debated making another PR to remove https://github.com/perfectline/validates_url. I find that less gem dependencies is a win for all usually. Less unintended issues and less to worry about updating.

There are various email validators iin other gems like https://github.com/afair/email_address and https://github.com/emailable/emailable-ruby. Since this gem pulls in EmailValidator, it can cause issues if you use the other gems.

There is really no reason for this dependency and conflict when a simple format validation should suffice.
@jclusso
Copy link
Author

jclusso commented Jan 6, 2026

@nov thoughts on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant