diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2022-04-15 19:52:30 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-15 19:52:30 -0600 |
| commit | 359c2d437ac17d694b0583c0d0055b0c43edaa6b (patch) | |
| tree | f83134473d7305ba8047e69b94e22f43bb33515a | |
| parent | 3787b0dacdefdb376427e13cd53e82e8b1af2288 (diff) | |
declare matrix as a dependency until prawn does (PR #2037)
| -rw-r--r-- | CHANGELOG.adoc | 1 | ||||
| -rw-r--r-- | Gemfile | 1 | ||||
| -rw-r--r-- | asciidoctor-pdf.gemspec | 1 |
3 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 1d6660f1..23d42ee0 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -189,6 +189,7 @@ Bug Fixes:: Compliance:: * drop support for Ruby < 2.5 (which includes JRuby 9.1) (#1681) +* declare the matrix gem as a dependency to fix compatibility with Ruby 3.1 * use `YAML.safe_load` from Ruby stdlib instead of `safe_yaml gem` * drop deprecated Pdf module alias in API (leaving only PDF) * remove deprecated "ascii" fonts; only bundle the more complete "subset" fonts @@ -8,7 +8,6 @@ gemspec gem 'asciidoctor', ENV['ASCIIDOCTOR_VERSION'], require: false if ENV.key? 'ASCIIDOCTOR_VERSION' gem 'asciidoctor-diagram', ENV['ASCIIDOCTOR_DIAGRAM_VERSION'], require: false if ENV.key? 'ASCIIDOCTOR_DIAGRAM_VERSION' gem 'coderay', '~> 1.1.0', require: false -gem 'matrix' if (Gem::Version.new RUBY_VERSION) >= (Gem::Version.new '3.1.0') gem 'open-uri-cached', '~> 1.0.0', require: false gem 'pdf-reader', '2.8.0', require: false gem 'prawn-gmagick', ENV['PRAWN_GMAGICK_VERSION'], require: false if ENV.key? 'PRAWN_GMAGICK_VERSION' diff --git a/asciidoctor-pdf.gemspec b/asciidoctor-pdf.gemspec index 12027403..0bc0c820 100644 --- a/asciidoctor-pdf.gemspec +++ b/asciidoctor-pdf.gemspec @@ -35,6 +35,7 @@ Gem::Specification.new do |s| s.add_runtime_dependency 'asciidoctor', '~> 2.0' s.add_runtime_dependency 'prawn', '~> 2.4.0' + s.add_runtime_dependency 'matrix', '~> 0.4' # required until prawn >= 2.5.0 is released s.add_runtime_dependency 'prawn-table', '~> 0.2.0' s.add_runtime_dependency 'prawn-templates', '~> 0.1.0' s.add_runtime_dependency 'prawn-svg', '~> 0.32.0' |
