Nokogiri 1.5.1 Released

Nokogiri version 1.5.1 has been released!

This release addresses some memory leaks and possible segfaults, as
well as general bugfixes and a few small backwards-compatible
features.

I’d also like to take this opportunity to welcome the newest member of
Team Nokogiri, Tim Elliott! Tim contributed most of the memory leak
fixes and segfault fixes for this release. A round of applause,
please! <3 <3 <3

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

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

Changes:

1.5.1 / 2012-03-09

  • Features

    • XML::Builder#comment allows creation of comment nodes.
    • CSS searches now support namespaced attributes. #593
    • Java integration feature is added. Now, XML::Document.wrap
      and XML::Document#to_java methods are available.
    • RelaxNG validator support in the nokogiri cli utility. #591
      (thanks,
      Dan Radez!)
  • Bugfixes

    • Fix many memory leaks and segfault opportunities. Thanks, Tim
      Elliott!
    • extconf searches homebrew paths if homebrew is installed.
    • Inconsistent behavior of Nokogiri 1.5.0 Java #620
    • Inheriting from Nokogiri::XML::Node on JRuby (1.6.4/5) fails #560
    • XML::Attr nodes are not allowed to be added as node children, so an
      exception is raised. #558
    • No longer defensively “pickle” adjacent text nodes on
      Node#add_next_sibling and Node#add_previous_sibling calls. #595.
    • Java version inconsistency: it returns nil for empty attributes #589
    • to_xhtml incorrectly generates

      when tag is empty #557
    • Document#add_child now accepts a Node, NodeSet, DocumentFragment,
      or String. #546.
    • Document#create_element now recognizes namespaces containing
      non-word characters (like “SOAP-ENV”). This is mostly relevant to
      users of Builder, which calls Document#create_element for nearly
      everything. #531.
    • File encoding broken in 1.5.0 / jruby / windows #529
    • Java version does not return namespace defs as attrs for ::HTML #542
    • Bad file descriptor with Nokogiri 1.5.0 #495
    • remove_namespace! doesn’t work in pure java version #492
    • The Nokogiri Java native build throws a null pointer exception
      when ActiveSupport’s .blank? method is called directly on a parsed
      object. #489
    • 1.5.0 Not using correct character encoding #488
    • Raw XML string in XML Builder broken on JRuby #486
    • Nokogiri 1.5.0 XML generation broken on JRuby #484
    • Do not allow multiple root nodes. #550
    • Fixes for custom XPath functions. #605, #606 (thanks, Juan
      Wajnerman!)
    • Node#to_xml does not override :save_with if it is provided. #505
    • Node#set is a private method [JRuby]. #564 (thanks, Nick S.!)
    • C14n cleanup and Node#canonicalize (thanks, Ivan Pirlik!) #563

On Fri, Mar 9, 2012 at 6:53 AM, Mike D. [email protected]
wrote:

Nokogiri version 1.5.1 has been released!

Thank you!

I’d also like to take this opportunity to welcome the newest member of
Team Nokogiri, Tim Elliott! Tim contributed most of the memory leak
fixes and segfault fixes for this release. A round of applause,
please! <3 <3 <3

Tim, thank you for your efforts to support the community. This is
much appreciated!

XML is like violence - if it doesnt solve your problems, you are not using
enough of it.

'lltryit

Kind regards

robert