github asciidoctor/asciidoctor-pdf v1.6.0

latest releases: v2.3.18, v2.3.17, v2.3.16...
3 years ago

Summary

This is special major release of Asciidoctor PDF before transitioning to semantic versioning. The purpose of this release is to make Asciidoctor PDF compatible with Ruby 3 (in advance of the Asciidoctor PDF 2.0.0 release). As part of that upgrade, this release drops support for Ruby < 2.5 (which also means JRuby < 9.2). It also drops support for Asciidoctor < 2. In order to get the full CI matrix running, support for controlling the location of the gs command using the GS environment variable was backported to this release. As part of removing patches to support Ruby < 2.5, the fix to not hyphenate a hyphen was also backported.

The Asciidoctor PDF 1.5.x release line does not work on Ruby 3 because the version of Prawn it depends on cannot be installed on Ruby 3. And it's not possible to upgrade Prawn in that release line since newer versions of Prawn dropped support for Ruby < 2.5. Since that upgrade constitutes a major breaking change, we've decided to create a 1.6.x release line. Since Asciidoctor PDF isn't yet using semantic versioning, this is considered a major release.

As part of upgrading Prawn, this release also upgrades prawn-svg, prawn-icon, and ttfunk. Those upgrades bring in additional enhancements. For example, the ttfunk upgrade adds partial support for OTF fonts. The prawn-svg upgrade adds support for loading embedded images from a data URI. And the prawn-icon upgrade brings in a newer version of Font Awesome (5.15.1).

Distribution

Changelog

Enhancements

  • allow path of ghostscript command to be controlled using GS env var (#1791)

Bug Fixes

  • do not hyphenate a hyphen when hyphenation is enabled (#1562)

Compliance

  • add support for Ruby 3 and drop support for Ruby < 2.5 and JRuby < 9.2 (#1681)
  • upgrade to Prawn 2.4.0 (adds support for Ruby 3)
  • upgrade to prawn-svg 0.32 (adds support for Ruby 3 without a patch and for loading embedded images from a data URI)
  • upgrade to prawn-icon 3.0.x
  • release lock on ttfunk version (1.6 produces slightly different output from 1.5 for certain missing glyphs)
  • drop support for Asciidoctor < 2 (#1552)

Build / Infrastructure

  • run tests against pygments.rb 2.x in addition to pygments.rb 1.2.0

Release meta

Released on: 2021-05-10
Released by: @mojavelinux
Release beer: Sun Reaper by Toppling Goliath

Logs: full diff

Credits

A very special thanks to all the awesome supporters of the Asciidoctor OpenCollective campaign who provided critical funding for the development of this release as well as ongoing development of the project.

Don't miss a new asciidoctor-pdf release

NewReleases is sending notifications on new releases.