Closed ghost closed 7 years ago
:+1:
Nokogiri 1.7.0 includes the removal of a very annoying deprecation warning: https://github.com/sparklemotion/nokogiri/commit/5b360b8bab3149c6ca706e6ac8321496ace2e6cb
For example, here's the output of my specs right now:
Firstly, switching dependency version in the gemspec does not work. The gemspec in the repo will not be installed to the users' computers as it is. The gemspec is used to generate the metadata in the gem package. So the nokogiri version statement will actually be evaluated when the gem owner is compiling a gem package. Not when the users are installing or loading the gem.
We can never control the users' runtime dependency gem versions. The only thing we can do here is to loosen the dependency version to accept all supported versions, and then specify "per ruby version" dependencies in Gemfile for the CI to pass. That is why I showed you an example of switching the gem version in Gemfile in the previous PR.
Secondly, I'm not sure if the "Fix test" approach is right. If only jruby + nokogiri 1.7 performs differently from other platforms, that can be considered a nokogiri or jruby bug. In fact we're seeing exactly the same problem also in rails, https://travis-ci.org/rails/rails/jobs/188281629 and we're still not sure if it's a bug or nokogiri's intentional specification change.
Thirdly, please squash your four "Test against *" commits into one.
Thank you for appreciate comment 😆 I have do not enough time to do on weekdays, I will try on a holiday.
Secondly, I'm not sure if the "Fix test" approach is right. If only jruby + nokogiri 1.7 performs differently from other platforms, that can be considered a nokogiri or jruby bug. In fact we're seeing exactly the same problem also in rails, https://travis-ci.org/rails/rails/jobs/188281629 and we're still not sure if it's a bug or nokogiri's intentional specification change.
Thank you for information. I understand my appoach is not good. I will drop "Fix test" commit.
@takiy33 Thanks!
I loosen nokogiri dependency because i want to use nokogiri 1.7.0 or above. Also, I add test target Rubies.
Reference
This PR is related #72.