Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility Issue with Ruby 3.3.3 #23

Open
StephenVNelson opened this issue Jun 27, 2024 · 1 comment
Open

Compatibility Issue with Ruby 3.3.3 #23

StephenVNelson opened this issue Jun 27, 2024 · 1 comment

Comments

@StephenVNelson
Copy link

StephenVNelson commented Jun 27, 2024

The issue stems from a dependency on the rfc822 gem, which is not compatible with the latest Ruby version.

The gem is using an outdated method for initializing regular expressions, which causes the following error:


/Users/stephenvnelson/.gem/ruby/3.3.3/gems/rfc822-0.1.5/lib/rfc822.rb:16:in `initialize': wrong number of arguments (given 3, expected 1..2) (ArgumentError)
  EMAIL_REGEXP_WHOLE = Regexp.new("\\A#{ADDR_SPEC}\\z", nil, 'n')

This issue occurs because the current initialization of the regular expressions in rfc822 is not compatible with the API changes in Ruby 3.3.3.

To handle this I temporarily switched to using a forked version of the rfc822 gem at andresprogra/rfc822 (FYI @andresprogra)


gem 'rfc822', github: 'andresprogra/rfc822'

I also submitted an issue with the rfc822 but it doesn't look like it gets very many updates, so it may be beneficial to update the dependency to accommodate this workaround or to suggest the use of the forked gem in the documentation.

@DavertMik
Copy link
Contributor

Thanks, that helped me.
Is it possible to update avatarly to remove that dependency?

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

No branches or pull requests

2 participants