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
Fix use of designated initializers. #75
Conversation
Make them compatible with earlier versions of GCC.
I can confirm this fixes the issue for me:
lsb_release -rRelease: 7.9 using devtoolset-7 |
Hey @lemsx1 Can you please share with us what exactly should we do? |
For this you can simply go to |
@lemsx1 Thanks! will try! |
I have tested the patch and wanted to bring to your attention a potential compatibility concern with Ruby versions lower than 2.7.0, despite the gemspec specifying a requirement of ">= 2.2". The error encountered during compilation in Ruby version 2.3.1 is as follows:
The "dcompact" member, which I believe was introduced in Ruby version 2.7.0, is the source of this issue. This patch appears to not fully resolve the issue introduced by #72 |
Hmm, and the irony here is that despite the extension being updated to support the C API of Ruby 2.7+, the main functionality this library provides is in Ruby 2.6+ as String#unicode_normalize. 🥺 |
I've just released a new version of the domain_name gem that requires Ruby >=2.7 and no longer depends on unf and unf_ext. I think that will remove one of the biggest reasons people would ever need to get unf_ext installed. |
@ABHIJITH-EA Thanks for the heads-up. I just pushed a commit that should make this build with older Rubies as well. PTAL. |
Did the 0.2.0 betas on |
@igorpeshansky Thanks for the fix! I tested it.I can confirm it's all good now.
|
Thanks, @knu. Is this ready to merge now, or would you need me to squash the commits? |
No problem. I'll squash merge this. |
Make them compatible with earlier versions of GCC.
Fixes #74.