Forwarded request #1189926 from darix
- 1.16.6:
- update intree libxml2 copy (unused in our build)
- update intree zlib copy (unused in our build)
- [CRuby] `XML::Reader` sets the `@encoding` instance variable
during reading if it is not passed into the initializer.
Previously, it would remain `nil`. The behavior of
`Reader#encoding` has not changed. This works around changes to
how libxml2 reports the encoding used in v2.12.6.
- [CRuby] `XML::Reader` defaults the encoding to UTF-8 if it's
not specified in either the document or as a method parameter.
Previously non-ASCII characters were serialized as NCRs in this
case. [#2891] (@flavorjones)
- [CRuby] Restored support for compilation by GCC versions
earlier than 4.6, which was broken in v1.15.0 (540e9aee).
[#3090] (@adfoster-r7)
- [CRuby] Patched upstream libxml2 to allow parsing HTML5 in the
context of a namespaced node (e.g., foreign content like
MathML). [#3112, #3116] (@flavorjones)
- [CRuby] Fixed a small memory leak in libgumbo (HTML5 parser)
when the maximum tree depth limit is hit. [#3098, #3100]
(@stevecheckoway)
- Drop gcc14-allow-incompatible-pointer-types-for-now.patch
OBS-URL: https://build.opensuse.org/request/show/1190054
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rubygem-nokogiri?expand=0&rev=69
- 1.16.6:
- update intree libxml2 copy (unused in our build)
- update intree zlib copy (unused in our build)
- [CRuby] `XML::Reader` sets the `@encoding` instance variable
during reading if it is not passed into the initializer.
Previously, it would remain `nil`. The behavior of
`Reader#encoding` has not changed. This works around changes to
how libxml2 reports the encoding used in v2.12.6.
- [CRuby] `XML::Reader` defaults the encoding to UTF-8 if it's
not specified in either the document or as a method parameter.
Previously non-ASCII characters were serialized as NCRs in this
case. [#2891] (@flavorjones)
- [CRuby] Restored support for compilation by GCC versions
earlier than 4.6, which was broken in v1.15.0 (540e9aee).
[#3090] (@adfoster-r7)
- [CRuby] Patched upstream libxml2 to allow parsing HTML5 in the
context of a namespaced node (e.g., foreign content like
MathML). [#3112, #3116] (@flavorjones)
- [CRuby] Fixed a small memory leak in libgumbo (HTML5 parser)
when the maximum tree depth limit is hit. [#3098, #3100]
(@stevecheckoway)
- Drop gcc14-allow-incompatible-pointer-types-for-now.patch
OBS-URL: https://build.opensuse.org/request/show/1189926
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/rubygem-nokogiri?expand=0&rev=140
- updated to version 1.13.4
- Security
- Address CVE-2022-24836, a regular expression
denial-of-service vulnerability. See GHSA-crjr-9rc5-ghw8 for
more information.
- [CRuby] Vendored zlib is updated to address CVE-2018-25032.
See GHSA-v6gp-9mmm-c6p5 for more information.
- [JRuby] Vendored Xerces-J (xerces:xercesImpl) is updated to
address CVE-2022-23437. See GHSA-xxx9-3xcr-gjj3 for more
information.
- [JRuby] Vendored nekohtml (org.cyberneko.html) is updated to
address CVE-2022-24839. See GHSA-gx8x-g87m-h5q6 for more
information.
- Dependencies
- [CRuby] Vendored zlib is updated from 1.2.11 to 1.2.12. (See
LICENSE-DEPENDENCIES.md for details on which packages
redistribute this library.)
- [JRuby] Vendored Xerces-J (xerces:xercesImpl) is updated from
2.12.0 to 2.12.2.
- [JRuby] Vendored nekohtml (org.cyberneko.html) is updated
from a fork of 1.9.21 to 1.9.22.noko2. This fork is now
publicly developed at
https://github.com/sparklemotion/nekohtml
- fix ruby versions for the leap build
OBS-URL: https://build.opensuse.org/request/show/969370
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/rubygem-nokogiri?expand=0&rev=121
- updated to version 1.12.3
### Fixed
* [CRuby] Fix compilation of libgumbo on older systems with versions of GCC that give errors on C99-isms. Affected systems include RHEL6, RHEL7, and SLES12. [[#2302](https://github.com/sparklemotion/nokogiri/issues/2302)]
## 1.12.2 / 2021-08-04
### Fixed
* [CRuby] Ensure that C extension files in non-native gem installations are loaded using `require` and rely on `$LOAD_PATH` instead of using `require_relative`. This issue only exists when deleting shared libraries that exist outside the extensions directory, something users occasionally do to conserve disk space. [[#2300](https://github.com/sparklemotion/nokogiri/issues/2300)]
## 1.12.1 / 2021-08-03
### Fixed
* [CRuby] Fix compilation of libgumbo on BSD systems by avoiding GNU-isms. [[#2298](https://github.com/sparklemotion/nokogiri/issues/2298)]
## 1.12.0 / 2021-08-02
### Notable Addition: HTML5 Support (CRuby only)
__HTML5 support__ has been added (to CRuby only) by merging [Nokogumbo](https://github.com/rubys/nokogumbo) into Nokogiri. The Nokogumbo public API has been preserved, so this functionality is available under the `Nokogiri::HTML5` namespace. [[#2204](https://github.com/sparklemotion/nokogiri/issues/2204)]
Please note that HTML5 support is not available for JRuby in this version. However, we feel it is important to think about JRuby and we hope to work on this in the future. If you're interested in helping with HTML5 support on JRuby, please reach out to the maintainers by commenting on issue [#2227](https://github.com/sparklemotion/nokogiri/issues/2227).
Many thanks to Sam Ruby, Steve Checkoway, and Craig Barnes for creating and maintaining Nokogumbo and supporting the Gumbo HTML5 parser. They're now Nokogiri core contributors with all the powers and privileges pertaining thereto. 🙌
### Notable Change: `Nokogiri::HTML4` module and namespace
`Nokogiri::HTML` has been renamed to `Nokogiri::HTML4`, and `Nokogiri::HTML` is aliased to preserve backwards-compatibility. `Nokogiri::HTML` and `Nokogiri::HTML4` parse methods still use libxml2's (or NekoHTML's) HTML4 parser in the v1.12 release series.
Take special note that if you rely on the class name of an object in your code, objects will now report a class of `Nokogiri::HTML4::Foo` where they previously reported `Nokogiri::HTML::Foo`. Instead of relying on the string returned by `Object#class`, prefer `Class#===` or `Object#is_a?` or `Object#instance_of?`.
Future releases of Nokogiri may deprecate `HTML` methods or otherwise change this behavior, so please start using `HTML4` in place of `HTML`.
### Added
* [CRuby] `Nokogiri::VERSION_INFO["libxslt"]["datetime_enabled"]` is a new boolean value which describes whether libxslt (or, more properly, libexslt) has compiled-in datetime support. This generally going to be `true`, but some distros ship without this support (e.g., some mingw UCRT-based packages, see https://github.com/msys2/MINGW-packages/pull/8957). See [#2272](https://github.com/sparklemotion/nokogiri/issues/2272) for more details.
### Changed
* Introduce a new constant, `Nokogiri::XML::ParseOptions::DEFAULT_XSLT`, which adds the libxslt-preferred options of `NOENT | DTDLOAD | DTDATTR | NOCDATA` to `ParseOptions::DEFAULT_XML`.
* `Nokogiri.XSLT` parses stylesheets using `ParseOptions::DEFAULT_XSLT`, which should make some edge-case XSL transformations match libxslt's default behavior. [[#1940](https://github.com/sparklemotion/nokogiri/issues/1940)]
### Fixed
* [CRuby] Namespaced attributes are handled properly when their parent node is reparented into another document. Previously, the namespace may have gotten dropped. [[#2228](https://github.com/sparklemotion/nokogiri/issues/2228)]
* [CRuby] Reparented nodes no longer inherit their parent's namespace. Previously, a node without a namespace was forced to adopt its parent's namespace. [[#1712](https://github.com/sparklemotion/nokogiri/issues/1712), [#425](https://github.com/sparklemotion/nokogiri/issues/425)]
### Improved
* [CRuby] Speed up (slightly) the compile time of packaged libraries `libiconv`, `libxml2`, and `libxslt` by using autoconf's `--disable-dependency-tracking` option. ("ruby" platform gem only.)
### Deprecated
* Deprecating Nokogumbo's `Nokogiri::HTML5.get`. This method will be removed in a future version of Nokogiri.
OBS-URL: https://build.opensuse.org/request/show/914150
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/rubygem-nokogiri?expand=0&rev=115