From: Mike Dalessio Date: 2012-03-09T14:53:54+09:00 Subject: [ANN] nokogiri 1.5.1 Released --bcaec50163fb70a39204bac90494 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 (=E9=8B=B8) is an HTML, XML, SAX, and Reader parser. Among Nokogi= ri's many features is the ability to search documents via XPath or CSS3 selectors. XML is like violence - if it doesn=E2=80=99t solve your problems, you are n= ot 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 Sieger!) * C14n cleanup and Node#canonicalize (thanks, Ivan Pirlik!) #563 --bcaec50163fb70a39204bac90494 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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 oppo= rtunity to welcome the newest member of
Team Nokogiri, Tim Elliot= t! Tim contributed most of the memory leak
fixes and segfault fix= es for this release. A round of applause,
please! <3 <3 <3



Noko= giri (=E9=8B=B8) is an HTML, XML, SAX, and Reader parser. =C2=A0Among Nokog= iri's
many features is the ability to search documents via XPath or CSS3 sel= ectors.

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

Changes:

## 1.5.1 / 2012-03-09

* Features

=C2=A0 * XML::Builder#= comment allows creation of comment nodes.
=C2=A0 * CSS searches n= ow support namespaced attributes. #593
=C2=A0 * Java integration feature is added. Now, XML::Document.wrap
=C2=A0 =C2=A0 and XML::Document#to_java methods are available.
=C2=A0 * RelaxNG validator support in the `nokogiri` cli utility. #59= 1 (thanks, Dan Radez!)

* Bugfixes

=C2=A0 * Fix many m= emory leaks and segfault opportunities. Thanks, Tim Elliott!
=C2= =A0 * extconf searches homebrew paths if homebrew is installed.
= =C2=A0 * Inconsistent behavior of Nokogiri 1.5.0 Java #620
=C2=A0 * Inheriting from Nokogiri::XML::Node on JRuby (1.6.4/5) fails = #560
=C2=A0 * XML::Attr nodes are not allowed to be added as node= children, so an
=C2=A0 =C2=A0 exception is raised. #558
=C2=A0 * No longer defensively "pickle" adjacent text nodes on<= /div>
=C2=A0 =C2=A0 Node#add_next_sibling and Node#add_previous_sibling call= s. #595.
=C2=A0 * Java version inconsistency: it returns nil for = empty attributes #589
=C2=A0 * to_xhtml incorrectly generates <= ;p /></p> when tag is empty #557
=C2=A0 * Document#add_child now accepts a Node, NodeSet, DocumentFragm= ent,
=C2=A0 =C2=A0 or String. #546.
=C2=A0 * Document#c= reate_element now recognizes namespaces containing
=C2=A0 =C2=A0 = non-word characters (like "SOAP-ENV"). This is mostly relevant to=
=C2=A0 =C2=A0 users of Builder, which calls Document#create_element fo= r nearly
=C2=A0 =C2=A0 everything. #531.
=C2=A0 * File = encoding broken in 1.5.0 / jruby / windows #529
=C2=A0 * Java ver= sion does not return namespace defs as attrs for ::HTML #542
=C2=A0 * Bad file descriptor with Nokogiri 1.5.0 #495
=C2=A0= * remove_namespace! doesn't work in pure java version #492
= =C2=A0 * The Nokogiri Java native build throws a null pointer exception
=C2=A0 =C2=A0 when ActiveSupport's .blank? method is called dire= ctly on a parsed
=C2=A0 =C2=A0 object. #489
=C2=A0 * 1.5.0 Not using correct = character encoding #488
=C2=A0 * Raw XML string in XML Builder br= oken on JRuby #486
=C2=A0 * Nokogiri 1.5.0 XML generation broken = on JRuby #484 =C2=A0 =C2=A0
=C2=A0 * Do not allow multiple root nodes. #550
=C2=A0 * Fix= es for custom XPath functions. #605, #606 (thanks, Juan Wajnerman!)
=C2=A0 * Node#to_xml does not override :save_with if it is provided. #50= 5
=C2=A0 * Node#set is a private method [JRuby]. #564 (thanks, Nick Sieger!)<= /div>
=C2=A0 * C14n cleanup and Node#canonicalize (thanks, Ivan Pirlik!= ) #563

--bcaec50163fb70a39204bac90494--