Skip to content
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

Bump nokogiri to 1.11.0 #183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tancnle
Copy link

@tancnle tancnle commented Jan 8, 2021

@ghost
Copy link

ghost commented Jan 8, 2021

CLA assistant check
All CLA requirements met.

@coveralls
Copy link

coveralls commented Jan 8, 2021

Coverage Status

Coverage decreased (-0.004%) to 87.027% when pulling 595fbab on tancnle:bump-nokogiri-1-11-0 into 05ea58a on Azure:master.

@tancnle tancnle force-pushed the bump-nokogiri-1-11-0 branch from 0694a18 to 594236d Compare January 8, 2021 01:11
@tancnle tancnle marked this pull request as ready for review January 9, 2021 12:07
Comment on lines 30 to 34
if RUBY_VERSION.start_with?("2.3") then
gem "nokogiri", "~> 1.10.4", :require => false
gem "nokogiri", "~> 1.10.4", :require => false
else
gem "nokogiri", "~> 1.11.0.rc2", :require => false
gem "nokogiri", "~> 1.11.0", :require => false
end
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tancnle nokogiri dropped Ruby 2.4 support at 1.1.0.rc4. So you need to enforce 1.11.0 on 2.4 somehow, or you need to put a branch for 2.4 between if and else:

elif RUBY_VERSION.start_with("2.4") then
  gem "nokogiri",            "~> 1.11.0.rc2", :require => false

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@onlined Excellent point 👍. That was an oversight on my part. Adding an additional branch to handle 2.4 is definitely doable. However, given the Ruby 2.4 support drop, I don't think this PR is adding much value (i.e. users can still lock the preferred nokogiri version given their Ruby version constraint).

If there is any plan to drop support for 2.4 altogether as it is EOL'ed and soon 2.5 (https://www.ruby-lang.org/en/downloads/), we can remove these conditionals and cut a major version bump of this gem. IMHO, that would be a more preferable approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants