Nokogiri 1.6.0 Released

nokogiri version 1.6.0, “GORUCO 2013 edition,” has been released!

= Summary

This version of Nokogiri ships and compiles libxml2 and libxslt with
the gem. This should fix most installation issues.

You can override this behavior and use system libraries. See details

Note that the gem file will be larger, since libxml2 and libxslt are
packaged in the “fat source” gem.

Note that gem installation times will be longer, since libxml2 and
libxslt are built at gem install time.

Note that Windows (mswin32, mingw32) gems for 1.6.0 are not yet
available for this version.

Note also that Ruby 1.8.7 is no longer supported.

= General

Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser. Among Nokogiri’s
many features is the ability to search documents via XPath or CSS3

XML is like violence - if it doesn’t solve your problems, you are not
enough of it.

= Changes

  • Notes

    • mini_portile is now a runtime dependency
    • Ruby 1.9.2 and higher now required
  • Features

    • (MRI) Source code for libxml 2.8.0 and libxslt 1.2.26 is packaged
      with the gem. These libraries are compiled at gem install time
      unless the environment variable NOKOGIRI_USE_SYSTEM_LIBRARIES is
      set. VERSION_INFO (also nokogiri -v) exposes whether libxml was
      compiled from packaged source, or the system library was used.
  • Deprecations

    • Support for Ruby 1.8.7 and prior has been dropped

= Details

Running nokogiri -v will now indicate whether the libxml2 version
used is a system library or the packaged version, and where the
packaged version is installed.

Sample output:

# Nokogiri (1.6.0)
    warnings: []
    nokogiri: 1.6.0
      version: 1.9.3
      platform: x86_64-linux
      description: ruby 1.9.3p392 (2013-02-22 revision 39386) 
      engine: ruby
      binding: extension
      source: packaged
      libxml2_path: /home/miked/.rvm/gems/ruby-1.9.3-p392@nokogiri
      libxslt_path: /home/miked/.rvm/gems/ruby-1.9.3-p392@nokogiri
      compiled: 2.8.0
      loaded: 2.8.0

To revert to using system libraries, set an environment variable named