All Versions
110
Latest Version
Avg Release Cycle
28 days
Latest Release
605 days ago

Changelog History
Page 7

  • v1.6.6.2 Changes

    January 23, 2015

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed installation issue affecting compiler arguments. (#1230)
  • v1.6.6.1 Changes

    January 22, 2015

    ๐Ÿš€ Note that 1.6.6.0 was not released.

    โž• Added

    • Unified Node and NodeSet implementations of #search, #xpath and #css.
    • โž• Added Node#lang and Node#lang=.
    • ๐Ÿ“œ bin/nokogiri passes the URI to parse() if an HTTP URL is given.
    • bin/nokogiri now loads ~/.nokogirirc so user can define helper methods, etc.
    • ๐Ÿ”ง bin/nokogiri can be configured to use Pry instead of IRB by adding a couple of lines to ~/.nokogirirc. (#1198)
    • ๐Ÿ‘ bin/nokogiri can better handle urls from STDIN (aiding use of xargs). (#1065)
    • ๐Ÿ’Ž JRuby 9K support.

    ๐Ÿ›  Fixed

    • DocumentFragment#search now matches against root nodes. (#1205)
    • ๐Ÿ“œ (MRI) More fixes related to handling libxml2 parse errors during DocumentFragment#dup. (#1196)
    • ๐Ÿ— (JRuby) Builder now handles namespace hrefs properly when there is a default ns. (#1039)
    • ๐Ÿ’Ž (JRuby) Clear the XPath cache on attr removal. (#1109)
    • ๐Ÿ’Ž XML::Comment.new argument types are now consistent and safe (and documented) across MRI and JRuby. (#1224)
    • ๐Ÿ’Ž (MRI) Restoring support for Ruby 1.9.2 that was broken in v1.6.4.1 and v1.6.5. (#1207)
    • ๐Ÿ— Check if zlib is available before building libxml2. (#1188)
    • ๐Ÿ“œ (JRuby) HtmlSaxPushParser now exists. (#1147) (Thanks, Piotr Szmielew!)
  • v1.6.5 Changes

    November 26, 2014

    โž• Added

    • Implement Slop#respond_to_missing?. (#1176)
    • โšก๏ธ Optimized the XPath query generated by an an+b CSS query.

    ๐Ÿ›  Fixed

    • ๐Ÿ“œ Capture non-parse errors from Document#dup in Document#errors. (#1196)
    • ๐Ÿ’Ž (JRuby) Document#canonicalize parameters are now consistent with MRI. (#1189)
  • v1.6.4 Changes

    November 04, 2014

    โž• Added

    • โฌ†๏ธ (MRI) Bundled Libxml2 is upgraded to 2.9.2.
    • (MRI) nokogiri --version will include a list of applied patches.
    • ๐Ÿ— (MRI) Nokogiri no longer prints messages directly to TTY while building the extension.
    • (MRI) Detect and help user fix a missing /usr/include/iconv.h on OS X. (#1111)
    • ๐Ÿ— (MRI) Improve the iconv detection for building libxml2.

    ๐Ÿ›  Fixed

    • (MRI) Fix DocumentFragment#element_children (#1138).
    • ๐Ÿ›  Fix a bug with CSS attribute selector without any prefix where "foo [bar]" was treated as "foo[bar]". (#1174)
  • v1.6.4.1 Changes

    November 05, 2014

    ๐Ÿ›  Fixed

    • (MRI) Fix a bug where CFLAGS passed in are dropped. (#1188)
    • ๐Ÿ›  Fix a bug where CSS selector :nth(n) did not work. (#1187)
  • v1.6.3 Changes

    July 20, 2014

    โž• Added

    • โž• Added Node#document? and Node#processing_instruction?

    ๐Ÿ›  Fixed

    • ๐Ÿ’Ž [JRuby] Fix Ruby memory exhaustion vulnerability. #1087 (Thanks, @ocher)
    • ๐Ÿ’Ž [MRI] Fix segfault during GC when using libxml-ruby and nokogiri together in multi-threaded environment. #895 (Thanks, @ender672!)
    • ๐Ÿ— Building on OSX 10.9 stock ruby 2.0.0 now works. #1101 (Thanks, @zenspider!)
    • ๐Ÿ“œ Node#parse now works again for HTML document nodes (broken in 1.6.2+).
    • Processing instructions can now be added via Node#add_next_sibling.
  • v1.6.3.1 Changes

    July 21, 2014

    ๐Ÿ›  Fixed

    • โž• Addressing an Apple Macintosh installation problem for GCC users. #1130 (Thanks, @zenspider!)
  • v1.6.2 Changes

    May 12, 2014

    ๐Ÿ”’ Security

    ๐Ÿ›  A set of security and bugfix patches have been backported from the libxml2 and libxslt repositories onto the version of 2.8.0 packaged with Nokogiri, including these notable security fixes:

    โฌ†๏ธ It is recommended that you upgrade from 1.6.x to this version as soon as possible.

    Dependencies

    Now requires libxml >= 2.6.21 (was previously >= 2.6.17).

    โž• Added

    • โž• Add cross building of fat binary gems for 64-Bit Windows (x64-mingw32) and add support for native builds on Windows. #864, #989, #1072
    • ๐Ÿ (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) Fix a library path (LIBPATH) precedence problem caused by CRuby bug #9760.
    • ๐Ÿ— (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

    ๐Ÿ›  Fixed

    • 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!)
    • (MRI) Perform a node type check before adding a child node to another. Previously adding a text node to another as a child could cause a SEGV. #1092
    • ๐Ÿ’Ž (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
    • 0๏ธโƒฃ (JRuby) Inconsistent behavior aliasing the default namespace. #940
    • ๐Ÿ“œ (JRuby) Inconsistent behavior between parsing and adding namespaces. #943
    • ๐Ÿ’Ž (JRuby) Xpath returns inconsistent result set on cloned document with namespaces and attributes. #1034
    • ๐Ÿ’Ž (JRuby) Java-Implementation forgets element namespaces #902
    • ๐Ÿ’Ž (JRuby) JRuby-Nokogiri does not recognise attributes inside namespaces #1081
    • ๐Ÿ’Ž (JRuby) JRuby-Nokogiri has different comment node name #1080
    • ๐Ÿ’Ž (JRuby) JAXPExtensionsProvider / Java 7 / Secure Processing #1070
  • v1.6.2.1 Changes

    May 13, 2014

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix statically-linked libxml2 installation when using universal builds of Ruby. #1104
    • Patching mini_portile to address the git dependency detailed in #1102.
    • Library load fix to address segfault reported on some systems. #1097
  • v1.6.1 Changes

    December 14, 2013

    ๐Ÿ›  Fixed

    • ๐Ÿ“œ (JRuby) Fix out of memory bug when certain invalid documents are parsed.
    • ๐Ÿ’Ž (JRuby) Fix regression of billion-laughs vulnerability. #586