-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
Getting errors using Nokogiri < 1.12 #266
Comments
There seems to be a problem with older versions of ruby.
Thanks! |
It seems it has to do with nokogiri version. Same error on ruby 2.6.8. Maybe a new version needs to be released, with nokogiri dependency > 12 (instead of >= 1.5.9)? 🙏 Thanks. |
Thanks for the comments, everyone. I'll look into it. |
PR at #267, if all is well I should be able to cut a patch release quickly. |
v2.21.2 has been released fixing this. Thanks for your patience. |
@flavorjones won't it still look for v2.21.1 in the case of nokogiri 1.10.10? |
@abhisapate Are you having a problem? I'd be happy to try to help, but I need more information. |
Yeah, in case I don't specify the loofah version in Gemfile and we are using Ruby 2.4.10 and nokogiri is locked to 1.10.10. Before this patch it was fetching loofah v2.21.1 but the dependencies were updated in the patch for v2.21.2, so the bundler will still get the version v2.21.1 which will give me the below error, right?
|
also seeing this on EDIT: ok just saw the min 2.5 ruby requirement, will fix on our end. you can ignore! |
I'm not yanking these versions of the gem, as yanking tends to be very disruptive to the community. Please pin this dependency in your apps if you're on Ruby 2.4 or earlier, or consider upgrading. Apologies for the inconvenience. |
@flavorjones Sure, I'll specify the version in Gemfile. Thanks for the help! |
loofah >= 2.21.0 raise an issue when starting old Ruby versions ``` lib/loofah/html4/document.rb:10:in `<module:HTML4>': uninitialized constant Nokogiri::HTML4 (NameError) ``` Ref: flavorjones/loofah#266
bundle install will install a native gem without any additional action : https://github.com/sparklemotion/nokogiri loofah should be pin version 2.20.2 : flavorjones/loofah#266, getsentry/sentry-ruby#2041
bundle install will install a native gem without any additional action : https://github.com/sparklemotion/nokogiri loofah should be pin version 2.20.2 : flavorjones/loofah#266, getsentry/sentry-ruby#2041
- https://github.com/willnet/health_check/actions/runs/11607894411/job/32322128959#step:4:58 > Using nokogiri 1.10.10 - uninitialized constant Nokogiri::HTML4 - [Getting errors using Nokogiri < 1.12 · Issue #266 · flavorjones/loofah](flavorjones/loofah#266) をざっくり見ると、loofarのバージョンで新しいやつにすると、新しいnokogiri(>=1.12.x)にしかない定数を参照してしまう、という話かな - loofarの2.21.2以降では対応している(nokotiri >=1.12) - loofarのバージョンを低くする必要があるんだけどいくつだろうな - ↑ではUsing loofah 2.21.1 - 2.21.0でLoofar::HTML4が入ったのでそれ未満かな
- https://github.com/willnet/health_check/actions/runs/11607894411/job/32322128959#step:4:58 > Using nokogiri 1.10.10 - uninitialized constant Nokogiri::HTML4 - [Getting errors using Nokogiri < 1.12 · Issue #266 · flavorjones/loofah](flavorjones/loofah#266) をざっくり見ると、loofarのバージョンで新しいやつにすると、新しいnokogiri(>=1.12.x)にしかない定数を参照してしまう、という話かな - loofahの2.21.2以降では対応している(nokotiri >=1.12) - loofahのバージョンを低くする必要があるんだけどいくつだろうな - ↑ではUsing loofah 2.21.1 - 2.21.0でLoofar::HTML4が入ったのでそれ未満かな
Hi, I am getting the following error:
It seems that Nokogiri added the HTML4 name in version 1.12.x, so upgrading to the latest Nokogiri seems to fix this, but might be better if you were requiring that in your gemspec, which SEEMS to be 1.5.9?
Thanks!
The text was updated successfully, but these errors were encountered: