-
Notifications
You must be signed in to change notification settings - Fork 167
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
Update Nokogiri gem to a non-vulnerable version. Fixes #278 #279
Conversation
@bartkamphorst Is there any show stopper to merge this? |
Yes, there is a test failing on Travis. |
@bartkamphorst This is nothing about nokoguiri, it's aboute
and then
Should we update specs or should we pin Thanks in advance. |
@josacar good catch! I was not able to reproduce the error, as my Gemfile.lock pointed to 2.0.7. |
@bartkamphorst Everything green but MRI 2.0 and JRuby |
I hadn't realized that nokogiri 1.7 requires Ruby version >= 2.1.0. This breaks backwards compatibility. @dometto What do you suggest we do? Release a minor release or include this fix only in 5.x? Given the security risk I think having the in 4.X makes some sense. |
Maybe we can relax Nokogiri dependency to < 2.0 in 4.x branch and let everyone choose to stay updated or run with an EOL version and vulnerable. What do you think? |
@josacar good suggestion. If it means breaking the MRI < 2.1.0 test on Travis, I say we just remove that. |
Tried loosing the dependency to < 2.0, but rubygems still requires latest compatible version although it's not compatible with the MRI version. |
@dometto @bartkamphorst I've modified the gemspec to make MRI 2.0 pass on CI, Jruby is still failing due to a dependency is missing |
New JGit requires Java 8, fixed in travis |
Sorry for the wait, I was away for a bit. Merging this now. I'll also bump the gem. |
@josacar just FYI: I overlooked this, but the |
Ok, my bad. We can still do a `nokogiri "~> 1.6" and do the if statement to make CI pass, and let users update to latest nokogiri whilst letting users use an unsafe nokogiri version. What do you think? |
In fact, if you're building with > 2.0 it should happen nothing, as it requires |
I actually think it is ok to make installation on |
👍 |
Fixes #278
Updated Nokogiri to > 1.7.1
Test suite run output: