[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 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.
v1.16.2 / 2024-02-04
Security
[CRuby] Vendored libxml2 is updated to address CVE-2024-25062. See GHSA-xc9x-jj77-9p9j for more information.
[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)
v1.16.0 / 2023-12-27
Notable Changes
Ruby
This release introduces native gem support for Ruby 3.3.
Backports support for Faraday 2 from elastic-transport. ¡Gracias santiagorodriguez96!
This version of the gem now supports Faraday v2. If you don't have a locked version of Faraday in your project, when you upgrade your gems, Faraday v2 will be installed. The main change on dependencies when using Faraday v2 is all adapters, except for the default net_http one, have been moved out of Faraday into separate gems. This means if you're not using the default adapter and you migrate to Faraday v2, you'll need to add the adapter gems to your Gemfile.
These are the gems required for the different adapters with Faraday 2, instead of the libraries on which they were based:
# HTTPCLient
gem 'faraday-httpclient'
NetHTTPPersistent
gem 'faraday-net_http_persistent'
Patron
gem 'faraday-patron'
Typhoeus
gem 'faraday-typhoeus'
Things should work fine if you migrate to Faraday 2 as long as you include the adapter (unless you're using the default one net-http), but worst case scenario, you can always lock the version of Faraday in your project to 1.x:
gem 'faraday', '~> 1'
Be aware if migrating to Faraday v2 that it requires at least Ruby 2.6, unlike Faraday v1 which requires 2.4.
Troubleshooting
If you see a message like:
:adapter is not registered on Faraday::Adapter (Faraday::Error)
Then you probably need to include the adapter library in your gemfile and require it.
Backports fix from elastic-transport: #66 - Manticore transport unable to send custom headers with perform_requestPull Request.
v7.17.8
Patch releases back to being detached from Elastic stack releases.
Tested compatibility with Elasticsearch v7.17 APIs.
Tested versions of Ruby for 7.17.8: Ruby (MRI) 2.7, 3.0, 3.1, 3.2, JRuby 9.3, JRuby 9.4.
Bugfix in elasticsearch-transport: Fixes enforcing UTF-8 in Response body, causing an error when the string is frozen, particularly when using webmock: [issue #63](elastic/elastic-transport-ruby#63).
7.17.7
Compatibility with Elasticsearch v7.17.7 APIs.
Tested versions of Ruby for 7.17.7: Ruby (MRI) 2.6, 2.7, 3.0 and 3.1, JRuby 9.3.
7.17.1
Improves handling of YAML parsing, uses safe_load instead of load when doing the product verification (should only affect Ruby < 3.0).
Updates headers setup when using the Manticore adapter. This fixes an issue where the user-agent header was being foverridden even when it was being set on initialization via the transport options. Pull Request, issue.
Drops runtime dependency on base64. Thanks Earlopain! Pull Request: #2295.
v8.12.1
Adds base64 dependency: base64 was added to the gemspec, since starting in Ruby 3.4.0, base64 will no longer be part of the default gems and will no longer be in the standard library.
Base64 is used for API key and Cloud ID. The dependency used to be declared in transport, but it's not needed there since the implementation using it is in this codebase. It was removed from transport in the latest patch releases: 8.1.3, 8.2.5 and 8.3.1.
v8.12.0
Client
Tested versions of Ruby for 8.12.0: Ruby (MRI) 3.0, 3.1, 3.2 and 3.3. JRuby 9.3 and JRuby 9.4.
API
API Changes:
bulk - Adds boolean :list_executed_pipelines parameter: Sets list_executed_pipelines for all incoming documents. Defaults to unset (false).
indices.put_settings - Adds boolean :reopen parameter: Whether to close and reopen the index to apply non-dynamic settings. If set to true the indices to which the settings are being applied will be closed temporarily and then reopened in order to apply the changes. The default is false.
open_point_in_time - Adds Hash :body parameter: an index_filter specified with the Query DSL.
security.get_api_key - Adds boolean :active_only parameter: flag to limit response to only active (not invalidated or expired) API keys.
Tested versions of Ruby for 8.12.0: Ruby (MRI) 3.0, 3.1, 3.2 and 3.3. JRuby 9.3 and JRuby 9.4.
API
API Changes:
bulk - Adds boolean :list_executed_pipelines parameter: Sets list_executed_pipelines for all incoming documents. Defaults to unset (false).
indices.put_settings - Adds boolean :reopen parameter: Whether to close and reopen the index to apply non-dynamic settings. If set to true the indices to which the settings are being applied will be closed temporarily and then reopened in order to apply the changes. The default is false.
open_point_in_time - Adds Hash :body parameter: an index_filter specified with the Query DSL.
security.get_api_key - Adds boolean :active_only parameter: flag to limit response to only active (not invalidated or expired) API keys.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/datacite/lupo/network/alerts).
Bumps nokogiri, bolognese, maremma, faraday, sentry-raven, elasticsearch-transport and elasticsearch. These dependencies needed to be updated together. Updates
nokogiri
from 1.13.10 to 1.16.3Release notes
Sourced from nokogiri's releases.
... (truncated)
Changelog
Sourced from nokogiri's changelog.
... (truncated)
Commits
80fb608
version bump to v1.16.3710bd96
dep: update libxml 2.12.6 (branch v1.16.x) (#3151)461a96e
fix: Reader#read sets@encoding
if it is unset801f978
dep: update libxml2 to v2.12.6673756f
version bump to v1.16.274ffd67
dep: update libxml to 2.12.5 (branch v1.16.x) (#3122)0d4018d
dep: update libxml2 to v2.12.5f33a25f
dep: remove patch from #3112 which has been released upstreame994168
version bump to v1.16.177ea2f2
dev: add files to manifest ignore listUpdates
bolognese
from 2.1.1 to 2.2.0Release notes
Sourced from bolognese's releases.
Commits
b3721a2
Merge pull request #192 from datacite/upgrade-nokogirie53767e
change required_ruby_versionfe303f2
bump test and release ruby version to 3.1.49208072
upgrade maremma. upgrade bolognese. bump version to 2.2.0Updates
maremma
from 4.9.8 to 5.0.0Release notes
Sourced from maremma's releases.
Changelog
Sourced from maremma's changelog.
Commits
e9f25ac
Merge pull request #36 from datacite/create-version-5-0-0ce77f20
create version 5.0.06321330
Merge pull request #33 from datacite/upgrade-nokogiri78e81ad
set ruby test version to 3.x5b31f9f
change ruby version in git action9bf1bea
upgrade nokogirif19964f
Updated CHANGELOG.md8ab1e97
Merge pull request #30 from datacite/dependabot/bundler/rack-2.2.6.475edb5f
Bump rack from 2.2.4 to 2.2.6.4a67dfdc
Updated CHANGELOG.mdUpdates
faraday
from 0.17.6 to 2.9.0Release notes
Sourced from faraday's releases.
... (truncated)
Commits
cc5d607
Version bump to 2.9.0ceb01e4
Bump faraday-net_http version to allow 3.1 (#1546)074506e
Use latest Ruby version to publish and run rubocop898f203
Run rubocop in CI using Ruby 3.3f0f549d
Fix Rubocop offensescaa4ff4
Update GitHub workflows, add 3.3 to CI matrix13732f7
Removeruby2_keywords
dependency8cbfd75
Make 3.0 the minimum supported Ruby version9487833
Remove runtime dependency on base64 (#1541)7e12133
v2.8.1Updates
sentry-raven
from 2.13.0 to 3.1.2Commits
aa3327c
release: 3.1.2f81180a
Add Makefile for sentry-raven9cd092e
Fix version bumping scriptbf77f9e
Fix sentry-raven's craft config4646920
Update changelog30bb9d3
Correct changelog linksf23e980
Refine readme (#1366)86dcf3c
Correct type attribute's usages (#1354)5337548
Merge release-sentry-rails/4.3.3 into masterdf1e5be
release: 4.3.3Updates
elasticsearch-transport
from 7.5.0 to 7.17.10Release notes
Sourced from elasticsearch-transport's releases.
... (truncated)
Commits
015e747
Bumps version to 7.17.10e7e7261
Enable elasticsearch-transport v7 to use Faraday >=230bcd1e
Bumps version to 7.17.93c04cf9
Fixes instantiating Client in Manticore implementation.a797725
Updates version to 7.17.8776b66a
Doesn't enforce UTF-8 encoding in Response object if the string is frozen.e697129
Bumps 7.17 to 7.17.12cc663e7
Bumps 7.17 to 7.17.117cab267
Bumps 7.17 to 7.17.106df88d1
Locks pry-byebug to 3.9 for Ruby 2.7 supportUpdates
elasticsearch
from 7.5.0 to 8.12.2Release notes
Sourced from elasticsearch's releases.
... (truncated)
Changelog
Sourced from elasticsearch's changelog.
... (truncated)
Commits
9bb4997
[DOCS] Updates release notes for 8.12.2afb90e0
Bumps version to 8.12.285b65dc
Drop runtime dependency on base64a07501e
[DOCS] Updates 8.12.1 release notes3443be1
Bumps version to 8.12.123b57c4
Adds base64 dependency109a971
[DOCS] Release notes 8.129aab364
[DOCS] Updates generated docse590347
[CI] Adds doc task to git add files from OK responsee074d09
[CI] Prepare log file for git comsumptionDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show