asciidoctor / docker-asciidoctor

:ship: A Docker image for using the Asciidoctor toolchain to process AsciiDoc content
https://hub.docker.com/r/asciidoctor/docker-asciidoctor/
Other
321 stars 151 forks source link

Bump Asciidoctor version to 2.0.22 #437

Closed asciidoctor-updateclibot[bot] closed 3 months ago

asciidoctor-updateclibot[bot] commented 3 months ago

Bump Asciidoctor version

Update the key ASCIIDOCTOR_VERSION in the test harness

1 file(s) updated with "ASCIIDOCTOR_VERSION=2.0.22": * tests/asciidoctor.bats

2.0.22
Release published on the 2024-03-08 08:02:44 +0000 UTC at the url https://github.com/asciidoctor/asciidoctor/releases/tag/v2.0.22

This is a patch release in the 2.0.x release line to further compatibility with Ruby 3.3.

The most critical fix in this release is to remove use of the base64 library since it will no longer being provided as part of the Ruby language starting with Ruby 3.4. When using Ruby 3.3, users would see a warning if this library is used, which happens when the data-uri attribute is set. The functionality has been replaced with a lower-level method on the String object (String#pack), which the base64 library delegates to anyway.

This release also sets the cloaked-context attribute on a source block that is defined using either a styled paragraph or a literal or fenced code structural container. This matches the functionality used for custom block extensions (when the source context does not match the final parsed context).

## Distribution

- [RubyGem (asciidoctor)](https://rubygems.org/gems/asciidoctor)

Asciidoctor is also packaged for [Fedora](https://apps.fedoraproject.org/packages/rubygem-asciidoctor), [Debian](https://packages.debian.org/sid/asciidoctor), [Ubuntu](https://packages.ubuntu.com/search?keywords=asciidoctor), [Alpine Linux](https://pkgs.alpinelinux.org/packages?name=asciidoctor), [OpenSUSE](https://software.opensuse.org/package/rubygem-asciidoctor), and [Homebrew](https://formulae.brew.sh/formula/asciidoctor). You can use the system's package manager to install the package named **asciidoctor**.

## Changelog

### Improvements

* Set `cloaked-context` attribute on source block when context is not `:listing` (#4556)

### Compliance

* Remove use of base64 library to prevent warning in Ruby >= 3.3 (#4561)

## Release meta

Released on: 2024-03-08
Released by: @mojavelinux
Release beer: Turbo Laser by Resolute Brewing Company

Logs: [resolved issues](https://github.com/asciidoctor/asciidoctor/issues?q=is%3Aissue+label%3Av2.0.22+is%3Aclosed) | [source diff](https://github.com/asciidoctor/asciidoctor/compare/v2.0.21...v2.0.22) | [gem diff](https://my.diffend.io/gems/asciidoctor/v2.0.21/v2.0.22)

## Credits

A very special thanks to all the **awesome** [supporters of the Asciidoctor OpenCollective campaign](https://opencollective.com/asciidoctor), who provide critical funding for the ongoing development of this project.
Update the key ASCIIDOCTOR_VERSION in the README.adoc file

1 file(s) updated with ":ASCIIDOCTOR_VERSION: 2.0.22": * README.adoc

2.0.22
Release published on the 2024-03-08 08:02:44 +0000 UTC at the url https://github.com/asciidoctor/asciidoctor/releases/tag/v2.0.22

This is a patch release in the 2.0.x release line to further compatibility with Ruby 3.3.

The most critical fix in this release is to remove use of the base64 library since it will no longer being provided as part of the Ruby language starting with Ruby 3.4. When using Ruby 3.3, users would see a warning if this library is used, which happens when the data-uri attribute is set. The functionality has been replaced with a lower-level method on the String object (String#pack), which the base64 library delegates to anyway.

This release also sets the cloaked-context attribute on a source block that is defined using either a styled paragraph or a literal or fenced code structural container. This matches the functionality used for custom block extensions (when the source context does not match the final parsed context).

## Distribution

- [RubyGem (asciidoctor)](https://rubygems.org/gems/asciidoctor)

Asciidoctor is also packaged for [Fedora](https://apps.fedoraproject.org/packages/rubygem-asciidoctor), [Debian](https://packages.debian.org/sid/asciidoctor), [Ubuntu](https://packages.ubuntu.com/search?keywords=asciidoctor), [Alpine Linux](https://pkgs.alpinelinux.org/packages?name=asciidoctor), [OpenSUSE](https://software.opensuse.org/package/rubygem-asciidoctor), and [Homebrew](https://formulae.brew.sh/formula/asciidoctor). You can use the system's package manager to install the package named **asciidoctor**.

## Changelog

### Improvements

* Set `cloaked-context` attribute on source block when context is not `:listing` (#4556)

### Compliance

* Remove use of base64 library to prevent warning in Ruby >= 3.3 (#4561)

## Release meta

Released on: 2024-03-08
Released by: @mojavelinux
Release beer: Turbo Laser by Resolute Brewing Company

Logs: [resolved issues](https://github.com/asciidoctor/asciidoctor/issues?q=is%3Aissue+label%3Av2.0.22+is%3Aclosed) | [source diff](https://github.com/asciidoctor/asciidoctor/compare/v2.0.21...v2.0.22) | [gem diff](https://my.diffend.io/gems/asciidoctor/v2.0.21/v2.0.22)

## Credits

A very special thanks to all the **awesome** [supporters of the Asciidoctor OpenCollective campaign](https://opencollective.com/asciidoctor), who provide critical funding for the ongoing development of this project.
Update the value of ARG asciidoctor_version in the Dockerfile

changed lines [16] of file "/tmp/updatecli/github/asciidoctor/docker-asciidoctor/Dockerfile"

2.0.22
Release published on the 2024-03-08 08:02:44 +0000 UTC at the url https://github.com/asciidoctor/asciidoctor/releases/tag/v2.0.22

This is a patch release in the 2.0.x release line to further compatibility with Ruby 3.3.

The most critical fix in this release is to remove use of the base64 library since it will no longer being provided as part of the Ruby language starting with Ruby 3.4. When using Ruby 3.3, users would see a warning if this library is used, which happens when the data-uri attribute is set. The functionality has been replaced with a lower-level method on the String object (String#pack), which the base64 library delegates to anyway.

This release also sets the cloaked-context attribute on a source block that is defined using either a styled paragraph or a literal or fenced code structural container. This matches the functionality used for custom block extensions (when the source context does not match the final parsed context).

## Distribution

- [RubyGem (asciidoctor)](https://rubygems.org/gems/asciidoctor)

Asciidoctor is also packaged for [Fedora](https://apps.fedoraproject.org/packages/rubygem-asciidoctor), [Debian](https://packages.debian.org/sid/asciidoctor), [Ubuntu](https://packages.ubuntu.com/search?keywords=asciidoctor), [Alpine Linux](https://pkgs.alpinelinux.org/packages?name=asciidoctor), [OpenSUSE](https://software.opensuse.org/package/rubygem-asciidoctor), and [Homebrew](https://formulae.brew.sh/formula/asciidoctor). You can use the system's package manager to install the package named **asciidoctor**.

## Changelog

### Improvements

* Set `cloaked-context` attribute on source block when context is not `:listing` (#4556)

### Compliance

* Remove use of base64 library to prevent warning in Ruby >= 3.3 (#4561)

## Release meta

Released on: 2024-03-08
Released by: @mojavelinux
Release beer: Turbo Laser by Resolute Brewing Company

Logs: [resolved issues](https://github.com/asciidoctor/asciidoctor/issues?q=is%3Aissue+label%3Av2.0.22+is%3Aclosed) | [source diff](https://github.com/asciidoctor/asciidoctor/compare/v2.0.21...v2.0.22) | [gem diff](https://my.diffend.io/gems/asciidoctor/v2.0.21/v2.0.22)

## Credits

A very special thanks to all the **awesome** [supporters of the Asciidoctor OpenCollective campaign](https://opencollective.com/asciidoctor), who provide critical funding for the ongoing development of this project.
GitHub Action workflow link

Updatecli logo

Created automatically by Updatecli

Options:

Most of Updatecli configuration is done via its manifest(s).

  • If you close this pull request, Updatecli will automatically reopen it, the next time it runs.
  • If you close this pull request and delete the base branch, Updatecli will automatically recreate it, erasing all previous commits made.

Feel free to report any issues at github.com/updatecli/updatecli.
If you find this tool useful, do not hesitate to star our GitHub repository as a sign of appreciation, and/or to tell us directly on our chat!

dduportal commented 3 months ago

As commented in #432 which has been superseded by the current PR:

This new version makes the following test to fail:

not ok 23 We can generate an HTML document with a diagram with asciidoctor-kroki as backend
# (in test file tests/asciidoctor.bats, line 170)
#   `[ "${status}" -eq 0 ]' failed

Exact error seems to be (on my reproduction case involving qemu on my mac M2):

uninitialized constant AsciidoctorExtensions::KrokiDiagram::Base64

(but it could be a qemu-related error) => to be checked in a full linux/amd64 Linux VM.

Followed by @mojavelinux 's comment:

Asciidoctor core no longer loads Base64. At this point, it's a burned library. It should no longer be used by any project in Asciidoctor. The low-level String#pack and String#unpack1 methods should be used instead.

See https://github.com/asciidoctor/asciidoctor/issues/4561 and https://twitter.com/mojavelinux/status/1765870415753183732 for context.

Analysis in progress (thanks Dan!)

dduportal commented 3 months ago

Opened an issue pointing at the code to change: https://github.com/asciidoctor/asciidoctor-kroki/issues/444

@mojavelinux what is your point of view on how to act now: