./textproc/ruby-nokogiri, HTML, XML, SAX, and Reader parser with XPath and CSS selector support

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.10.1, Package name: ruby24-nokogiri-1.10.1, Maintainer: tsutsui

Nokogiri parses and searches XML/HTML very quickly, and also has correctly
implemented CSS3 selector support as well as XPath support.

Features:

* XPath support for document searching
* CSS3 selector support for document searching
* XML/HTML builder
* Drop in replacement for Hpricot (though not bug for bug)


Required to run:
[textproc/libxml2] [textproc/libxslt] [misc/ruby-mini_portile2] [lang/ruby24-base]

Required to build:
[devel/ruby-pkg-config] [pkgtools/cwrappers]

Master sites:

SHA1: 175d49e45af21f1913a08b4377a1983cc9b2b781
RMD160: b4b15d81e6266daf7407d1d3271c87e2b54fc97d
Filesize: 8770 KB

Version history: (Expand)


CVS history: (Expand)


   2019-03-10 12:24:17 by Izumi Tsutsui | Files touched by this commit (2) | Package updated
Log message:
ruby-nokogiri: update to 1.10.1.

Upstream changes (from CHANGELOG.md):

# 1.10.1 / 2019-01-13

### Features

* [MRI] During installation, handle Xcode 10's new library path.
  [#1801, #1851] (Thanks, @mlj and @deepj!)
* Avoid unnecessary creation of `Proc`s in many methods. [#1776]
  (Thanks, @chopraanmol1!)

### Bug fixes

* CSS selector `:has()` now correctly matches against any descendant.
  Previously this selector matched against only direct children).
  [#350] (Thanks, @Phrogz!)
* `NodeSet#attr` now returns `nil` if it's empty. Previously this
  raised a NoMethodError.
* [MRI] XPath errors are no longer suppressed during
  `XSLT::Stylesheet#transform`. Previously these errors were suppressed
  which led to silent failures and a subsequent segfault. [#1802]
   2019-01-12 15:31:39 by Izumi Tsutsui | Files touched by this commit (3) | Package updated
Log message:
ruby-nokogiri: update to 1.10.0.

Upstream changes (from CHANGELOG.md):

## 1.10.0 / 2019-01-04

### Features

* [MRI] Cross-built Windows gems now support Ruby 2.6 [#1842, #1850]

### Backwards incompatibilities

This release ends support for:

* Ruby 2.2, for which [official support ended on \ 
2018-03-31](https://www.ruby-lang.org/en/news/2018/ … has-ended/) \ 
[#1841]
* JRuby 1.7, for which [official support ended on \ 
2017-11-21](https://github.com/jruby/jruby/issues/4112) [#1741]

### Dependencies

* [MRI] libxml2 is updated from 2.9.8 to 2.9.9
* [MRI] libxslt is updated from 1.1.32 to 1.1.33

## 1.9.1 / 2018-12-17

### Bug fixes

* Fix a bug introduced in v1.9.0 where `XML::DocumentFragment#dup` no longer \ 
returned an instance of the callee's class, instead always returning an \ 
`XML::DocumentFragment`. This notably broke any subclass of \ 
`XML::DocumentFragment` including `HTML::DocumentFragment` as well as the Loofah \ 
gem's `Loofah::HTML::DocumentFragment`. [#1846]

## 1.9.0 / 2018-12-17

### Security Notes

* [JRuby] Upgrade Xerces dependency from 2.11.0 to 2.12.0 to address upstream \ 
vulnerability CVE-2012-0881 [#1831] (Thanks @grajagandev for reporting.)

### Notable non-functional changes

* Decrease installation size by removing many unneeded files (e.g., `/test`) \ 
from the packaged gems. [#1719] (Thanks, @stevecrozz!)

### Features

* `XML::Attr#value=` allows HTML node attribute values to be set to either a \ 
blank string or an empty boolean attribute. [#1800]
* Introduce `XML::Node#wrap` which does what `XML::NodeSet#wrap` has always \ 
done, but for a single node. [#1531] (Thanks, @ethirajsrinivasan!)
* [MRI] Improve installation experience on macOS High Sierra (Darwin). [#1812, \ 
#1813] (Thanks, @gpakosz and @nurse!)
* [MRI] Node#dup supports copying a node directly to a new document. See the \ 
method documentation for details.
* [MRI] DocumentFragment#dup is now more memory-efficient, avoiding making \ 
unnecessary copies. [#1063]
* [JRuby] NodeSet has been rewritten to improve performance! [#1795]

### Bug fixes

* `NodeSet#each` now returns `self` instead of zero. [#1822] (Thanks, @olehif!)
* [MRI] Address a memory leak when using XML::Builder to create nodes with \ 
namespaces. [#1810]
* [MRI] Address a memory leak when unparenting a DTD. [#1784] (Thanks, \ 
@stevecheckoway!)
* [MRI] Use RbConfig::CONFIG instead of ::MAKEFILE_CONFIG to fix installations \ 
that use Makefile macros. [#1820] (Thanks, @nobu!)
* [JRuby] Decrease large memory usage when making nested XPath queries. [#1749]
* [JRuby] Fix failing tests on JRuby 9.2.x
* [JRuby] Fix default namespaces in nodes reparented into a different document \ 
[#1774]
* [JRuby] Fix support for Java 9. [#1759] (Thanks, @Taywee!)

### Dependencies

* [MRI] Upgrade mini_portile2 dependency from `~> 2.3.0` to `~> 2.4.0`
   2018-11-01 16:00:31 by Izumi Tsutsui | Files touched by this commit (3) | Package updated
Log message:
ruby-nokogiri: update to 1.8.5.

Upstream changes (from CHANGELOG.md):

# 1.8.5 / 2018-10-04

## Security Notes

[MRI] Pulled in upstream patches from libxml2 that address CVE-2018-14404
and CVE-2018-14567. Full details are available in [#1785]
(https://github.com/sparklemotion/nokogiri/issues/1785).
Note that these patches are not yet (as of 2018-10-04) in an upstream
release of libxml2.

## Bug fixes

* [MRI] Fix regression in installation when building against system
  libraries, where some systems would not be able to find libxml2 or
  libxslt when present. (Regression introduced in v1.8.3.) [#1722]
* [JRuby] Fix node reparenting when the destination doc is empty. [#1773]
   2018-07-06 21:12:32 by Izumi Tsutsui | Files touched by this commit (2) | Package updated
Log message:
ruby-nokogiri: update to 1.8.4.

Upstream changes (from CHANGELOG.md):

# 1.8.4 / 2018-07-03

## Bug fixes

* [MRI] Fix memory leak when creating nodes with namespaces. (Introduced in \ 
v1.5.7) [#1771]
   2018-06-28 17:16:51 by Jonathan Perkin | Files touched by this commit (1) | Package updated
Log message:
ruby-nokogiri: Fix build since last update.
   2018-06-22 16:20:27 by Izumi Tsutsui | Files touched by this commit (3) | Package updated
Log message:
nokogiri: update to 1.8.3.

Upstream changes (from CHANGELOG.md):

# 1.8.3 / 2018-06-16

## Security Notes

[MRI] Behavior in libxml2 has been reverted which caused CVE-2018-8048
(loofah gem), CVE-2018-3740 (sanitize gem), and CVE-2018-3741
(rails-html-sanitizer gem). The commit in question is here:

> https://github.com/GNOME/libxml2/commit/960f0e2

and more information is available about this commit and its impact here:

> https://github.com/flavorjones/loofah/issues/144

This release simply reverts the libxml2 commit in question to protect users
of Nokogiri's vendored libraries from similar vulnerabilities.

If you're offended by what happened here, I'd kindly ask that you comment
on the upstream bug report here:

> https://bugzilla.gnome.org/show_bug.cgi?id=769760

## Dependencies

* [MRI] libxml2 is updated from 2.9.7 to 2.9.8

## Features

* Node#classes, #add_class, #append_class, and #remove_class are added.
* NodeSet#append_class is added.
* NodeSet#remove_attribute is a new alias for NodeSet#remove_attr.
* NodeSet#each now returns an Enumerator when no block is passed
  (Thanks, @park53kr!)
* [JRuby] General improvements in JRuby implementation (Thanks, @kares!)

## Bug fixes

* CSS attribute selectors now gracefully handle queries using integers. [#711]
* Handle ASCII-8BIT encoding on fragment input [#553]
* Handle non-string return values within `Reader` [#898]
* [JRuby] Allow Node#replace to insert Comment and CDATA nodes. [#1666]
* [JRuby] Stability and speed improvements to `Node`, `Sax::PushParser`,
  and the JRuby implementation [#1708, #1710, #1501]
   2018-02-18 06:45:37 by Izumi Tsutsui | Files touched by this commit (3) | Package updated
Log message:
ruby-nokogiri: update to 1.8.2.

Upstream changelog (from CHANGELOG.md):

# 1.8.2 / 2018-01-29

## Security Notes

[MRI] The update of vendored libxml2 from 2.9.5 to 2.9.7 addresses at least one \ 
published vulnerability, CVE-2017-15412. [#1714 has complete details]

## Dependencies

* [MRI] libxml2 is updated from 2.9.5 to 2.9.7
* [MRI] libxslt is updated from 1.1.30 to 1.1.32

## Features

* [MRI] OpenBSD installation should be a bit easier now. [#1685] (Thanks, \ 
@jeremyevans!)
* [MRI] Cross-built Windows gems now support Ruby 2.5

## Bug fixes

* Node#serialize once again returns UTF-8-encoded strings. [#1659]
* [JRuby] made SAX parsing of characters consistent with C implementation \ 
[#1676] (Thanks, @andrew-aladev!)
* [MRI] Predefined entities, when inspected, no longer cause a segfault. [#1238]
   2017-12-09 23:39:28 by Izumi Tsutsui | Files touched by this commit (1)
Log message:
Actually take maintainership (missed in the previous commit).