[ANN] nokogiri 1.6.2.rc1 Released

479 views
Skip to first unread message

Mike Dalessio

unread,
Apr 6, 2014, 4:42:13 PM4/6/14
to nokogiri-talk, nokogi...@googlegroups.com
nokogiri version 1.6.2.rc1 has been released!


Special thanks to Akinori Musha for taking on the bulk of maintenance for the last few months and cleaning up the packaging/compilation of libxml2/libxslt. Thank you, knu! This release would not have been possible with you.

Apologies for the long delay since the release of 1.6.1.


Notable changes (full changelog below):

* statically link libxml2/libxslt/etc. by default (command line options to change behavior)
* Windows 64-bit support.
* cleanup of temp files means, e.g., Heroku slugs should be smaller


Changes:

### 1.6.2 / unreleased

* Features

  * (MRI) Alias CP932 to Windows-31J if iconv does not support Windows-31J.
  * (MRI) Nokogiri now links packaged libraries statically.  To
    disable static linking, pass --disable-static to extconf.rb. #923
  * (MRI) Nokogiri automatically deletes directories of packaged
    libraries only used during build.  To keep them for debugging
    purposes, pass --disable-clean to extconf.rb. #952
  * (MRI) Nokogiri now builds libxml2 properly with iconv support on
    platforms where libiconv is installed outside the system default
    directories, such as FreeBSD.
  * Add support for an-b in nth selectors. #886 (Thanks, Magnus Bergmark!)
  * Add support for bare and multiple :not() functions in selectors. #887
    (Thanks, Magnus Bergmark!)
  * (MRI) Add an extconf.rb option --use-system-libraries, alternative to
    setting the environment variable NOKOGIRI_USE_SYSTEM_LIBRARIES.
  * (MRI) Update packaged libraries: libxslt to 1.1.28, zlib to 1.2.8,
    and libiconv to 1.14, respectively.
  * Nokogiri::HTML::Document#title= and #meta_encoding= now always add
    an element if not present, trying hard to find the best place to
    put it.
  * Nokogiri::XML::DTD#html_dtd? and #html5_dtd? are added.
  * Nokogiri::XML::Node#prepend_child is added. #664
  * Nokogiri::XML::SAX::ParserContext#recovery is added. #453
  * Fix documentation for XML::Node#namespace. #803 #802 (Thanks, Hoylen Sue)
  * Allow Nokogiri::XML::Node#parse from unparented non-element nodes. #407

* Bugfixes

  * Ensure :only-child pseudo class works within :not pseudo class. #858
    (Thanks, Yamagishi Kazutoshi!)
  * Don't call pkg_config when using bundled libraries in extconf.rb
    #931 (Thanks, Shota Fukumori!)
  * Nokogiri.parse() does not mistake a non-HTML document like a RSS
    document as HTML document. #932 (Thanks, Yamagishi Kazutoshi!)
  * (JRuby) XSD validation crashes in Java version. #373
  * (JRuby) Document already has a root node error while using Builder. #646
  * (JRuby) c14n tests are all passing on JRuby. #226
  * Parsing empty documents raise SyntaxError in strict mode. #1005
  * (JRuby) Make xpath faster by caching the xpath context. #741
  * (JRuby) XML SAX push parser leaks memory on JRuby, but not on MRI. #998

Gerald Brown

unread,
Apr 7, 2014, 8:24:54 AM4/7/14
to nokogi...@googlegroups.com, nokogi...@googlegroups.com
How do I install it on Ubuntu 13.10?  I have tried the following:

"sudo gem install nokogiri-1.6.2
ERROR:  Could not find a valid gem 'nokogiri-1.6.2' (>= 0) in any repository
ERROR:  Possible alternatives: nokogiri, nokogiri-diff, nokogiri-plist"

"sudo gem install nokogiri1.6.2
ERROR:  Could not find a valid gem 'nokogiri1.6.2' (>= 0) in any repository
ERROR:  Possible alternatives: nokogiri, nokogiri-diff, nokogiri-plist"

If I leave off the 1.6.2 it tries to install 1.6.1, which is what is in the RubyGems site and gives me the following error:

"libxslt is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies."

Thanks,

Gerald

Ben Langfeld

unread,
Apr 7, 2014, 8:29:12 AM4/7/14
to nokogi...@googlegroups.com, nokogi...@googlegroups.com
gem install nokogiri --version 1.6.2.rc1


--
You received this message because you are subscribed to the Google Groups "nokogiri-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nokogiri-tal...@googlegroups.com.
To post to this group, send email to nokogi...@googlegroups.com.
Visit this group at http://groups.google.com/group/nokogiri-talk.
For more options, visit https://groups.google.com/d/optout.

Mike Dalessio

unread,
Apr 7, 2014, 8:30:57 AM4/7/14
to nokogiri-talk
On Mon, Apr 7, 2014 at 8:24 AM, Gerald Brown <gerbr...@gmail.com> wrote:
How do I install it on Ubuntu 13.10?  I have tried the following:

It's a release candidate, so either of these should work:

gem install nokogiri -v 1.6.2.rc1
gem install nokogiri --prerelease

Please run `gem help install` for more information about how to work with gems.
 

Gerald Brown

unread,
Apr 7, 2014, 8:35:12 AM4/7/14
to nokogi...@googlegroups.com, nokogi...@googlegroups.com, b...@langfeld.me
I'm still getting the following error: "libxslt is missing."

Mike Dalessio

unread,
Apr 9, 2014, 7:17:58 AM4/9/14
to nokogiri-talk, nokogi...@googlegroups.com, b...@langfeld.me

Can you please provide the command you're running and full console output as well as the content of mkmf.log?

I'm running 13.10 and have no problem, so something else is going on with your system. If you have any additional context that would be useful please provide it.

Gerald Brown

unread,
Apr 12, 2014, 9:06:00 AM4/12/14
to nokogi...@googlegroups.com, nokogi...@googlegroups.com, b...@langfeld.me
Some good news and some bad news:

Good news:  I installed Linux Mint as a dual boot on my system and I am now able to install nokogiri 1.6.1 but not the prerelease.
Bad news:  It looks like I have major problems with my Ubuntu system.  Hopefully this will be corrected when the new version comes out this month.

Thanks for all the comments to my questions!!!
Reply all
Reply to author
Forward
0 new messages