-
-
Notifications
You must be signed in to change notification settings - Fork 905
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2145 from sparklemotion/flavorjones-version-info-…
…cppflags feat: adds `nokogiri/cppflags` to VERSION_INFO --- the presence of CPPFLAGS suitable for compilation against nokogiri and the packaged libraries will allow us to deprecate `libxml/libxml2_path` in v1.12.x also: - change VERSION_INFO["nokogiri"] from a string to a hash - add VERSION_INFO["nokogiri"]["version"] to store the version string **What problem is this PR intended to solve?** I'd like to make sure we have a mechanism in place in v1.11.x that will replace `VERSION_INFO["libxml"]["libxml2_path"] so that we can deprecate it. With this value, another gem's extconf is as simple as: ```ruby append_cflags(Nokogiri::VERSION_INFO["nokogiri"]["cppflags"]) have_libxml2 = have_header('libxml/tree.h') have_ng = have_header('nokogiri.h') ``` **Have you included adequate test coverage?** Yes, test coverage added to `test/test_version.rb` and `scripts/test-gem-installation` **Does this change affect the behavior of either the C or the Java implementations?** No.
- Loading branch information
Showing
3 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters