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

Add explicit Racc depenency. #2104

Merged
merged 2 commits into from Oct 27, 2020
Merged

Add explicit Racc depenency. #2104

merged 2 commits into from Oct 27, 2020

Conversation

voxik
Copy link
Contributor

@voxik voxik commented Oct 26, 2020

Nokogiri always have had dependency on Racc, but it was never stated explicitly. This is possible issue for several reasons:

  1. There is no way RubyGems/Bundler could avoid loading wrong version of Racc if other package in application specifies different version of Racc then Nokogiri needs.
  2. If there is released incompatible Racc 2.x, all old versions of Nokogiri will be broken just because it does not specify its dependencies properly.
  3. If Ruby decides to drop Racc from StdLib, all Nokogiri versions will be broken (unnoticeably). Or Ruby will be forced to carry Racc around around although it is possibly obsolete.

Fixes #1988

@codeclimate
Copy link

codeclimate bot commented Oct 26, 2020

Code Climate has analyzed commit e0d2591 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (80% is the threshold).

This pull request will bring the total coverage in the repository to 94.3% (0.0% change).

View more on Code Climate.

@AppVeyorBot
Copy link

Build nokogiri 1.0.751 completed (commit 193908b2c6 by @voxik)

voxik and others added 2 commits October 26, 2020 17:40
Nokogiri always have had dependency on Racc, but it was never stated
explicitly. This is possible issue for several reasons:

1) There is no way RubyGems/Bundler could avoid loading wrong version of
   Racc if other package in application specifies different version of
   Racc then Nokogiri needs.
2) If there is released incompatible Racc 2.x, all old versions of
   Nokogiri will be broken just because it does not specify its
   dependencies properly.
3) If Ruby decides to drop Racc from StdLib, all Nokogiri versions will
   be broken (unnoticeably). Or Ruby will be forced to carry Racc around
   around although it is possibly obsolete.

Fixes sparklemotion#1988
@flavorjones
Copy link
Member

I've rebased and added a CHANGELOG commit. When this goes green, I'll merge and this will be in the next v1.11.0 release candidate.

@flavorjones flavorjones added this to the v1.11.0 milestone Oct 26, 2020
@flavorjones
Copy link
Member

And thank you for the PR!

@AppVeyorBot
Copy link

@flavorjones flavorjones merged commit 52ebbd7 into sparklemotion:master Oct 27, 2020
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.

Explicit dependency on Racc
3 participants