updating ruby version to 3.3.3 to avoid the nokogiri error.#109
updating ruby version to 3.3.3 to avoid the nokogiri error.#109
Conversation
|
We already use this on ruby version 3.3.3... on a bunch of apps |
|
1.16 of nokogiri introduces native support for ruby 3.3.3 but ends support for ruby 2.7, so this change is bigger than just updating a gem. |
|
So, as far as I can tell, on a brand new install (Thanks @elsiddh for pointing that part out) bundler will try to install the newest version of nokogiri it not locked down in any other way. If using the right/wrong combination of newer ruby and bundler, then bundler will draw a line with regards to the required_ruby version tag in the gemspec files of the gems it is trying to install. Version 1.16 of nokogiri requires ruby >3.0.0. Version 1.15 requires ruby 2.7.0 but then the newer bundler doesn't like the upper bound and tries to use say that the latest is ruby 3.3.dev. Due to this change, we would need to update the gem spec to require ruby 3.0.0 as well I guess and this update as a dependency. |
brlanier
left a comment
There was a problem hiding this comment.
You will also need to update the gemspec file to change the required ruby version
s.required_ruby_version = ">= 3.0"
I think that should work.
brlanier
left a comment
There was a problem hiding this comment.
I think this looks good to me. I asked to have the branch you are merging into changed to main instead of master so we can drop that. So just two things to clean up, but the rest of the tests ran fine. We need to wait to see what Javier says as well.
|
@javierg can you review this and see if we are missing anything. The end result would be a release targeting supporting ruby > 3 only on the main branch. |
brlanier
left a comment
There was a problem hiding this comment.
I believe my changes were included. This was done so long ago I don't remmeber the issues we were having.
we are having this weird error on nokogiri:
nokogiri-1.15.4-aarch64-linux requires ruby version < 3.3.dev, >= 2.7, which is incompatible with the current version, ruby 3.3.3p89
I did an small update to make it working on rubies 3.3.+